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
This commit is contained in:
Sascha Peilicke 2011-05-18 07:06:06 +00:00 committed by Git OBS Bridge
parent 627006c2eb
commit ff612ed477
3 changed files with 17 additions and 0 deletions

10
gcc46_build_fix.patch Normal file
View File

@ -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 <plist/plist++.h>
+ #include <cstddef>
%}
%include "std_string.i"

View File

@ -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

View File

@ -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"