Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] webkit2gtk: revert to 2.24.x and update to 2.24.4
@ 2019-09-06 20:37 voidlinux-github
  2019-09-08 10:07 ` voidlinux-github
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: voidlinux-github @ 2019-09-06 20:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 794 bytes --]

There is a new pull request by q66 against master on the void-packages repository

https://github.com/void-ppc/void-packages webkitgtk-revert
https://github.com/void-linux/void-packages/pull/14270

webkit2gtk: revert to 2.24.x and update to 2.24.4
Since the 2.25.x branch still appears to be problematic on some systems, revert to the 2.24.x branch for now. This would have been a necessary update either way as it fixes multiple CVEs.

But, keep most of the template changes made (debug for 32-bit, gold always off, fixed up musl jsc patch etc).

The 2.26 stable release appears to be coming fairly soon, so we will be unreverting this as soon as it does.

Please test at least on x86_64 + musl.

A patch file from https://github.com/void-linux/void-packages/pull/14270.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-webkitgtk-revert-14270.patch --]
[-- Type: text/x-diff, Size: 6782 bytes --]

From 26797591ebfcc07a3860d77dfc7d92002a7275d9 Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Fri, 6 Sep 2019 22:15:04 +0200
Subject: [PATCH] webkit2gtk: revert to 2.24.x and update to 2.24.4

Since the 2.25.x branch still appears to be problematic on some
systems, revert to the 2.24.x branch for now. This would have
been a necessary update either way as it fixes multiple CVEs.

The 2.26 stable release appears to be coming fairly soon, so
we will be unreverting this as soon as it does.

[ci skip]
---
 .../patches/fix-fast-memory-disabled.patch    | 14 ++++++++++
 .../patches/fix-musl-javascriptcore.patch     | 28 +++++++++----------
 srcpkgs/webkit2gtk/patches/fix_armv6l.patch   | 23 +++++++++++++++
 srcpkgs/webkit2gtk/template                   | 19 +++++--------
 4 files changed, 58 insertions(+), 26 deletions(-)
 create mode 100644 srcpkgs/webkit2gtk/patches/fix-fast-memory-disabled.patch
 create mode 100644 srcpkgs/webkit2gtk/patches/fix_armv6l.patch

diff --git a/srcpkgs/webkit2gtk/patches/fix-fast-memory-disabled.patch b/srcpkgs/webkit2gtk/patches/fix-fast-memory-disabled.patch
new file mode 100644
index 00000000000..4b5e507274a
--- /dev/null
+++ b/srcpkgs/webkit2gtk/patches/fix-fast-memory-disabled.patch
@@ -0,0 +1,14 @@
+--- Source/JavaScriptCore/wasm/WasmFaultSignalHandler.cpp.orig	2017-09-14 10:03:40.908890971 +0200
++++ Source/JavaScriptCore/wasm/WasmFaultSignalHandler.cpp	2017-09-14 10:04:17.084859537 +0200
+@@ -112,7 +112,11 @@ void unregisterCode(void* start, void* e
+ 
+ bool fastMemoryEnabled()
+ {
++#if ENABLE(WEBASSEMBLY_FAST_MEMORY)
+     return fastHandlerInstalled;
++#else
++    return false;
++#endif // ENABLE(WEBASSEMBLY_FAST_MEMORY)
+ }
+ 
+ void enableFastMemory()
diff --git a/srcpkgs/webkit2gtk/patches/fix-musl-javascriptcore.patch b/srcpkgs/webkit2gtk/patches/fix-musl-javascriptcore.patch
index 129ea037849..94294e65b95 100644
--- a/srcpkgs/webkit2gtk/patches/fix-musl-javascriptcore.patch
+++ b/srcpkgs/webkit2gtk/patches/fix-musl-javascriptcore.patch
@@ -85,23 +85,23 @@ Updated for latest webkit2gtk.
      v(unsigned, jitMemoryReservationSize, 0, Normal, "Set this number to change the executable allocation size in ExecutableAllocatorFixedVMPool. (In bytes.)") \
 --- Source/ThirdParty/ANGLE/src/compiler/preprocessor/ExpressionParser.cpp
 +++ Source/ThirdParty/ANGLE/src/compiler/preprocessor/ExpressionParser.cpp
-@@ -728,7 +728,7 @@ int yydebug;
+@@ -836,7 +836,7 @@
  #if YYERROR_VERBOSE
  
- #    ifndef yystrlen
--#        if defined __GLIBC__ && defined _STRING_H
-+#        if defined __linux__ && defined _STRING_H
- #            define yystrlen strlen
- #        else
+ # ifndef yystrlen
+-#  if defined __GLIBC__ && defined _STRING_H
++#  if defined __linux__ && defined _STRING_H
+ #   define yystrlen strlen
+ #  else
  /* Return the length of YYSTR.  */
-@@ -743,7 +743,7 @@ static YYSIZE_T yystrlen(const char *yystr)
- #    endif
- 
- #    ifndef yystpcpy
--#        if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
-+#        if defined __linux__ && defined _STRING_H && defined _GNU_SOURCE
- #            define yystpcpy stpcpy
- #        else
+@@ -852,7 +852,7 @@
+ # endif
+ 
+ # ifndef yystpcpy
+-#  if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
++#  if defined __linux__ && defined _STRING_H && defined _GNU_SOURCE
+ #   define yystpcpy stpcpy
+ #  else
  /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
 --- Source/WTF/wtf/Platform.h
 +++ Source/WTF/wtf/Platform.h
diff --git a/srcpkgs/webkit2gtk/patches/fix_armv6l.patch b/srcpkgs/webkit2gtk/patches/fix_armv6l.patch
new file mode 100644
index 00000000000..284929f035d
--- /dev/null
+++ b/srcpkgs/webkit2gtk/patches/fix_armv6l.patch
@@ -0,0 +1,23 @@
+Fix code emitted for armv6l to not use movw/movt but ldr.
+See https://bugs.webkit.org/show_bug.cgi?id=131612
+and https://bugs.webkit.org/show_bug.cgi?id=141288
+
+--- Source/JavaScriptCore/offlineasm/arm.rb	2015-07-22 14:37:57.000000000 +0200
++++ Source/JavaScriptCore/offlineasm/arm.rb	2015-08-08 00:31:21.011824644 +0200
+@@ -473,8 +473,16 @@
+                 $asm.puts "mov #{armFlippedOperands(operands)}"
+             end
+         when "mvlbl"
++            if isARMv7 or isARMv7Traditional
+                 $asm.puts "movw #{operands[1].armOperand}, \#:lower16:#{operands[0].value}"
+                 $asm.puts "movt #{operands[1].armOperand}, \#:upper16:#{operands[0].value}"
++            else
++                $mvlbl_counter ||= 0
++                $mvlbl_counter += 1
++                const_label = "_mvlbl_const_label#{$mvlbl_counter}"
++                $asm.puts ".equ #{const_label}, (#{operands[0].value})"
++                $asm.puts "ldr  #{operands[1].armOperand}, =#{const_label}"
++            end
+         when "nop"
+             $asm.puts "nop"
+         when "bieq", "bpeq", "bbeq"
diff --git a/srcpkgs/webkit2gtk/template b/srcpkgs/webkit2gtk/template
index fe2c2748860..26211fca208 100644
--- a/srcpkgs/webkit2gtk/template
+++ b/srcpkgs/webkit2gtk/template
@@ -1,6 +1,7 @@
 # Template file for 'webkit2gtk'
 pkgname=webkit2gtk
-version=2.25.4
+reverts="2.25.4_1"
+version=2.24.4
 revision=1
 wrksrc="webkitgtk-${version}"
 build_style=cmake
@@ -15,7 +16,7 @@ configure_args="-DPORT=GTK -DUSE_LD_GOLD=OFF
  -DCMAKE_LINKER=${XBPS_CROSS_TRIPLET}-gcc
  -DRUBY_VERSION=2.6
  -DRUBY_CONFIG_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include/ruby-2.6.0
- -DENABLE_GTKDOC=OFF -DUSE_GSTREAMER_GL=OFF -DUSE_WPE_RENDERER=OFF
+ -DENABLE_GTKDOC=OFF -DUSE_GSTREAMER_GL=OFF
  -DENABLE_JIT=$(vopt_if jit ON OFF)
  -DENABLE_C_LOOP=$(vopt_if jit OFF ON)
  -DENABLE_INTROSPECTION=$(vopt_if gir ON OFF)
@@ -37,21 +38,15 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
 license="LGPL-2.1-or-later, BSD-2-Clause"
 homepage="https://webkitgtk.org/"
 distfiles="${homepage}/releases/webkitgtk-${version}.tar.xz"
-checksum=9361058c059402117995c779906f4a25232185ce7735663428fda9cf3c79f101
+checksum=8668b129c026624ec226a4cccf4995f9d26f3e88fc28ab75b0e965f3c32b7dd8
 
-build_options="gir wayland x11 bubblewrap jit sampling_profiler"
-build_options_default="gir wayland x11 bubblewrap"
+build_options="gir wayland x11 jit sampling_profiler"
+build_options_default="gir wayland x11"
 
-desc_option_bubblewrap="Enable bubblewrap sandbox"
 desc_option_jit="JavaScript JIT (Only some architectures)"
 desc_option_sampling_profiler="Sampling profiler support (JIT + glibc only)"
 
-# detection + runtime
-if [ "$build_option_bubblewrap" ]; then
-	hostmakedepends+=" bubblewrap xdg-dbus-proxy"
-	makedepends+=" libseccomp-devel"
-	depends+=" bubblewrap xdg-dbus-proxy"
-fi
+CXXFLAGS="-Wno-expansion-to-defined -Wno-redundant-move -Wno-deprecated-copy"
 
 # only a few platform support JIT
 case "$XBPS_TARGET_MACHINE" in

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: webkit2gtk: revert to 2.24.x and update to 2.24.4
  2019-09-06 20:37 [PR PATCH] webkit2gtk: revert to 2.24.x and update to 2.24.4 voidlinux-github
@ 2019-09-08 10:07 ` voidlinux-github
  2019-09-08 13:56 ` voidlinux-github
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: voidlinux-github @ 2019-09-08 10:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 198 bytes --]

New comment by Hoshpak on void-packages repository

https://github.com/void-linux/void-packages/pull/14270#issuecomment-529188368

Comment:
x86_64 builds and runs fine, x86_64-musl build is also OK

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: webkit2gtk: revert to 2.24.x and update to 2.24.4
  2019-09-06 20:37 [PR PATCH] webkit2gtk: revert to 2.24.x and update to 2.24.4 voidlinux-github
  2019-09-08 10:07 ` voidlinux-github
