summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/gtkimageview/disable_Werror_for_gdk_pixbuf.patch21
-rw-r--r--libraries/gtkimageview/gtkimageview.SlackBuild5
2 files changed, 25 insertions, 1 deletions
diff --git a/libraries/gtkimageview/disable_Werror_for_gdk_pixbuf.patch b/libraries/gtkimageview/disable_Werror_for_gdk_pixbuf.patch
new file mode 100644
index 0000000000..68c8aa0467
--- /dev/null
+++ b/libraries/gtkimageview/disable_Werror_for_gdk_pixbuf.patch
@@ -0,0 +1,21 @@
+diff -Naur gtkimageview-1.6.4.orig/configure.in gtkimageview-1.6.4/configure.in
+--- gtkimageview-1.6.4.orig/configure.in 2009-04-05 22:02:43.000000000 +0200
++++ gtkimageview-1.6.4/configure.in 2015-09-02 10:43:04.455960995 +0200
+@@ -20,7 +20,7 @@
+ # Initialize GNOME environment
+ GNOME_COMMON_INIT
+ GNOME_COMPILE_WARNINGS(error)
+-DEPRECATED_FLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
++DEPRECATED_FLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
+ AC_SUBST(DEPRECATED_FLAGS)
+
+ PKG_CHECK_MODULES(DEP,
+@@ -39,7 +39,7 @@
+ ######################################################################
+ ##### Twiddle CFLAGS #################################################
+ ######################################################################
+-CFLAGS="${CFLAGS} -Wall -Werror -std=c99 -Wmissing-prototypes"
++CFLAGS="${CFLAGS} -Wall -std=c99 -Wmissing-prototypes"
+
+
+ ######################################################################
diff --git a/libraries/gtkimageview/gtkimageview.SlackBuild b/libraries/gtkimageview/gtkimageview.SlackBuild
index 6650aea4da..35f1e89ac5 100644
--- a/libraries/gtkimageview/gtkimageview.SlackBuild
+++ b/libraries/gtkimageview/gtkimageview.SlackBuild
@@ -6,7 +6,7 @@
PRGNAM=gtkimageview
VERSION=${VERSION:-1.6.4}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -51,6 +51,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Build breaks because functions in gdk-pixbuf are now deprecated
+patch -p1 < $CWD/disable_Werror_for_gdk_pixbuf.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \