From 22b215654f5c659946ffab337fc55d68bfd3f097 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Fri, 18 Nov 2011 13:47:00 -0600 Subject: [PATCH] fix FTBFS against newer glib --- qtwebkit.spec | 16 ++++++++++++++-- webkit-qtwebkit-2.2-glib231.patch | 12 ++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 webkit-qtwebkit-2.2-glib231.patch diff --git a/qtwebkit.spec b/qtwebkit.spec index d63e5e8..9212336 100644 --- a/qtwebkit.spec +++ b/qtwebkit.spec @@ -3,7 +3,7 @@ Name: qtwebkit Version: 2.2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Qt WebKit bindings Group: System Environment/Libraries License: LGPLv2 with exceptions or GPLv3 with exceptions @@ -27,13 +27,17 @@ Patch4: webkit-qtwebkit-2.2-no_Werror.patch # fix for qt-4.6.x Patch5: webkit-qtwebkit-2.2tp1-qt46.patch +# fix for glib-2.31+ +Patch6: webkit-qtwebkit-2.2-glib231.patch + BuildRequires: bison BuildRequires: chrpath BuildRequires: flex BuildRequires: gperf BuildRequires: libicu-devel +BuildRequires: pkgconfig(gio-2.0) pkgconfig(glib-2.0) # gstreamer media support -BuildRequires: pkgconfig(gstreamer-0.10) pkgconfig(gstreamer-app-0.10) pkgconfig(gio-2.0) pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gstreamer-0.10) pkgconfig(gstreamer-app-0.10) BuildRequires: pkgconfig(libpcre) BuildRequires: pkgconfig(QtCore) pkgconfig(QtNetwork) BuildRequires: pkgconfig(sqlite3) @@ -74,6 +78,11 @@ Provides: qt4-webkit-devel%{?_isa} = 2:%{version}-%{release} %patch3 -p1 -b .debuginfo %patch4 -p1 -b .no_Werror %patch5 -p1 -b .qt46 +%if 0%{?fedora} > 16 +# This quick fix works ONLY with GLib >= 2.31. It's harder to fix this portably. +# See https://bugs.webkit.org/show_bug.cgi?id=69840 for the gory details. +%patch6 -p1 -b .glib231 +%endif %build @@ -128,6 +137,9 @@ rm -rf %{buildroot} %changelog +* Fri Nov 18 2011 Rex Dieter 2.2.0-2 +- fix FTBFS against newer glib + * Thu Sep 29 2011 Rex Dieter 2.2.0-1 - qtwebkit-2.2.0 (final) - more pkgconfig-style deps diff --git a/webkit-qtwebkit-2.2-glib231.patch b/webkit-qtwebkit-2.2-glib231.patch new file mode 100644 index 0000000..237c95d --- /dev/null +++ b/webkit-qtwebkit-2.2-glib231.patch @@ -0,0 +1,12 @@ +diff -up webkit-qtwebkit/Source/JavaScriptCore/wtf/gobject/GTypedefs.h.glib231 webkit-qtwebkit/Source/JavaScriptCore/wtf/gobject/GTypedefs.h +--- webkit-qtwebkit/Source/JavaScriptCore/wtf/gobject/GTypedefs.h.glib231 2011-09-13 15:23:44.000000000 -0500 ++++ webkit-qtwebkit/Source/JavaScriptCore/wtf/gobject/GTypedefs.h 2011-11-18 13:42:40.348070699 -0600 +@@ -52,7 +52,7 @@ typedef struct _GFile GFile; + typedef struct _GHashTable GHashTable; + typedef struct _GInputStream GInputStream; + typedef struct _GList GList; +-typedef struct _GMutex GMutex; ++typedef union _GMutex GMutex; + typedef struct _GPatternSpec GPatternSpec; + typedef struct _GPollableOutputStream GPollableOutputStream; + typedef struct _GSocketClient GSocketClient;