[packages/libCSS] - added restrict patch (use __restrict instead of restrict in public headers to allow use in C++) -

qboosh qboosh at pld-linux.org
Sat Dec 29 19:12:16 CET 2018


commit 9a69bacd70cf2b33ff9de266f6e0b3d7cedb6998
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 29 19:17:02 2018 +0100

    - added restrict patch (use __restrict instead of restrict in public headers to allow use in C++)
    - release 2

 libCSS-restrict.patch | 19 +++++++++++++++++++
 libCSS.spec           |  4 +++-
 2 files changed, 22 insertions(+), 1 deletion(-)
---
diff --git a/libCSS.spec b/libCSS.spec
index 52be88a..ad1fab5 100644
--- a/libCSS.spec
+++ b/libCSS.spec
@@ -6,11 +6,12 @@ Summary:	CSS parser and selection engine
 Summary(pl.UTF-8):	Silnik analizujący i wybierający CSS
 Name:		libCSS
 Version:	0.8.0
-Release:	1
+Release:	2
 License:	MIT
 Group:		Libraries
 Source0:	http://download.netsurf-browser.org/libs/releases/libcss-%{version}-src.tar.gz
 # Source0-md5:	b7cebcc75fd78f8b9b0702b8ff5eea3f
+Patch0:		%{name}-restrict.patch
 URL:		http://www.netsurf-browser.org/projects/libcss/
 BuildRequires:	libparserutils-devel >= 0.2.4
 BuildRequires:	libwapcaplet-devel >= 0.4.1
@@ -75,6 +76,7 @@ Statyczna biblioteka libCSS.
 
 %prep
 %setup -q -n libcss-%{version}
+%patch0 -p1
 
 # create "gen" target just to execute PRE_TARGETS
 printf '\ngen: $(PRE_TARGETS)\n' >> Makefile
diff --git a/libCSS-restrict.patch b/libCSS-restrict.patch
new file mode 100644
index 0000000..69e9497
--- /dev/null
+++ b/libCSS-restrict.patch
@@ -0,0 +1,19 @@
+--- libcss-0.8.0/include/libcss/computed.h.orig	2018-08-22 15:27:44.000000000 +0200
++++ libcss-0.8.0/include/libcss/computed.h	2018-12-29 19:02:55.633399014 +0100
+@@ -79,13 +79,13 @@
+ css_error css_computed_style_destroy(css_computed_style *style);
+ 
+ css_error css_computed_style_compose(
+-		const css_computed_style *restrict parent,
+-		const css_computed_style *restrict child,
++		const css_computed_style *__restrict parent,
++		const css_computed_style *__restrict child,
+ 		css_error (*compute_font_size)(void *pw,
+ 				const struct css_hint *parent,
+ 				struct css_hint *size),
+ 		void *pw,
+-		css_computed_style **restrict result);
++		css_computed_style **__restrict result);
+ 
+ /******************************************************************************
+  * Property accessors below here                                              *
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libCSS.git/commitdiff/9a69bacd70cf2b33ff9de266f6e0b3d7cedb6998



More information about the pld-cvs-commit mailing list