[packages/libsvgtiny] - drop Werror (fails to build on current glibc) - rel 2
baggins
baggins at pld-linux.org
Tue Nov 25 19:34:13 CET 2014
commit 0539a61822923b3a127444c5808561c7218299e2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Nov 25 19:33:51 2014 +0100
- drop Werror (fails to build on current glibc)
- rel 2
libsvgtiny.spec | 4 +++-
no-Werror.patch | 15 +++++++++++++++
2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/libsvgtiny.spec b/libsvgtiny.spec
index c6304cb..98a87e6 100644
--- a/libsvgtiny.spec
+++ b/libsvgtiny.spec
@@ -6,11 +6,12 @@ Summary: Implementation of SVG Tiny
Summary(pl.UTF-8): Implementacja SVG Tiny
Name: libsvgtiny
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: 6e3da8ecfde7749852a66195ebea0de1
+Patch0: no-Werror.patch
URL: http://www.netsurf-browser.org/projects/libsvgtiny/
BuildRequires: gperf
BuildRequires: libdom-devel >= 0.1.0
@@ -68,6 +69,7 @@ Statyczna biblioteka libsvgtiny.
%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..e0f99cb
--- /dev/null
+++ b/no-Werror.patch
@@ -0,0 +1,15 @@
+--- libsvgtiny-0.1.1/Makefile~ 2014-04-18 13:19:22.000000000 +0200
++++ libsvgtiny-0.1.1/Makefile 2014-11-25 19:33:17.289018921 +0100
+@@ -15,12 +15,6 @@
+ WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
+ -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
+ -Wmissing-declarations -Wnested-externs -pedantic
+-# BeOS/Haiku/AmigaOS standard library headers create warnings
+-ifneq ($(TARGET),beos)
+- ifneq ($(TARGET),amiga)
+- WARNFLAGS := $(WARNFLAGS) -Werror
+- endif
+-endif
+
+ CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
+ -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libsvgtiny.git/commitdiff/0539a61822923b3a127444c5808561c7218299e2
More information about the pld-cvs-commit
mailing list