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

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

index 2a364c785c78cfe75f4aa6746fc52270c7fb657e..2d8aac4b65ab3fda107a117813aebfad9d1a5047 100644 (file)
@@ -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 (file)
index 0000000..74fd794
--- /dev/null
@@ -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)
This page took 0.058367 seconds and 4 git commands to generate.