@ 2019-09-08 13:56 ` voidlinux-github
  2019-09-08 13:58 ` [PR PATCH] [Merged]: " voidlinux-github
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: voidlinux-github @ 2019-09-08 13:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 155 bytes --]

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/14270#issuecomment-529205203

Comment:
Should be OK then.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PR PATCH] [Merged]: webkit2gtk: revert to 2.24.x and update to 2.24.4
  2019-09-06 20:37 [PR PATCH] webkit2gtk: revert to 2.24.x and update to 2.24.4 voidlinux-github
  2019-09-08 10:07 ` voidlinux-github
  2019-09-08 13:56 ` voidlinux-github
@ 2019-09-08 13:58 ` voidlinux-github
  2019-09-10 12:54 ` voidlinux-github
  2019-09-10 13:02 ` voidlinux-github
  4 siblings, 0 replies; 6+ messages in thread
From: voidlinux-github @ 2019-09-08 13:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 796 bytes --]

There's a merged pull request on the void-packages repository

webkit2gtk: revert to 2.24.x and update to 2.24.4
https://github.com/void-linux/void-packages/pull/14270

Description:
Since the 2.25.x branch still appears to be problematic on some systems, revert to the 2.24.x branch for now. 2.24.3->2.24.4 would have been a necessary update either way as it fixes multiple CVEs.

But, keep most of the template changes made (debug for 32-bit, gold always off, fixed up musl jsc patch etc). Revert the bubblewrap stuff since 2.24.x is not sandboxed yet.

The 2.26 stable release appears to be coming fairly soon, so we will be unreverting this as soon as it does.

Please test at least on x86_64 + musl.

(revision is umbumped as the original update was from `2.24.3` and this is 2.24.4)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: webkit2gtk: revert to 2.24.x and update to 2.24.4
  2019-09-06 20:37 [PR PATCH] webkit2gtk: revert to 2.24.x and update to 2.24.4 voidlinux-github
                   ` (2 preceding siblings ...)
  2019-09-08 13:58 ` [PR PATCH] [Merged]: " voidlinux-github
@ 2019-09-10 12:54 ` voidlinux-github
  2019-09-10 13:02 ` voidlinux-github
  4 siblings, 0 replies; 6+ messages in thread
From: voidlinux-github @ 2019-09-10 12:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 239 bytes --]

New comment by concatime on void-packages repository

https://github.com/void-linux/void-packages/pull/14270#issuecomment-529920592

Comment:
Thank you, it fixed the assertion failed (`ipc->status == IPC_ENDPOINT_DISCONNECTED`) on luakit.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: webkit2gtk: revert to 2.24.x and update to 2.24.4
  2019-09-06 20:37 [PR PATCH] webkit2gtk: revert to 2.24.x and update to 2.24.4 voidlinux-github
                   ` (3 preceding siblings ...)
  2019-09-10 12:54 ` voidlinux-github
@ 2019-09-10 13:02 ` voidlinux-github
  4 siblings, 0 replies; 6+ messages in thread
From: voidlinux-github @ 2019-09-10 13:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 266 bytes --]

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/14270#issuecomment-529923850

Comment:
We're currently updating to 2.26 https://github.com/void-linux/void-packages/pull/14366

you should test if that breaks things.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-09-10 13:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-06 20:37 [PR PATCH] webkit2gtk: revert to 2.24.x and update to 2.24.4 voidlinux-github
2019-09-08 10:07 ` voidlinux-github
2019-09-08 13:56 ` voidlinux-github
2019-09-08 13:58 ` [PR PATCH] [Merged]: " voidlinux-github
2019-09-10 12:54 ` voidlinux-github
2019-09-10 13:02 ` voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).