From 30c507f144c77776dba25942947be4455f9bfa28 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Tue, 25 Nov 2014 19:28:50 +0100 Subject: [PATCH] - drop Werror (fails to build on current glibc) - rel 2 --- libdom.spec | 4 +++- no-Werror.patch | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 no-Werror.patch diff --git a/libdom.spec b/libdom.spec index f3ff741..abb11ff 100644 --- a/libdom.spec +++ b/libdom.spec @@ -6,11 +6,12 @@ Summary: Implementation of W3C DOM 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 +Patch0: no-Werror.patch 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 +%patch0 -p1 %build export CC="%{__cc}" diff --git a/no-Werror.patch b/no-Werror.patch new file mode 100644 index 0000000..fca5e80 --- /dev/null +++ b/no-Werror.patch @@ -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) -- 2.43.0