commit: d769a4a82d7998b2ffd9d9e4266e59fe29214882
parent 1ef38edeeac3f24680f5d5f7778514dc2b7dfc84
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 25 Feb 2022 22:13:40 +0100
net-libs/webkit-gtk: Enable undefined and leak sanitizers
Diffstat:
4 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/net-libs/webkit-gtk/metadata.xml b/net-libs/webkit-gtk/metadata.xml
@@ -13,5 +13,6 @@
<flag name="jumbo-build">Combine source files to speed up build process</flag>
<flag name="media-source">Enable support for Media Sources Extension (requires gstreamer 1.16+)</flag>
<flag name="seccomp">Enable sandboxing functionality through <pkg>sys-apps/bubblewrap</pkg></flag>
+ <flag name="sanitizers">Enable undefined and leak sanitizers (low performance overhead)</flag>
</use>
</pkgmetadata>
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.34.6-r100.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.34.6-r100.ebuild
@@ -17,7 +17,7 @@ LICENSE="LGPL-2+ BSD"
SLOT="4.1/0" # soname version of libwebkit2gtk-4.1
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
-IUSE="aqua debug +egl examples gamepad +geolocation gles2-only gnome-keyring +gstreamer gtk-doc +introspection +jpeg2k +jumbo-build libnotify media-source +opengl seccomp spell systemd wayland +X"
+IUSE="aqua debug +egl examples gamepad +geolocation gles2-only gnome-keyring +gstreamer gtk-doc +introspection +jpeg2k +jumbo-build libnotify media-source +opengl +sanitizers seccomp spell systemd wayland +X"
# gstreamer with opengl/gles2 needs egl
REQUIRED_USE="
@@ -282,6 +282,7 @@ src_configure() {
-DUSE_SOUP2=OFF
-DBWRAP_EXECUTABLE:FILEPATH="${EPREFIX}"/usr/bin/bwrap # If bubblewrap[suid] then portage makes it go-r and cmake find_program fails with that
-DDBUS_PROXY_EXECUTABLE:FILEPATH="${EPREFIX}"/usr/bin/xdg-dbus-proxy
+ -DENABLE_SANITIZERS="$(usex sanitizers "undefined,leak" "")"
-DPORT=GTK
${ruby_interpreter}
)
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.34.6-r200.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.34.6-r200.ebuild
@@ -17,7 +17,7 @@ LICENSE="LGPL-2+ BSD"
SLOT="5.0/0" # soname version of libwebkit2gtk-5.0
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
-IUSE="aqua debug +egl examples gamepad +geolocation gles2-only gnome-keyring +gstreamer gtk-doc +introspection +jpeg2k +jumbo-build libnotify media-source +opengl seccomp spell systemd wayland +X"
+IUSE="aqua debug +egl examples gamepad +geolocation gles2-only gnome-keyring +gstreamer gtk-doc +introspection +jpeg2k +jumbo-build libnotify media-source +opengl +sanitizers seccomp spell systemd wayland +X"
# gstreamer with opengl/gles2 needs egl
REQUIRED_USE="
@@ -282,6 +282,7 @@ src_configure() {
-DUSE_SOUP2=OFF
-DBWRAP_EXECUTABLE:FILEPATH="${EPREFIX}"/usr/bin/bwrap # If bubblewrap[suid] then portage makes it go-r and cmake find_program fails with that
-DDBUS_PROXY_EXECUTABLE:FILEPATH="${EPREFIX}"/usr/bin/xdg-dbus-proxy
+ -DENABLE_SANITIZERS="$(usex sanitizers "undefined,leak" "")"
-DPORT=GTK
${ruby_interpreter}
)
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.34.6.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.34.6.ebuild
@@ -17,7 +17,7 @@ LICENSE="LGPL-2+ BSD"
SLOT="4/37" # soname version of libwebkit2gtk-4.0
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
-IUSE="aqua debug +egl examples gamepad +geolocation gles2-only gnome-keyring +gstreamer gtk-doc +introspection +jpeg2k +jumbo-build libnotify media-source +opengl seccomp spell systemd wayland +X"
+IUSE="aqua debug +egl examples gamepad +geolocation gles2-only gnome-keyring +gstreamer gtk-doc +introspection +jpeg2k +jumbo-build libnotify media-source +opengl +sanitizers seccomp spell systemd wayland +X"
# gstreamer with opengl/gles2 needs egl
REQUIRED_USE="
@@ -282,6 +282,7 @@ src_configure() {
-DUSE_SOUP2=ON
-DBWRAP_EXECUTABLE:FILEPATH="${EPREFIX}"/usr/bin/bwrap # If bubblewrap[suid] then portage makes it go-r and cmake find_program fails with that
-DDBUS_PROXY_EXECUTABLE:FILEPATH="${EPREFIX}"/usr/bin/xdg-dbus-proxy
+ -DENABLE_SANITIZERS="$(usex sanitizers "undefined,leak" "")"
-DPORT=GTK
${ruby_interpreter}
)