diff --git a/no-forced-sse.patch b/no-forced-sse.patch new file mode 100644 index 0000000..d213e69 --- /dev/null +++ b/no-forced-sse.patch @@ -0,0 +1,37 @@ +From: Jan Engelhardt +Date: 2020-01-30 14:15:51.612533365 +0100 + +cmake tests whether the compiler can emit SSE, which is the wrongest of all +options. (At the very least, a build system would check the buildhost's actual +CPU feature set; while not great, there are convincable usecases for doing +that.) + +Disable unconditional emission of -msse2 into the command line. +On x86_64 where SSE2 is always available, gcc already implies -msse2 +anyway, so there should not be anything lost by removing this block +of makefilery. + +--- + Source/cmake/WebKitCompilerFlags.cmake | 9 --------- + 1 file changed, 9 deletions(-) + +Index: webkitgtk-2.26.3/Source/cmake/WebKitCompilerFlags.cmake +=================================================================== +--- webkitgtk-2.26.3.orig/Source/cmake/WebKitCompilerFlags.cmake ++++ webkitgtk-2.26.3/Source/cmake/WebKitCompilerFlags.cmake +@@ -137,15 +137,6 @@ if (COMPILER_IS_GCC_OR_CLANG) + if (CMAKE_COMPILER_IS_GNUCXX) + WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-Wno-expansion-to-defined) + endif () +- +- # Force SSE2 fp on x86 builds. +- if (WTF_CPU_X86 AND NOT CMAKE_CROSSCOMPILING) +- WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-msse2 -mfpmath=sse) +- include(DetectSSE2) +- if (NOT SSE2_SUPPORT_FOUND) +- message(FATAL_ERROR "SSE2 support is required to compile WebKit") +- endif () +- endif () + endif () + + if (COMPILER_IS_GCC_OR_CLANG AND NOT MSVC) diff --git a/webkit2gtk3.changes b/webkit2gtk3.changes index 4d5eebe..b3739c1 100644 --- a/webkit2gtk3.changes +++ b/webkit2gtk3.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Aug 6 08:22:08 UTC 2020 - Jan Engelhardt + +- Add no-forced-sse.patch, cure execution of illegal instruction + in i586 firefox. + ------------------------------------------------------------------- Wed Jul 29 15:18:24 UTC 2020 - Michael Gorse diff --git a/webkit2gtk3.spec b/webkit2gtk3.spec index d350be6..a27564d 100644 --- a/webkit2gtk3.spec +++ b/webkit2gtk3.spec @@ -45,6 +45,8 @@ Source99: webkit2gtk3.keyring Patch0: webkit2gtk3-fdo-soname.patch # PATCH-FIX-OPENSUSE webkit-process.patch boo#1159329 mgorse@suse.com -- use single web process for evolution and geary. Patch1: webkit-process.patch +# PATCH-FIX-OPENSUSE no-forced-sse.patch jengelh@iani.de -- cure execution of illegal instruction in i586 firefox. +Patch2: no-forced-sse.patch BuildRequires: Mesa-libEGL-devel BuildRequires: Mesa-libGL-devel @@ -274,6 +276,7 @@ A small test browswer from webkit, useful for testing features. %if 0%{?suse_version} <= 1500 && 0%{?sle_version} < 150200 %patch1 -p1 %endif +%patch2 -p1 %build %define _lto_cflags %{nil}