Compare commits

...
This repository has been archived on 2026-09-10. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.

38 commits

Author SHA1 Message Date
Michael Catanzaro
1f67dd3a74 Fix garbage collection on ppc64le and s390x after upgrade to 2.28 2020-05-08 16:38:36 -05:00
Michael Catanzaro
1833828fde Update to 2.28.2 2020-04-24 18:07:09 -05:00
Michael Catanzaro
cbaf121224 Fix and reenable WPE renderer. Fix popup menus in X11. 2020-04-17 10:57:15 -05:00
Michael Catanzaro
9ece8d33a3 Update to 2.28.1 2020-04-13 12:45:46 -05:00
Michael Catanzaro
ef670f4389 Fix attempt to disable PSON (WebKit #210287) 2020-04-09 16:22:13 -05:00
Michael Catanzaro
68fdebdfa9 Second attempt to fix ppc64le. Forcibly disable PSON (WebKit #210287) 2020-04-09 16:13:58 -05:00
Michael Catanzaro
da47a534e3 Fix crashes on ppc64le 2020-03-30 13:23:43 -05:00
Michael Catanzaro
9474e115c2 BuildRequires: rubygem-json. Not plural. Sigh. 2020-03-11 22:24:02 -05:00
Michael Catanzaro
7e5563654c Remove BuildRequires: rubygems-json, should not have been added in F31 2020-03-11 21:49:53 -05:00
Michael Catanzaro
1083b17d32 Refresh webkit-process.patch 2020-03-11 21:22:53 -05:00
Michael Catanzaro
c6be2545de BuildRequires: rubygems-json 2020-03-11 20:44:36 -05:00
Michael Catanzaro
5e66edf4b8 Rebuild with koji hopefully not broken this time? 2020-03-11 19:07:46 -05:00
Michael Catanzaro
193becd4e6 Update to 2.28.0 2020-03-11 13:40:01 -05:00
Michael Catanzaro
0d82d7015c Try adding gpg key to git 2020-02-14 13:18:57 -06:00
Michael Catanzaro
c419fd1d37 Update to 2.26.4
Add GPG verification
2020-02-14 11:58:03 -06:00
Eike Rathke
89062c29fa Update to 2.26.3 2020-01-23 15:26:36 +01:00
Eike Rathke
4ac8e56e56 Update to 2.26.2 2019-11-08 19:43:51 +01:00
Michael Catanzaro
c21b41e022 Disable broken WPE renderer 2019-10-28 08:29:39 -05:00
Michael Catanzaro
179f0e84f6 Disable broken WPE renderer 2019-10-28 08:29:04 -05:00
Eike Rathke
362cde5f80 Rebase to 2.26.1, add webkit-process.patch 2019-10-23 10:54:55 +02:00
Eike Rathke
706a08880a Merge remote-tracking branch 'origin/f31' into f30
Rebase f30 to 2.26.1

 Conflicts:
	.gitignore
	sources
	webkit2gtk3.spec
2019-10-22 20:14:25 +02:00
Eike Rathke
6d20b8862e Merge remote-tracking branch 'origin/master' into f31 2019-09-27 13:17:35 +02:00
Michael Catanzaro
c2a3540911 Enable WPE renderer, resolves rhbz#1753730 2019-09-19 11:55:59 -05:00
Tomas Popela
3137b64e1b Backport fix for EGL_BAD_ALLOC
Resolves: rhbz#1751936
2019-09-17 14:48:37 +02:00
Tomas Popela
2bc0a7cb80 Backport fix for a crash when closing the view and HW acceleration is enabled
Resolves: rhbz#1750345
2019-09-17 14:42:37 +02:00
Tomas Popela
ef41021020 Update to 2.24.4 2019-08-28 11:55:35 +02:00
Tomas Popela
d90cdb6521 Update to 2.24.3 2019-07-02 12:04:00 +02:00
Eike Rathke
123671e81a Update to 2.24.2 2019-05-17 21:01:44 +02:00
Eike Rathke
3bfdc2db68 Update to 2.24.1 2019-04-09 13:55:19 +02:00
Tomas Popela
8f2cc159f7 Update comment for the shebang patch 2019-03-14 15:11:27 +01:00
Tomas Popela
29a38e05cc Update to 2.24.0 2019-03-13 21:06:56 +01:00
Tomas Popela
33e36a71d3 Remove GCC 9 workaround
As Jakub reverted it in GCC itself.
2019-03-13 21:06:55 +01:00
Tomas Popela
73d89bfd4d Fix the build with gcc 9 2019-03-13 21:06:54 +01:00
Tomas Popela
711129b8dc Update to 2.23.92
Switch to python3
2019-03-13 21:06:53 +01:00
Tomas Popela
abeef67ddf GTK was renamed as well 2019-03-13 21:06:52 +01:00
Tomas Popela
3384b481fa No need to explicitly set some cmake args
They are being handled automatically.
2019-02-21 12:40:32 +01:00
Tomas Popela
0a866ee052 Reflect the upstream project rename 2019-02-21 07:07:36 +01:00
Tomas Popela
f90d52cb1b Remove an unused patch 2019-02-21 07:06:19 +01:00
9 changed files with 124 additions and 93 deletions

20
.gitignore vendored
View file

@ -26,10 +26,18 @@
/webkitgtk-2.24.0.tar.xz
/webkitgtk-2.24.1.tar.xz
/webkitgtk-2.24.2.tar.xz
/webkitgtk-2.25.1.tar.xz
/webkitgtk-2.25.2.tar.xz
/webkitgtk-2.25.3.tar.xz
/webkitgtk-2.25.4.tar.xz
/webkitgtk-2.25.92.tar.xz
/webkitgtk-2.26.0.tar.xz
/webkitgtk-2.24.3.tar.xz
/webkitgtk-2.24.4.tar.xz
/webkitgtk-2.26.1.tar.xz
/webkitgtk-2.26.2.tar.xz
/webkitgtk-2.26.3.tar.xz
/webkitgtk-2.26.4.tar.xz
/webkitgtk-2.27.1.tar.xz
/webkitgtk-2.27.2.tar.xz
/webkitgtk-2.27.3.tar.xz
/webkitgtk-2.27.4.tar.xz
/webkitgtk-2.27.90.tar.xz
/webkitgtk-2.27.91.tar.xz
/webkitgtk-2.28.0.tar.xz
/webkitgtk-2.28.1.tar.xz
/webkitgtk-2.28.2.tar.xz

25
fix-ppc64le-s390x.patch Normal file
View file

@ -0,0 +1,25 @@
Index: /Source/JavaScriptCore/heap/GCMemoryOperations.h
===================================================================
--- /Source/JavaScriptCore/heap/GCMemoryOperations.h (revision 261325)
+++ /Source/JavaScriptCore/heap/GCMemoryOperations.h (revision 261326)
@@ -54,5 +54,5 @@
};
-#if COMPILER(GCC_COMPATIBLE) && USE(JSVALUE64)
+#if COMPILER(GCC_COMPATIBLE) && (CPU(X86_64) || CPU(ARM64))
if (bytes <= smallCutoff)
slowPathForwardMemcpy();
@@ -122,6 +122,4 @@
: "d0", "d1", "memory"
);
-#else
- slowPathForwardMemcpy();
#endif // CPU(X86_64)
} else {
@@ -140,5 +138,5 @@
#else
slowPathForwardMemcpy();
-#endif // COMPILER(GCC_COMPATIBLE)
+#endif // COMPILER(GCC_COMPATIBLE) && (CPU(X86_64) || CPU(ARM64))
#else
memcpy(dst, src, bytes);

Binary file not shown.

View file

@ -1,24 +0,0 @@
From 494e4abb7a5130376d3cdb41a5e3963650b8659f Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Mon, 16 Jul 2018 06:34:53 +0200
Subject: [PATCH] Fix the broken build due to python2
/builddir/build/BUILD/webkitgtk-2.23.3/Tools/gtkdoc/generate-gtkdoc
/usr/bin/env: 'python': No such file or directory
---
Tools/gtk/generate-gtkdoc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Tools/gtk/generate-gtkdoc b/Tools/gtk/generate-gtkdoc
index 45c23dfb..a3f82984 100755
--- a/Tools/gtkdoc/generate-gtkdoc
+++ b/Tools/gtkdoc/generate-gtkdoc
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
# Copyright (C) 2011 Igalia S.L.
#
# This library is free software; you can redistribute it and/or
--
2.17.1

View file

@ -1 +1 @@
SHA512 (webkitgtk-2.26.1.tar.xz) = dd8ab515b3603c8fbb3fdf92b099801e8c560a6ccf759103adc7f94649f089d6c8707002facd7b91f86f9671ddd28488eb602233b7339e60287a0ec89f22aed7
SHA512 (webkitgtk-2.28.2.tar.xz) = c7c0c55b1ebc61c0ec9cd9af96a12058a96ba9b011330b12c7c2776685736e0edf604f5eee639637cb50b2967d77c2db4dea15050a575fd34a1f6f0a8b8c56f8

View file

@ -1,24 +0,0 @@
--- a/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp
+++ a/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp
@@ -30,6 +30,12 @@
#include <wtf/glib/GRefPtr.h>
#include <wtf/glib/GUniquePtr.h>
+#if PLATFORM(GTK)
+#define BASE_DIRECTORY "webkitgtk"
+#elif PLATFORM(WPE)
+#define BASE_DIRECTORY "wpe"
+#endif
+
#if __has_include(<sys/memfd.h>)
#include <sys/memfd.h>
@@ -129,7 +135,7 @@ public:
if (!dbusPath.get())
return;
- GUniquePtr<char> appRunDir(g_build_filename(g_get_user_runtime_dir(), g_get_prgname(), nullptr));
+ GUniquePtr<char> appRunDir(g_build_filename(g_get_user_runtime_dir(), BASE_DIRECTORY, nullptr));
m_proxyPath = makeProxyPath(appRunDir.get()).get();
m_socket = dbusAddress;

16
webkit-process.patch Normal file
View file

@ -0,0 +1,16 @@
diff --git a/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp b/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp
index da25d96e35b5..242ce8c00eeb 100644
--- a/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp
+++ b/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp
@@ -381,6 +381,11 @@ static void webkitWebContextConstructed(GObject* object)
const char* useSingleWebProcess = getenv("WEBKIT_USE_SINGLE_WEB_PROCESS");
if (useSingleWebProcess && strcmp(useSingleWebProcess, "0"))
configuration.setUsesSingleWebProcess(true);
+ else {
+ const char* prgname = g_get_prgname();
+ if (!g_strcmp0(prgname, "evolution") || !g_strcmp0(prgname, "geary"))
+ configuration.setUsesSingleWebProcess(true);
+ }
}
#endif

