From ff612ed47732e34e97cf343ee987e568163c649e287acd3e7e2de839c1c97ffa Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Wed, 18 May 2011 07:06:06 +0000 Subject: [PATCH] Accepting request 70376 from devel:libraries:c_c++ Add gcc46_build_fix.patch. Fixes https://build.opensuse.org/package/show?package=libplist&project=openSUSE%3AFactory%3AStaging%3AGcc46 (forwarded request 70366 from cgiboudeaux) OBS-URL: https://build.opensuse.org/request/show/70376 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libplist?expand=0&rev=11 --- gcc46_build_fix.patch | 10 ++++++++++ libplist.changes | 5 +++++ libplist.spec | 2 ++ 3 files changed, 17 insertions(+) create mode 100644 gcc46_build_fix.patch diff --git a/gcc46_build_fix.patch b/gcc46_build_fix.patch new file mode 100644 index 0000000..8ff7be0 --- /dev/null +++ b/gcc46_build_fix.patch @@ -0,0 +1,10 @@ +--- swig/plist.i.orig 2011-05-17 00:10:03.034330863 +0200 ++++ swig/plist.i 2011-05-17 00:12:14.190736151 +0200 +@@ -4,6 +4,7 @@ + %{ + /* Includes the header in the wrapper code */ + #include ++ #include + %} + + %include "std_string.i" diff --git a/libplist.changes b/libplist.changes index 6884ddd..8d7244f 100644 --- a/libplist.changes +++ b/libplist.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 16 22:18:07 UTC 2011 - cgiboudeaux@gmx.com + +- Add gcc46_build_fix.patch. Fixes build with GCC4.6 + ------------------------------------------------------------------- Sun Mar 20 18:17:36 CEST 2011 - opensuse@sukimashita.com diff --git a/libplist.spec b/libplist.spec index 9be0249..49b87c7 100644 --- a/libplist.spec +++ b/libplist.spec @@ -34,6 +34,7 @@ BuildRequires: swig BuildRoot: %{_tmppath}/%{name}-%{version}-build #remove when pkgconfig is fixed to handle Requires.private correctly Patch0: libplist-1.4-pkgconfig.patch +Patch1: gcc46_build_fix.patch %description libplist is a library for handling Apple Binary and XML Property Lists. @@ -110,6 +111,7 @@ This package contains the python bindings. %prep %setup -q %patch0 +%patch1 %build export CFLAGS="%{optflags} -fno-strict-aliasing"