]> git.pld-linux.org Git - packages/libdom.git/commitdiff
- drop Werror (fails to build on current glibc) auto/th/libdom-0.1.0-2
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 25 Nov 2014 18:28:50 +0000 (19:28 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 25 Nov 2014 18:28:50 +0000 (19:28 +0100)
- rel 2

libdom.spec
no-Werror.patch [new file with mode: 0644]

index f3ff74134f90f74a0c53ea7cc288f12de96e2e7a..abb11ffba646033a8ecf3106d090f551c7ef0e2f 100644 (file)
@@ -6,11 +6,12 @@ Summary:      Implementation of W3C DOM
 Summary(pl.UTF-8):     Implementacja W3C DOM
 Name:          libdom
 Version:       0.1.0
 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
 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
 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
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 export CC="%{__cc}"
 
 %build
 export CC="%{__cc}"
diff --git a/no-Werror.patch b/no-Werror.patch
new file mode 100644 (file)
index 0000000..fca5e80
--- /dev/null
@@ -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)
This page took 0.087399 seconds and 4 git commands to generate.