From 42855131876e918f4eb6bbc24c7ddbec0eca3b3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Tue, 25 Nov 2014 19:35:48 +0100 Subject: [PATCH] - drop Werror (fails to build on current glibc) - rel 2 --- netsurf.spec | 4 +++- no-Werror.patch | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 no-Werror.patch diff --git a/netsurf.spec b/netsurf.spec index 740bf9b..830391c 100644 --- a/netsurf.spec +++ b/netsurf.spec @@ -8,7 +8,7 @@ Summary: Light WWW browser with CSS support Summary(pl.UTF-8): Lekka przeglądarka WWW z obsługą CSS Name: netsurf Version: 3.1 -Release: 1 +Release: 2 License: GPL v2 with OpenSSL exception (code), MIT (artwork) Group: Applications/Networking Source0: http://download.netsurf-browser.org/netsurf/releases/source/%{name}-%{version}-src.tar.gz @@ -16,6 +16,7 @@ Source0: http://download.netsurf-browser.org/netsurf/releases/source/%{name}-%{v Source1: %{name}.desktop Patch0: nsfb-ldflags.patch Patch1: %{name}-link.patch +Patch2: no-Werror.patch URL: http://netsurf-browser.org/ BuildRequires: curl-devel BuildRequires: freetype-devel >= 2 @@ -127,6 +128,7 @@ Ten pakiet zawiera wersję SDL. %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 cat << EOF > Makefile.config NETSURF_FB_FONTLIB := freetype diff --git a/no-Werror.patch b/no-Werror.patch new file mode 100644 index 0000000..51fbeef --- /dev/null +++ b/no-Werror.patch @@ -0,0 +1,11 @@ +--- netsurf-3.1/monkey/Makefile.target~ 2014-04-25 13:14:16.000000000 +0200 ++++ netsurf-3.1/monkey/Makefile.target 2014-11-25 19:35:10.859023670 +0100 +@@ -33,8 +33,6 @@ + # no pkg-config for this library + $(eval $(call feature_enabled,WEBP,-DWITH_WEBP,-lwebp -lvpx,WebP (libwebp))) + +-WARNFLAGS += -Werror +- + MONKEYCFLAGS := -std=c99 -Dmonkey -Dnsmonkey \ + -D_BSD_SOURCE \ + -D_XOPEN_SOURCE=600 \ -- 2.44.0