From 2ae817b123d57b8cae626075b526b98cf9d3a628 Mon Sep 17 00:00:00 2001 From: dsomero Date: Sun, 16 Sep 2012 19:05:41 -0400 Subject: libraries/gtkhtml: Patched for glib 2.32+ --- libraries/gtkhtml/glib-single-include.patch | 52 +++++++++++++++++++++++++++++ libraries/gtkhtml/gtkhtml.SlackBuild | 8 +++-- 2 files changed, 57 insertions(+), 3 deletions(-) create mode 100644 libraries/gtkhtml/glib-single-include.patch (limited to 'libraries') diff --git a/libraries/gtkhtml/glib-single-include.patch b/libraries/gtkhtml/glib-single-include.patch new file mode 100644 index 0000000000..4a4d50362f --- /dev/null +++ b/libraries/gtkhtml/glib-single-include.patch @@ -0,0 +1,52 @@ +Index: gtkhtml-3.18.3/a11y/text.c +=================================================================== +--- gtkhtml-3.18.3.orig/a11y/text.c ++++ gtkhtml-3.18.3/a11y/text.c +@@ -27,7 +27,7 @@ + #include + #include + #include +-#include ++#include + #include + #include "gtkhtml.h" + #include "htmlengine.h" +Index: gtkhtml-3.18.3/gtkhtml/htmlobject.c +=================================================================== +--- gtkhtml-3.18.3.orig/gtkhtml/htmlobject.c ++++ gtkhtml-3.18.3/gtkhtml/htmlobject.c +@@ -23,8 +23,7 @@ + + #include + #include +-#include +-#include ++#include + + #include "htmlclue.h" + #include "htmlclueflow.h" +Index: gtkhtml-3.18.3/gtkhtml/test-stress.c +=================================================================== +--- gtkhtml-3.18.3.orig/gtkhtml/test-stress.c ++++ gtkhtml-3.18.3/gtkhtml/test-stress.c +@@ -1,7 +1,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +Index: gtkhtml-3.18.3/gtkhtml/test-suite.c +=================================================================== +--- gtkhtml-3.18.3.orig/gtkhtml/test-suite.c ++++ gtkhtml-3.18.3/gtkhtml/test-suite.c +@@ -1,6 +1,6 @@ + #include + #include +-#include ++#include + #include + #include + #include diff --git a/libraries/gtkhtml/gtkhtml.SlackBuild b/libraries/gtkhtml/gtkhtml.SlackBuild index cd85543379..1b1bdf5350 100644 --- a/libraries/gtkhtml/gtkhtml.SlackBuild +++ b/libraries/gtkhtml/gtkhtml.SlackBuild @@ -24,15 +24,13 @@ PRGNAM=gtkhtml VERSION=3.18.3 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -74,6 +72,10 @@ find . \ # Allow deprecated functions so the build can finish patch -p1 < $CWD/gtkhtml-3.18.3-allow_deprecated_functions.diff || exit 1 +# 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 \ -- cgit v1.2.3