From 760b14b2f5fdaf41b98fbd34162cb47d5cadae2a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Nov 25 2008 03:11:36 +0000 Subject: down with -Werror --- diff --git a/metacity.spec b/metacity.spec index 7b4c32f..67e6659 100644 --- a/metacity.spec +++ b/metacity.spec @@ -1,7 +1,7 @@ Summary: Unobtrusive window manager Name: metacity Version: 2.25.8 -Release: 2%{?dist} +Release: 3%{?dist} URL: http://download.gnome.org/sources/metacity/ Source0: http://download.gnome.org/sources/metacity/2.25/metacity-%{version}.tar.bz2 Patch0: default-theme.patch @@ -13,6 +13,8 @@ Patch2: leaks.patch Patch3: string-leak.patch # http://bugzilla.gnome.org/show_bug.cgi?id=558723 Patch4: stop-spamming-xsession-errors.patch +# http://bugzilla.gnome.org/show_bug.cgi?id=562196 +Patch5: werror-no-thanks.patch License: GPLv2+ Group: User Interface/Desktops @@ -74,6 +76,7 @@ API. This package exists purely for technical reasons. %patch2 -p1 -b .leaks %patch3 -p1 -b .string-leak %patch4 -p1 -b .stop-spamming-xsession-errors +%patch5 -p1 -b .werror-no-thanks %build rm -rf $RPM_BUILD_ROOT @@ -176,7 +179,7 @@ fi %{_mandir}/man1/metacity-window-demo.1.gz %changelog -* Mon Nov 24 2008 Matthias Clasen - 2.25.8-2 +* Mon Nov 24 2008 Matthias Clasen - 2.25.8-3 - Update to 2.25.8 * Sat Nov 22 2008 Matthias Clasen - 2.25.5-4 diff --git a/werror-no-thanks.patch b/werror-no-thanks.patch new file mode 100644 index 0000000..01a34b3 --- /dev/null +++ b/werror-no-thanks.patch @@ -0,0 +1,13 @@ +diff -up metacity-2.25.8/configure.werror metacity-2.25.8/configure +--- metacity-2.25.8/configure.werror 2008-11-24 22:08:04.000000000 -0500 ++++ metacity-2.25.8/configure 2008-11-24 22:08:15.000000000 -0500 +@@ -21223,9 +21223,6 @@ if test "x$enable_debug" = "xyes"; then + CFLAGS="$CFLAGS -g -O" + fi + +-# Warnings are there for a reason +-CFLAGS="$CFLAGS -Wall -Werror -ansi" +- + # Use gnome-doc-utils: + + gdu_cv_version_required=0.9.0