[packages/qt5-qtwebkit] fix build with glib2 >= 2.68

atler atler at pld-linux.org
Tue Aug 10 12:01:46 CEST 2021


commit 999564b753295361e423dd2b10b703111640741f
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Aug 10 12:00:43 2021 +0200

    fix build with glib2 >= 2.68
    
    from https://github.com/qtwebkit/qtwebkit/pull/1058

 glib2.68.patch    | 26 ++++++++++++++++++++++++++
 qt5-qtwebkit.spec |  2 ++
 2 files changed, 28 insertions(+)
---
diff --git a/qt5-qtwebkit.spec b/qt5-qtwebkit.spec
index f486263..a3a1ad6 100644
--- a/qt5-qtwebkit.spec
+++ b/qt5-qtwebkit.spec
@@ -42,6 +42,7 @@ Source0:	https://github.com/qtwebkit/qtwebkit/releases/download/qtwebkit-%{versi
 # Source0-md5:	5b61a72497f06e51db09d57edc3c35fb
 Patch0:		%{name}-css.patch
 Patch1:		%{name}-docs.patch
+Patch2:		glib2.68.patch
 # from FC
 Patch102:	qtwebkit-5.212.0_cmake_cmp0071.patch
 Patch108:	x32.patch
@@ -191,6 +192,7 @@ Dokumentacja do bibliotek Qt5 WebKit w formacie QCH.
 %setup -q -n qtwebkit-%{version}-%{snap}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 %patch102 -p1
 %patch108 -p1
 
diff --git a/glib2.68.patch b/glib2.68.patch
new file mode 100644
index 0000000..53edd03
--- /dev/null
+++ b/glib2.68.patch
@@ -0,0 +1,26 @@
+From 5b698ba3faffd4e198a45be9fe74f53307395e4b Mon Sep 17 00:00:00 2001
+From: Fabian Vogt <fvogt at suse.de>
+Date: Wed, 7 Apr 2021 13:38:09 +0200
+Subject: [PATCH] Remove invalid g_object declarations to fix build with glib
+ >= 2.68
+
+g_object_ref_sink is defined as a macro meanwhile and so the build fails.
+Just remove the declarations, glib.h is included anyway.
+---
+ Source/WTF/wtf/glib/GRefPtr.h | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/Source/WTF/wtf/glib/GRefPtr.h b/Source/WTF/wtf/glib/GRefPtr.h
+index 06133d82cb35d..d9a1d2f145f50 100644
+--- a/Source/WTF/wtf/glib/GRefPtr.h
++++ b/Source/WTF/wtf/glib/GRefPtr.h
+@@ -29,9 +29,6 @@
+ #include <wtf/RefPtr.h>
+ #include <algorithm>
+ 
+-extern "C" void g_object_unref(gpointer);
+-extern "C" gpointer g_object_ref_sink(gpointer);
+-
+ namespace WTF {
+ 
+ enum GRefPtrAdoptType { GRefPtrAdopt };
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/qt5-qtwebkit.git/commitdiff/999564b753295361e423dd2b10b703111640741f



More information about the pld-cvs-commit mailing list