View file

@ -6,20 +6,23 @@
cp -p %1 _license_files/$(echo '%1' | sed -e 's!/!.!g')
Name: webkit2gtk3
Version: 2.26.1
Release: 1%{?dist}
Version: 2.28.2
Release: 2%{?dist}
Summary: GTK Web content engine library
License: LGPLv2
URL: http://www.webkitgtk.org/
Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz
Source1: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz.asc
# Created from http://hkps.pool.sks-keyservers.net/pks/lookup?op=get&search=0xF3D322D0EC4582C3
Source2: https://people.gnome.org/~mcatanzaro/gpg-key-D7FCF61CF9A2DEAB31D81BD3F3D322D0EC4582C3.gpg
# https://bugs.webkit.org/show_bug.cgi?id=162611
Patch0: user-agent-branding.patch
# Don't use the shebang, but point straight to python 3
Patch1: no-env-shebang.patch
# https://bugs.webkit.org/show_bug.cgi?id=201979
Patch2: webkit-201979.patch
# https://mail.gnome.org/archives/distributor-list/2019-October/msg00000.html
Patch1: webkit-process.patch
# https://bugs.webkit.org/show_bug.cgi?id=210685
Patch2: fix-ppc64le-s390x.patch
BuildRequires: bison
BuildRequires: bubblewrap
@ -28,6 +31,7 @@ BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: gettext
BuildRequires: git
BuildRequires: gnupg2
BuildRequires: gperf
BuildRequires: gtk-doc
BuildRequires: hyphen-devel
@ -38,6 +42,7 @@ BuildRequires: perl-JSON-PP
BuildRequires: perl-Switch
BuildRequires: python3
BuildRequires: ruby
BuildRequires: rubygem-json
BuildRequires: rubygems
BuildRequires: xdg-dbus-proxy
@ -75,8 +80,6 @@ BuildRequires: pkgconfig(upower-glib)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-egl)
BuildRequires: pkgconfig(wayland-server)
BuildRequires: pkgconfig(wpe-1.0)
BuildRequires: pkgconfig(wpebackend-fdo-1.0)
BuildRequires: pkgconfig(xt)
Requires: bubblewrap
@ -152,7 +155,8 @@ The %{name}-jsc-devel package contains libraries, build data, and header
files for developing applications that use JavaScript engine from %{name}.
%prep
%autosetup -p1 -n webkitgtk-%{version} -S git
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -p1 -n webkitgtk-%{version}
# Remove bundled libraries
rm -rf Source/ThirdParty/gtest/
@ -187,6 +191,7 @@ pushd %{_target_platform}
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_GTKDOC=ON \
-DENABLE_MINIBROWSER=ON \
-DUSE_WPE_RENDERER=OFF \
-DPYTHON_EXECUTABLE=%{_bindir}/python3 \
..
popd
@ -266,46 +271,65 @@ export NINJA_STATUS="[%f/%t][%e] "
%{_datadir}/gtk-doc/html/webkitdomgtk-4.0/
%changelog
* Thu Sep 26 2019 Eike Rathke <erack@redhat.com> - 2.26.1-1
- Resolves: rhbz#1754472 Update to 2.26.1
* Fri May 08 2020 Michael Catanzaro <mcatanzaro@redhat.com> - 2.28.2-2
- Fix garbage collection on ppc64le and s390x after upgrade to 2.28
* Thu Sep 19 2019 Michael Catanzaro <mcatanzaro@gnome.org> - 2.26.0-3
- Enable WPE renderer, resolves rhbz#1753730
* Fri Apr 24 2020 Michael Catanzaro <mcatanzaro@redhat.com> - 2.28.2-1
- Update to 2.28.2
* Tue Sep 17 2019 Tomas Popela <tpopela@redhat.com> - 2.26.0-2
- Backport fix for a crash when closing the view and HW acceleration is enabled
- Resolves: rhbz#1750345
- Backport fix for EGL_BAD_ALLOC
- Resolves: rhbz#1751936
* Fri Apr 17 2020 Michael Catanzaro <mcatanzaro@redhat.com> - 2.28.1-3
- Fix popup menus in X11.
* Mon Sep 09 2019 Kalev Lember <klember@redhat.com> - 2.26.0-1
- Update to 2.26.0
* Mon Apr 13 2020 Michael Catanzaro <mcatanzaro@redhat.com> - 2.28.1-1
- Update to 2.28.1. Reenable PSON.
* Wed Sep 04 2019 Michael Catanzaro <mcatanzaro@gnome.org> - 2.25.92-2
- Add patch to fix startup in X11 when not using gdm
* Thu Apr 09 2020 Michael Catanzaro <mcatanzaro@redhat.com> - 2.28.0-9.1
- Fix attempt to disable PSON (WebKit #210287)
* Tue Sep 03 2019 Eike Rathke <erack@redhat.com> - 2.25.92-1
- Resolves: rhbz#1748305 Update to 2.25.92
* Thu Apr 09 2020 Michael Catanzaro <mcatanzaro@redhat.com> - 2.28.0-9
- Second attempt to fix ppc64le
- Forcibly disable PSON (WebKit #210287)
* Fri Aug 02 2019 Eike Rathke <erack@redhat.com> - 2.25.4-1
- Update to 2.25.4
* Mon Mar 30 2020 Michael Catanzaro <mcatanzaro@redhat.com> - 2.28.0-6
- Fix crashes on ppc64le
* Fri Jul 26 2019 Tomas Popela <tpopela@redhat.com> - 2.25.3-2
- Follow-up fixes for the GTK2 plugins support removal
- Fixes: rhbz#1733436
* Wed Mar 11 2020 Michael Catanzaro <mcatanzaro@redhat.com> - 2.28.0-5
- BuildRequires: rubygem-json. Not plural. Sigh.
* Tue Jul 23 2019 Eike Rathke <erack@redhat.com> - 2.25.3-1
- Update to 2.25.3
- This removes support for GTK 2 based NPAPI plugins (such as Adobe Flash)
* Wed Mar 11 2020 Michael Catanzaro <mcatanzaro@redhat.com> - 2.28.0-4
- Remove BuildRequires: rubygems-json, should not have been added in F31
* Wed Jul 17 2019 Adam Williamson <awilliam@redhat.com> - 2.25.2-2
- Backport fix for crasher that affects Evolution (bwo#199621)
* Wed Mar 11 2020 Michael Catanzaro <mcatanzaro@redhat.com> - 2.28.0-3
- BuildRequires: rubygems-json
- Refresh webkit-process.patch
* Mon Jun 24 2019 Eike Rathke <erack@redhat.com> - 2.25.2-1
- Update to 2.25.2
* Wed Mar 11 2020 Michael Catanzaro <mcatanzaro@redhat.com> - 2.28.0-2
- Rebuild with koji hopefully not broken this time?
* Thu Jun 06 2019 Eike Rathke <erack@redhat.com> - 2.25.1-1
- Update to 2.25.1
* Wed Mar 11 2020 Michael Catanzaro <mcatanzaro@redhat.com> - 2.28.0-1
- Update to 2.28.0
* Fri Feb 14 2020 Michael Catanzaro <mcatanzaro@redhat.com> - 2.26.4-1
- Update to 2.26.4
- Add GPG verification of tarball
* Thu Jan 23 2020 Eike Rathke <erack@redhat.com> - 2.26.3-1
- Update to 2.26.3
* Fri Nov 08 2019 Eike Rathke <erack@redhat.com> - 2.26.2-1
- Update to 2.26.2
* Mon Oct 28 2019 Michael Catanzaro <mcatanzaro@gnome.org> - 2.26.1-3
- Disable broken WPE renderer
* Wed Oct 23 2019 Eike Rathke <erack@redhat.com> - 2.26.1-2
- Rebase to 2.26.1
* Wed Aug 28 2019 Tomas Popela <tpopela@redhat.com> - 2.24.4-1
- Update to 2.24.4
* Tue Jul 02 2019 Tomas Popela <tpopela@redhat.com> - 2.24.3-1
- Update to 2.24.3
* Fri May 17 2019 Eike Rathke <erack@redhat.com> - 2.24.2-1
- Update to 2.24.2

View file

@ -0,0 +1,6 @@
-----BEGIN PGP SIGNATURE-----
iF0EABEDAB0WIQTX/PYc+aLeqzHYG9Pz0yLQ7EWCwwUCXqK4bQAKCRDz0yLQ7EWC
wyc4AKDvvzbZygtiXvWU7VESwg7E79oLMACeOKkEjYKgiaxA/OAGQ3TzF8vazT0=
=jnoc
-----END PGP SIGNATURE-----