[packages/libdom] - drop Werror (fails to build on current glibc) - rel 2

baggins baggins at pld-linux.org
Tue Nov 25 19:29:13 CET 2014


commit 30c507f144c77776dba25942947be4455f9bfa28
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Nov 25 19:28:50 2014 +0100

    - drop Werror (fails to build on current glibc)
    - rel 2

 libdom.spec     |  4 +++-
 no-Werror.patch | 13 +++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/libdom.spec b/libdom.spec
index f3ff741..abb11ff 100644
--- a/libdom.spec
+++ b/libdom.spec
@@ -6,11 +6,12 @@ Summary:	Implementation of W3C DOM
 Summary(pl.UTF-8):	Implementacja W3C DOM
 Name:		libdom
 Version:	0.1.0
-Release:	1
+Release:	2
 License:	MIT
 Group:		Libraries
 Source0:	http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
 # Source0-md5:	055878cf633a935031517e2e209062f6
+Patch0:		no-Werror.patch
 URL:		http://www.netsurf-browser.org/projects/libdom/
 BuildRequires:	expat-devel >= 1.95
 BuildRequires:	libhubbub-devel >= 0.3.0
@@ -63,6 +64,7 @@ Statyczna biblioteka libdom.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 export CC="%{__cc}"
diff --git a/no-Werror.patch b/no-Werror.patch
new file mode 100644
index 0000000..fca5e80
--- /dev/null
+++ b/no-Werror.patch
@@ -0,0 +1,13 @@
+--- libdom-0.1.0/Makefile~	2014-04-18 11:54:12.000000000 +0200
++++ libdom-0.1.0/Makefile	2014-11-25 19:27:52.875672019 +0100
+@@ -15,10 +15,6 @@
+ WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
+ 	-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
+ 	-Wmissing-declarations -Wnested-externs
+-# BeOS/Haiku standard library headers generate warnings
+-ifneq ($(TARGET),beos)
+-  WARNFLAGS := $(WARNFLAGS) -Werror
+-endif
+ # AmigaOS needs this to avoid warnings
+ ifeq ($(TARGET),amiga)
+   CFLAGS := -U__STRICT_ANSI__ $(CFLAGS)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libdom.git/commitdiff/30c507f144c77776dba25942947be4455f9bfa28



More information about the pld-cvs-commit mailing list