From e70e26e69d384ab3f885dc60c94384020222c9ae Mon Sep 17 00:00:00 2001 From: Than Ngo Date: May 08 2009 14:29:11 +0000 Subject: fix build error with gcc44 : ---------------------------------------------------------------------- --- diff --git a/kdebindings-4.2.3-gcc44.patch b/kdebindings-4.2.3-gcc44.patch new file mode 100644 index 0000000..4d4194d --- /dev/null +++ b/kdebindings-4.2.3-gcc44.patch @@ -0,0 +1,19 @@ +diff -up kdebindings-4.2.3/csharp/kimono/src/marshall_macros_kde.h.orig kdebindings-4.2.3/csharp/kimono/src/marshall_macros_kde.h +--- kdebindings-4.2.3/csharp/kimono/src/marshall_macros_kde.h.orig 2009-05-08 14:50:31.000000000 +0200 ++++ kdebindings-4.2.3/csharp/kimono/src/marshall_macros_kde.h 2009-05-08 14:51:31.000000000 +0200 +@@ -1,3 +1,4 @@ ++#include + #include + + template +diff -up kdebindings-4.2.3/csharp/qyoto/src/qyotosmokebinding.cpp.orig kdebindings-4.2.3/csharp/qyoto/src/qyotosmokebinding.cpp +--- kdebindings-4.2.3/csharp/qyoto/src/qyotosmokebinding.cpp.orig 2009-05-08 14:28:23.000000000 +0200 ++++ kdebindings-4.2.3/csharp/qyoto/src/qyotosmokebinding.cpp 2009-05-08 14:29:05.000000000 +0200 +@@ -13,6 +13,7 @@ + * * + ***************************************************************************/ + ++#include + #include + #include "qyotosmokebinding.h" + #include "qyoto.h" diff --git a/kdebindings.spec b/kdebindings.spec index 4bcd26b..87d65eb 100644 --- a/kdebindings.spec +++ b/kdebindings.spec @@ -40,7 +40,9 @@ Source1: http://websvn.kde.org/*checkout*/trunk/KDE/kdebindings/csharp/qyoto/qyo # patch to disable examples (trouble with them installing to the buildroot) Patch0: kdebindings-qyoto-examples.patch + # upstream patches +Patch100: kdebindings-4.2.3-gcc44.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -242,6 +244,8 @@ Falcon plugin for the Kross archtecture in KDE4. %setup -q %patch0 +# upstream patces +%patch100 -p1 -b .gcc44 %build mkdir -p %{_target_platform}