From 1670e57f63e0897d6d6027826f247bb3e90ddd2a Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Feb 10 2023 16:38:26 +0000 Subject: Use webkit2gtk-4.1 --- diff --git a/emacs.spec b/emacs.spec index 321be78..0a04e91 100644 --- a/emacs.spec +++ b/emacs.spec @@ -5,7 +5,7 @@ Summary: GNU Emacs text editor Name: emacs Epoch: 1 Version: 28.2 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv3+ and CC0 URL: http://www.gnu.org/software/emacs/ Source0: https://ftp.gnu.org/gnu/emacs/emacs-%{version}.tar.xz @@ -33,6 +33,7 @@ Patch7: https://git.savannah.gnu.org/cgit/emacs.git/patch/?id=d48bb4874bc # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60208 # backport of https://git.savannah.gnu.org/cgit/emacs.git/patch/?id=e59216d3be86918b995bd63273c851ebc6176a83 Patch8: native-compile-with_-Q.patch +Patch9: webkit2gtk-4.1.patch BuildRequires: gcc BuildRequires: atk-devel @@ -78,7 +79,7 @@ BuildRequires: systemd-devel BuildRequires: libgccjit-devel BuildRequires: gtk3-devel -BuildRequires: webkit2gtk3-devel +BuildRequires: webkit2gtk4.1-devel BuildRequires: gnupg2 @@ -220,6 +221,7 @@ cp -p %{SOURCE3} lib/ %patch6 -p1 %patch7 -p1 -b .ctags-local-execution-cve %patch8 -p1 -b .native-compile-Q +%patch9 -p1 -b .webkit2gtk-4.1 autoconf grep -v "tetris.elc" lisp/Makefile.in > lisp/Makefile.in.new \ @@ -544,6 +546,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop %{_includedir}/emacs-module.h %changelog +* Fri Feb 10 2023 Michael Catanzaro - 1:28.2-5 +- Use webkit2gtk-4.1 + * Fri Jan 27 2023 Dan Čermák - 1:28.2-4 - Ensure that emacs-nox loads the correct eln files diff --git a/webkit2gtk-4.1.patch b/webkit2gtk-4.1.patch new file mode 100644 index 0000000..3212a85 --- /dev/null +++ b/webkit2gtk-4.1.patch @@ -0,0 +1,14 @@ +diff --git a/configure.ac b/configure.ac +index 0b3a1bc..79c88a1 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -2750,8 +2750,7 @@ HAVE_XWIDGETS=no + XWIDGETS_OBJ= + if test "$with_xwidgets" != "no"; then + if test "$USE_GTK_TOOLKIT" = "GTK3" && test "$window_system" != "none"; then +- WEBKIT_REQUIRED=2.12 +- WEBKIT_MODULES="webkit2gtk-4.0 >= $WEBKIT_REQUIRED" ++ WEBKIT_MODULES="webkit2gtk-4.1" + EMACS_CHECK_MODULES([WEBKIT], [$WEBKIT_MODULES]) + HAVE_XWIDGETS=$HAVE_WEBKIT + XWIDGETS_OBJ="xwidget.o"