[packages/libnsgif] - drop Werror (fails to buils on current glibc) - rel 2
baggins
baggins at pld-linux.org
Tue Nov 25 19:32:17 CET 2014
commit 9d4c767a153daa0bbaf12271f165f497de0cf278
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Nov 25 19:31:46 2014 +0100
- drop Werror (fails to buils on current glibc)
- rel 2
libnsgif.spec | 4 +++-
no-Werror.patch | 13 +++++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/libnsgif.spec b/libnsgif.spec
index 2a364c7..2d8aac4 100644
--- a/libnsgif.spec
+++ b/libnsgif.spec
@@ -6,11 +6,12 @@ Summary: Decoding library for the GIF format
Summary(pl.UTF-8): Biblioteka dekodująca pliki w formacie GIF
Name: libnsgif
Version: 0.1.1
-Release: 1
+Release: 2
License: MIT
Group: Libraries
Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
# Source0-md5: 5414dfc1db924b99223bbf6f7427377a
+Patch0: no-Werror.patch
URL: http://www.netsurf-browser.org/projects/libnsgif/
BuildRequires: netsurf-buildsystem >= 1.1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -53,6 +54,7 @@ Statyczna biblioteka libnsgif.
%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..74fd794
--- /dev/null
+++ b/no-Werror.patch
@@ -0,0 +1,13 @@
+--- libnsgif-0.1.1/Makefile~ 2014-04-18 12:40:14.000000000 +0200
++++ libnsgif-0.1.1/Makefile 2014-11-25 19:31:16.082347185 +0100
+@@ -13,10 +13,6 @@
+ WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
+ -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
+ -Wmissing-declarations -Wnested-externs -pedantic
+-# BeOS/Haiku standard library headers create warnings
+-ifneq ($(TARGET),beos)
+- WARNFLAGS := $(WARNFLAGS) -Werror
+-endif
+ CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
+ -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
+ ifneq ($(GCCVER),2)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libnsgif.git/commitdiff/9d4c767a153daa0bbaf12271f165f497de0cf278
More information about the pld-cvs-commit
mailing list