From ba69e24e69e88a9ebd6da2d12c3c77b65ce42de0 Mon Sep 17 00:00:00 2001 From: ponce Date: Tue, 24 Jul 2012 12:31:02 +0200 Subject: graphics/dia: Included a patch for glib >= 2.31. Signed-off-by: Robby Workman --- graphics/dia/dia-0.97.2-glib-2.31.patch | 59 +++++++++++++++++++++++++++++++++ graphics/dia/dia.SlackBuild | 5 ++- 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 graphics/dia/dia-0.97.2-glib-2.31.patch (limited to 'graphics') diff --git a/graphics/dia/dia-0.97.2-glib-2.31.patch b/graphics/dia/dia-0.97.2-glib-2.31.patch new file mode 100644 index 0000000000000..7429cd217793b --- /dev/null +++ b/graphics/dia/dia-0.97.2-glib-2.31.patch @@ -0,0 +1,59 @@ +From e3d41e6dd3488a29d23f53c57526871a9b79e9bf Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev +Date: Sat, 7 Apr 2012 20:43:27 -0400 +Subject: [PATCH] Do not include glib subheaders directly + +Otherwise, dia cannot build against >=glib-2.31 + +https://bugzilla.gnome.org/show_bug.cgi?id=673712 +--- + objects/custom/shape_typeinfo.c | 2 +- + tests/test-boundingbox.c | 3 --- + tests/test-objects.c | 4 ---- + 3 files changed, 1 insertions(+), 8 deletions(-) + +diff --git a/objects/custom/shape_typeinfo.c b/objects/custom/shape_typeinfo.c +index c6133b1..3fb3d73 100644 +--- a/objects/custom/shape_typeinfo.c ++++ b/objects/custom/shape_typeinfo.c +@@ -27,7 +27,7 @@ + #include "custom_util.h" + #include + #include +-#include ++#include + #include + #include + +diff --git a/tests/test-boundingbox.c b/tests/test-boundingbox.c +index 7adaab5..a13d018 100644 +--- a/tests/test-boundingbox.c ++++ b/tests/test-boundingbox.c +@@ -28,9 +28,6 @@ + #include + #include + +-#if GLIB_CHECK_VERSION(2,16,0) +-#include +-#endif + #include "dialib.h" + + /* +diff --git a/tests/test-objects.c b/tests/test-objects.c +index 57d5675..c5980a5 100644 +--- a/tests/test-objects.c ++++ b/tests/test-objects.c +@@ -28,10 +28,6 @@ + #include + #include + +-#if GLIB_CHECK_VERSION(2,16,0) +-#include +-#endif +- + #include "object.h" + #include "plug-ins.h" + #include "dialib.h" +-- +1.7.8.5 + diff --git a/graphics/dia/dia.SlackBuild b/graphics/dia/dia.SlackBuild index e12e86a37e806..24b8b00626c36 100644 --- a/graphics/dia/dia.SlackBuild +++ b/graphics/dia/dia.SlackBuild @@ -7,7 +7,7 @@ PRGNAM=dia VERSION=0.97.2 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -51,6 +51,9 @@ chmod -R u+w,go+r-w,a-s . # Fix the location of the French manpages. sed -i 's/$(datadir)\/man/@mandir@/' doc/fr/Makefile.in +# patch for glib >= 2.31 (thanks gentoo people) +patch -p1 < $CWD/dia-0.97.2-glib-2.31.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ -- cgit v1.2.3