summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2015-09-02 10:47:59 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-17 09:40:16 +0700
commita923c9685c02431f61fb37bdf72a380f6ff4a49d (patch)
tree4527b38db32adee3b32380b51a9e6f0f02985fd3 /libraries
parentd8de9e2123f1fafd0b4218bc98d806ee5eab5924 (diff)
downloadslackbuilds-a923c9685c02431f61fb37bdf72a380f6ff4a49d.tar.gz
libraries/gtkimageview: Avoid breaking because of depr. functions.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-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 \