summaryrefslogtreecommitdiff
path: root/libraries/libdmapsharing
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2012-09-16 19:06:19 -0400
committerdsomero <xgizzmo@slackbuilds.org>2012-09-16 19:42:18 -0400
commit7bdb8e4c87e2a18a49f684a9d6d6a774f767d5f6 (patch)
treec39713be805ffb991405d4a34bde999fb9ff514c /libraries/libdmapsharing
parent2ae817b123d57b8cae626075b526b98cf9d3a628 (diff)
downloadslackbuilds-7bdb8e4c87e2a18a49f684a9d6d6a774f767d5f6.tar.gz
libraries/libdmapsharing: Patched for glib 2.32+
Diffstat (limited to 'libraries/libdmapsharing')
-rw-r--r--libraries/libdmapsharing/glib-single-include.patch14
-rw-r--r--libraries/libdmapsharing/libdmapsharing.SlackBuild6
2 files changed, 19 insertions, 1 deletions
diff --git a/libraries/libdmapsharing/glib-single-include.patch b/libraries/libdmapsharing/glib-single-include.patch
new file mode 100644
index 0000000000..9f101807d8
--- /dev/null
+++ b/libraries/libdmapsharing/glib-single-include.patch
@@ -0,0 +1,14 @@
+Index: libdmapsharing-2.1.9/libdmapsharing/dpap-share.c
+===================================================================
+--- libdmapsharing-2.1.9.orig/libdmapsharing/dpap-share.c
++++ libdmapsharing-2.1.9/libdmapsharing/dpap-share.c
+@@ -29,8 +29,7 @@
+ #include <stdlib.h>
+
+ #include <glib/gi18n.h>
+-#include <glib/gslist.h>
+-#include <glib/gmappedfile.h>
++#include <glib.h>
+
+ #include <unistd.h>
+ #include <sys/types.h>
diff --git a/libraries/libdmapsharing/libdmapsharing.SlackBuild b/libraries/libdmapsharing/libdmapsharing.SlackBuild
index 8733fa6c36..8c4f917f47 100644
--- a/libraries/libdmapsharing/libdmapsharing.SlackBuild
+++ b/libraries/libdmapsharing/libdmapsharing.SlackBuild
@@ -6,7 +6,7 @@
PRGNAM=libdmapsharing
VERSION=${VERSION:-2.1.9}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -51,6 +51,10 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Starting with glib 2.32 it is now mandatory to
+# include glib.h instead of individual headers.
+patch -p1 -i $CWD/glib-single-include.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \