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.

30 commits

Author SHA1 Message Date
Eike Rathke
f39155959b Update to 2.24.2 2019-05-17 19:01:56 +02:00
Eike Rathke
a009c90013 Fix i686 build, applying upstream SSE2 revert 2019-04-11 13:32:52 +02:00
Eike Rathke
e9e7b48bd1 Update to 2.24.1
Merged from F30 for consistency:
Switch to Ninja
Switch to python3
Switch to using pkgconfig build requires
Switch to enchant-2
2019-04-10 18:56:09 +02:00
Eike Rathke
4981aa5916 Update to 2.22.7 2019-03-04 18:40:16 +01:00
Eike Rathke
ae2b7ba97b Update to 2.22.6 2019-02-11 18:04:46 +01:00
Eike Rathke
96704501d0 Update to 2.22.5 2018-12-17 16:20:33 +01:00
Tomas Popela
a37ccae56c Update to 2.22.4 2018-11-22 07:49:56 +01:00
Tomas Popela
3f6228d23e Don't try to apply non-existing patch 2018-10-30 09:38:03 +01:00
Tomas Popela
bf96ff5dac Update to 2.22.3 2018-10-29 12:29:43 +01:00
Tomas Popela
5242e4856f Apply the printing-crash patch 2018-10-19 11:51:26 +02:00
Tomas Popela
95d4f2e48f Fix WebProcess crash while printing
Resolves: rhbz#1639754
2018-10-19 11:46:32 +02:00
Tomas Popela
ceb1b95a6d Don't apply non-existent patch 2018-09-23 18:07:26 +02:00
Tomas Popela
881d2a7a9e Update to 2.22.2 2018-09-23 18:05:16 +02:00
Tomas Popela
8b0f8ba14b Update the ARM patch 2018-09-21 16:40:46 +02:00
Tomas Popela
97e3d35f0c Fix the armv7 build 2018-09-20 13:46:44 +02:00
Tomas Popela
0f485c3425 Update to 2.22.1 2018-09-20 12:01:56 +02:00
Tomas Popela
f740aa5295 Enable ld.gold on aarch64 2018-09-05 14:30:55 +02:00
Tomas Popela
993499ddd0 Remove support for s390 2018-09-05 13:49:13 +02:00
Tomas Popela
b3878d239f Remove support for ppc 2018-09-05 13:45:07 +02:00
Tomas Popela
f8d13ad2fd Update to 2.22.0 2018-09-04 09:01:41 +02:00
Tomas Popela
e4e2f9f1af Update to 2.20.5 2018-08-14 12:13:09 +02:00
Tomas Popela
79075b28d2 Update to 2.20.4 2018-08-06 10:18:28 +02:00
Tomas Popela
7738aea604 Update to 2.20.3 2018-06-11 17:01:54 +02:00
Tomas Popela
e82fd6887a Rework the page size patch so it can be applied unconditionally
Before was applied in our internal CI even on arches where it does not
belong.
2018-05-17 15:54:32 +02:00
Tomas Popela
e9f40a65dd Update to 2.20.2 2018-05-09 07:49:58 +02:00
Tomas Popela
963f8f42c2 Update to 2.20.1 2018-04-10 10:53:03 +02:00
Kalev Lember
f2d56aba3c Bump webkitgtk4 obsoletes versions
Keep the obsoletes versioned higher than the F26 and F27 webkitgtk4
versions so that the upgrade path from webkitgtk4 to webkit2gtk3
continues working.
2018-03-12 12:35:27 +01:00
Tomas Popela
c59311e9d2 Update to 2.20.0 2018-03-12 12:15:17 +01:00
Tomas Popela
fe0c40b0e8 Update to 2.19.92 2018-03-06 10:37:00 +01:00
Tomas Popela
ebe8a658d2 Update to 2.19.91 2018-02-21 10:01:27 +01:00
5 changed files with 181 additions and 112 deletions

18
.gitignore vendored
View file

@ -1,3 +1,21 @@
/webkitgtk-2.19.5.tar.xz
/webkitgtk-2.19.6.tar.xz
/webkitgtk-2.19.90.tar.xz
/webkitgtk-2.19.91.tar.xz
/webkitgtk-2.19.92.tar.xz
/webkitgtk-2.20.0.tar.xz
/webkitgtk-2.20.1.tar.xz
/webkitgtk-2.20.2.tar.xz
/webkitgtk-2.20.3.tar.xz
/webkitgtk-2.20.4.tar.xz
/webkitgtk-2.20.5.tar.xz
/webkitgtk-2.22.0.tar.xz
/webkitgtk-2.22.1.tar.xz
/webkitgtk-2.22.2.tar.xz
/webkitgtk-2.22.3.tar.xz
/webkitgtk-2.22.4.tar.xz
/webkitgtk-2.22.5.tar.xz
/webkitgtk-2.22.6.tar.xz
/webkitgtk-2.22.7.tar.xz
/webkitgtk-2.24.1.tar.xz
/webkitgtk-2.24.2.tar.xz

View file

@ -1,30 +0,0 @@
diff -up webkitgtk-2.14.7/Source/JavaScriptCore/bytecode/CodeBlock.cpp.b132333 webkitgtk-2.14.7/Source/JavaScriptCore/bytecode/CodeBlock.cpp
--- webkitgtk-2.14.7/Source/JavaScriptCore/bytecode/CodeBlock.cpp.b132333 2017-02-07 09:05:07.000000000 +0100
+++ webkitgtk-2.14.7/Source/JavaScriptCore/bytecode/CodeBlock.cpp 2017-06-16 10:34:57.859748036 +0200
@@ -2186,7 +2186,12 @@ void CodeBlock::finishCreation(VM& vm, S
instructions[i + 5].u.watchpointSet = op.watchpointSet;
else if (op.structure)
instructions[i + 5].u.structure.set(vm, this, op.structure);
- instructions[i + 6].u.pointer = reinterpret_cast<void*>(op.operand);
+
+ if (op.type == ClosureVar || op.type == ClosureVarWithVarInjectionChecks || op.type == GlobalProperty || op.type == GlobalPropertyWithVarInjectionChecks || op.type == ModuleVar)
+ instructions[i + 6].u.operand = op.operand;
+ else
+ instructions[i + 6].u.pointer = reinterpret_cast<void*>(op.operand);
+
break;
}
@@ -2222,7 +2227,11 @@ void CodeBlock::finishCreation(VM& vm, S
op.watchpointSet->invalidate(vm, PutToScopeFireDetail(this, ident));
} else if (op.structure)
instructions[i + 5].u.structure.set(vm, this, op.structure);
- instructions[i + 6].u.pointer = reinterpret_cast<void*>(op.operand);
+
+ if (op.type == ClosureVar || op.type == ClosureVarWithVarInjectionChecks || op.type == GlobalProperty || op.type == GlobalPropertyWithVarInjectionChecks || op.type == ModuleVar)
+ instructions[i + 6].u.operand = op.operand;
+ else
+ instructions[i + 6].u.pointer = reinterpret_cast<void*>(op.operand);
break;
}

24
no-env-shebang.patch Normal file
View file

@ -0,0 +1,24 @@
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.19.90.tar.xz) = 5c1a1d20195a8e179c28a42d2f6809851f4a74f63c75c36c9b7b87b8e45aeb582f2201799ed416902cb67103cba66bc57bb391e4dd4a825bd195480444a6c96c
SHA512 (webkitgtk-2.24.2.tar.xz) = 8376167cfc4530886a2ac644ab84ff1021a63f6236d7be9eeb9e0ecade8bad5384b652dfe3720fdd31cddb39df6c935f859f1c0a59f42d7c71998992c4a9ffaa

View file

@ -6,9 +6,9 @@
cp -p %1 _license_files/$(echo '%1' | sed -e 's!/!.!g')
Name: webkit2gtk3
Version: 2.19.90
Release: 2%{?dist}
Summary: GTK+ Web content engine library
Version: 2.24.2
Release: 1%{?dist}
Summary: GTK Web content engine library
License: LGPLv2
URL: http://www.webkitgtk.org/
@ -19,60 +19,66 @@ Patch0: user-agent-branding.patch
# https://fedoraproject.org/wiki/Packaging:CryptoPolicies
# https://bugs.webkit.org/show_bug.cgi?id=158785
Patch1: fedora-crypto-policy.patch
# https://bugs.webkit.org/show_bug.cgi?id=132333
Patch2: cloop-big-endians.patch
# Don't use the shebang, but point straight to python 3
Patch2: no-env-shebang.patch
BuildRequires: at-spi2-core-devel
BuildRequires: bison
BuildRequires: brotli-devel
BuildRequires: cairo-devel
BuildRequires: bubblewrap
BuildRequires: cmake
BuildRequires: enchant-devel
BuildRequires: flex
BuildRequires: fontconfig-devel
BuildRequires: freetype-devel
BuildRequires: geoclue2-devel
BuildRequires: gcc-c++
BuildRequires: gettext
BuildRequires: glib2-devel
BuildRequires: gnutls-devel
BuildRequires: gobject-introspection-devel
BuildRequires: git
BuildRequires: gperf
BuildRequires: gstreamer1-devel
BuildRequires: gstreamer1-plugins-base-devel
BuildRequires: gstreamer1-plugins-bad-free-devel
BuildRequires: gtk2-devel
BuildRequires: gtk3-devel
BuildRequires: gtk-doc
BuildRequires: harfbuzz-devel
BuildRequires: hyphen-devel
BuildRequires: libicu-devel
BuildRequires: libjpeg-devel
BuildRequires: libnotify-devel
BuildRequires: libpng-devel
BuildRequires: libsecret-devel
BuildRequires: libsoup-devel
BuildRequires: libwebp-devel
BuildRequires: libxslt-devel
BuildRequires: libXt-devel
BuildRequires: libwayland-client-devel
BuildRequires: libwayland-egl-devel
BuildRequires: libwayland-server-devel
BuildRequires: mesa-libEGL-devel
BuildRequires: mesa-libGL-devel
BuildRequires: mesa-libGLES-devel
BuildRequires: pcre-devel
BuildRequires: libatomic
BuildRequires: ninja-build
BuildRequires: perl-File-Copy-Recursive
BuildRequires: perl-JSON-PP
BuildRequires: perl-Switch
BuildRequires: python3
BuildRequires: ruby
BuildRequires: rubygems
BuildRequires: sqlite-devel
BuildRequires: upower-devel
BuildRequires: woff2-devel
%ifarch ppc
BuildRequires: libatomic
%endif
BuildRequires: pkgconfig(atspi-2)
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(enchant-2)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(geoclue-2.0)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires: pkgconfig(gstreamer-plugins-bad-1.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(harfbuzz)
BuildRequires: pkgconfig(icu-uc)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libopenjp2)
BuildRequires: pkgconfig(libpcre)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libseccomp)
BuildRequires: pkgconfig(libsecret-1)
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(libwebp)
BuildRequires: pkgconfig(libwoff2dec)
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(upower-glib)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-egl)
BuildRequires: pkgconfig(wayland-server)
BuildRequires: pkgconfig(xt)
Requires: bubblewrap
Requires: geoclue2
# Obsolete libwebkit2gtk from the webkitgtk3 package
@ -80,7 +86,7 @@ Obsoletes: libwebkit2gtk < 2.5.0
Provides: libwebkit2gtk = %{version}-%{release}
# This package was renamed, so obsolete the old webkitgtk4 package
Obsoletes: webkitgtk4 < 2.19.5-2
Obsoletes: webkitgtk4 < %{version}-%{release}
Provides: webkitgtk4 = %{version}-%{release}
# We're supposed to specify versions here, but these crap Google libs don't do
@ -90,24 +96,24 @@ Provides: bundled(angle)
# Require the jsc subpackage
Requires: %{name}-jsc%{?_isa} = %{version}-%{release}
# Recommend the support for the GTK+ 2 based NPAPI plugins
# Recommend the support for the GTK 2 based NPAPI plugins
Recommends: %{name}-plugin-process-gtk2%{?_isa} = %{version}-%{release}
# Filter out provides for private libraries
%global __provides_exclude_from ^%{_libdir}/webkit2gtk-4\\.0/.*\\.so$
%description
WebKitGTK+ is the port of the portable web rendering engine WebKit to the
GTK+ platform.
WebKitGTK is the port of the portable web rendering engine WebKit to the
GTK platform.
This package contains WebKit2 based WebKitGTK+ for GTK+ 3.
This package contains WebKit2 based WebKitGTK for GTK 3.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}-jsc%{?_isa} = %{version}-%{release}
Requires: %{name}-jsc-devel%{?_isa} = %{version}-%{release}
Obsoletes: webkitgtk4-devel < 2.19.5-2
Obsoletes: webkitgtk4-devel < %{version}-%{release}
Provides: webkitgtk4-devel = %{version}-%{release}
%description devel
@ -118,7 +124,7 @@ files for developing applications that use %{name}.
Summary: Documentation files for %{name}
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
Obsoletes: webkitgtk4-doc < 2.19.5-2
Obsoletes: webkitgtk4-doc < %{version}-%{release}
Provides: webkitgtk4-doc = %{version}-%{release}
%description doc
@ -126,7 +132,7 @@ This package contains developer documentation for %{name}.
%package jsc
Summary: JavaScript engine from %{name}
Obsoletes: webkitgtk4-jsc < 2.19.5-2
Obsoletes: webkitgtk4-jsc < %{version}-%{release}
Provides: webkitgtk4-jsc = %{version}-%{release}
%description jsc
@ -135,7 +141,7 @@ This package contains JavaScript engine from %{name}.
%package jsc-devel
Summary: Development files for JavaScript engine from %{name}
Requires: %{name}-jsc%{?_isa} = %{version}-%{release}
Obsoletes: webkitgtk4-jsc-devel < 2.19.5-2
Obsoletes: webkitgtk4-jsc-devel < %{version}-%{release}
Provides: webkitgtk4-jsc-devel = %{version}-%{release}
%description jsc-devel
@ -143,17 +149,17 @@ The %{name}-jsc-devel package contains libraries, build data, and header
files for developing applications that use JavaScript engine from %{name}.
%package plugin-process-gtk2
Summary: GTK+ 2 based NPAPI plugins support for %{name}
Summary: GTK 2 based NPAPI plugins support for %{name}
Requires: %{name}-jsc%{?_isa} = %{version}-%{release}
Obsoletes: %{name} < 2.12.0-3
Obsoletes: webkitgtk4-plugin-process-gtk2 < 2.19.5-2
Obsoletes: webkitgtk4-plugin-process-gtk2 < %{version}-%{release}
Provides: webkitgtk4-plugin-process-gtk2 = %{version}-%{release}
%description plugin-process-gtk2
Support for the GTK+ 2 based NPAPI plugins (such as Adobe Flash) for %{name}.
Support for the GTK 2 based NPAPI plugins (such as Adobe Flash) for %{name}.
%prep
%autosetup -p1 -n webkitgtk-%{version}
%autosetup -p1 -n webkitgtk-%{version} -S git
# Remove bundled libraries
rm -rf Source/ThirdParty/gtest/
@ -169,51 +175,35 @@ rm -rf Source/ThirdParty/qunit/
# is only needed for x86_64.
%global _dwz_max_die_limit_x86_64 250000000
%ifarch s390 aarch64
# Use linker flags to reduce memory consumption - on other arches the ld.gold is
# used and also it doesn't have the --reduce-memory-overheads option
%global optflags %{optflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
%endif
# Decrease debuginfo even on ix86 because of:
# https://bugs.webkit.org/show_bug.cgi?id=140176
%ifarch s390 s390x %{arm} %{ix86} ppc %{power64} %{mips}
%ifarch s390x %{arm} %{ix86} %{power64} %{mips}
# Decrease debuginfo verbosity to reduce memory consumption even more
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
%endif
%ifarch ppc
# Use linker flag -relax to get WebKit build under ppc(32) with JIT disabled
%global optflags %{optflags} -Wl,-relax
%endif
%if 0%{?fedora}
%global optflags %{optflags} -DUSER_AGENT_GTK_DISTRIBUTOR_NAME=\'\\"Fedora\\"\'
%endif
# Disable ld.gold on s390 as it does not have it.
# Also for aarch64 as the support is in upstream, but not packaged in Fedora.
mkdir -p %{_target_platform}
pushd %{_target_platform}
%cmake \
-GNinja \
-DPORT=GTK \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_GTKDOC=ON \
-DENABLE_MINIBROWSER=ON \
%ifarch s390 aarch64
-DUSE_LD_GOLD=OFF \
%endif
%ifarch s390 s390x ppc %{power64}
-DENABLE_JIT=OFF \
-DUSE_SYSTEM_MALLOC=ON \
%endif
-DPYTHON_EXECUTABLE=%{_bindir}/python3 \
..
popd
make %{?_smp_mflags} -C %{_target_platform}
# Show the build time in the status
export NINJA_STATUS="[%f/%t][%e] "
%ninja_build -C %{_target_platform}
%install
%make_install -C %{_target_platform}
%ninja_install -C %{_target_platform}
%find_lang WebKit2GTK-4.0
@ -229,7 +219,6 @@ make %{?_smp_mflags} -C %{_target_platform}
%add_to_license_files Source/WebCore/LICENSE-LGPL-2
%add_to_license_files Source/WebCore/LICENSE-LGPL-2.1
%add_to_license_files Source/WebInspectorUI/UserInterface/External/CodeMirror/LICENSE
%add_to_license_files Source/WebInspectorUI/UserInterface/External/ESLint/LICENSE
%add_to_license_files Source/WebInspectorUI/UserInterface/External/Esprima/LICENSE
%add_to_license_files Source/WebInspectorUI/UserInterface/External/three.js/LICENSE
%add_to_license_files Source/WTF/icu/LICENSE
@ -247,8 +236,9 @@ make %{?_smp_mflags} -C %{_target_platform}
%{_libdir}/girepository-1.0/WebKit2WebExtension-4.0.typelib
%{_libdir}/webkit2gtk-4.0/
%{_libexecdir}/webkit2gtk-4.0/
%{_bindir}/WebKitWebDriver
%exclude %{_libexecdir}/webkit2gtk-4.0/MiniBrowser
%exclude %{_libexecdir}/webkit2gtk-4.0/WebKitPluginProcess2
%{_bindir}/WebKitWebDriver
%files devel
%{_libexecdir}/webkit2gtk-4.0/MiniBrowser
@ -282,10 +272,77 @@ make %{?_smp_mflags} -C %{_target_platform}
%files doc
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/jsc-glib-4.0/
%{_datadir}/gtk-doc/html/webkit2gtk-4.0/
%{_datadir}/gtk-doc/html/webkitdomgtk-4.0/
%changelog
* Fri May 17 2019 Eike Rathke <erack@redhat.com> - 2.24.2-1
- Update to 2.24.2
* Wed Apr 10 2019 Eike Rathke <erack@redhat.com> - 2.24.1-1
- Update to 2.24.1
- Merged from F30 for consistency:
- Switch to Ninja
- Switch to python3
- Switch to using pkgconfig build requires
- Switch to enchant-2
* Mon Mar 04 2019 Eike Rathke <erack@redhat.com> - 2.22.7-1
- Update to 2.22.7
* Mon Feb 11 2019 Eike Rathke <erack@redhat.com> - 2.22.6-1
- Update to 2.22.6
* Mon Dec 17 2018 Eike Rathke <erack@redhat.com> - 2.22.5-1
- Update to 2.22.5
* Thu Nov 22 2018 Tomáš Popela <tpopela@redhat.com> - 2.22.4-1
- Update to 2.22.4
* Mon Oct 29 2018 Tomas Popela <tpopela@redhat.com> - 2.22.3-1
- Update to 2.22.3
* Fri Oct 19 2018 Tomas Popela <tpopela@redhat.com> - 2.22.2-2
- Fix WebProcess crash while printing
- Resolves: rhbz#1639754
* Sun Sep 23 2018 Tomas Popela <tpopela@redhat.com> - 2.22.2-1
- Update to 2.22.2
* Thu Sep 20 2018 Tomas Popela <tpopela@redhat.com> - 2.22.1-1
- Update to 2.22.1
* Tue Sep 04 2018 Tomas Popela <tpopela@redhat.com> - 2.22.0-1
- Update to 2.22.0
* Tue Aug 14 2018 Tomas Popela <tpopela@redhat.com> - 2.20.5-1
- Update to 2.20.5
* Mon Aug 06 2018 Tomas Popela <tpopela@redhat.com> - 2.20.4-1
- Update to 2.20.4
* Mon Jun 11 2018 Tomas Popela <tpopela@redhat.com> - 2.20.3-1
- Update to 2.20.3
* Wed May 09 2018 Tomas Popela <tpopela@redhat.com> - 2.20.2-1
- Update to 2.20.2
* Tue Apr 10 2018 Tomas Popela <tpopela@redhat.com> - 2.20.1-1
- Update to 2.20.1
* Mon Mar 12 2018 Kalev Lember <klember@redhat.com> - 2.20.0-2
- Bump webkitgtk4 obsoletes versions
* Mon Mar 12 2018 Tomas Popela <tpopela@redhat.com> - 2.20.0-1
- Update to 2.20.0
* Tue Mar 06 2018 Tomas Popela <tpopela@redhat.com> - 2.19.92-1
- Update to 2.19.92
* Wed Feb 21 2018 Tomas Popela <tpopela@redhat.com> - 2.19.91-1
- Update to 2.19.91
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.19.90-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild