repo/gentoo:master commit in: www-client/firefox/

"Joonas Niilola" <[email protected]>
Newsgroups gmane.linux.gentoo.cvs
Message-ID <1787055030.e34eafc667214f2959f8fb6cdee1282f89f4239a.juippis@gentoo>
commit:     e34eafc667214f2959f8fb6cdee1282f89f4239a
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 18 12:09:18 2026 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Aug 18 12:10:30 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e34eafc6

www-client/firefox: fix the valgrind IUSE in 154.0

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 www-client/firefox/firefox-154.0.ebuild | 33 ++++++++-------------------------
 1 file changed, 8 insertions(+), 25 deletions(-)

diff --git a/www-client/firefox/firefox-154.0.ebuild b/www-client/firefox/firefox-154.0.ebuild
index 4e44ec3063cf..1dc626bc5d36 100644
--- a/www-client/firefox/firefox-154.0.ebuild
+++ b/www-client/firefox/firefox-154.0.ebuild
@@ -79,12 +79,7 @@ IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +
 IUSE+=" system-pipewire system-png +system-webp test wayland wifi +X"
 
 # Firefox-only IUSE
-IUSE+=" +gmp-autoupdate gnome-shell jpegxl +jumbo-build openh264 +telemetry wasm-sandbox"
-
-# MOZ_ESR-only IUSE
-if [[ -z ${MOZ_ESR} ]] ; then
-	IUSE+=" valgrind"
-fi
+IUSE+=" +gmp-autoupdate gnome-shell jpegxl +jumbo-build openh264 +telemetry valgrind wasm-sandbox"
 
 REQUIRED_USE="|| ( X wayland )
 	debug? ( !system-av1 )
@@ -172,6 +167,7 @@ COMMON_DEPEND="${FF_ONLY_DEPEND}
 	system-pipewire? ( >=media-video/pipewire-1.4.7-r2:= )
 	system-png? ( >=media-libs/libpng-1.6.45:0=[apng] )
 	system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+	valgrind? ( dev-debug/valgrind )
 	wayland? (
 		>=media-libs/libepoxy-1.5.10-r1
 		x11-libs/gtk+:3[wayland]
@@ -217,8 +213,7 @@ if [[ -n ${MOZ_ESR} ]] ; then
 				~www-client/firefox-l10n-${PV}:0/esr"
 else
 	RDEPEND+=" !www-client/firefox:esr
-				~www-client/firefox-l10n-${PV}:0/rapid
-				valgrind? ( dev-debug/valgrind )"
+				~www-client/firefox-l10n-${PV}:0/rapid"
 fi
 
 # Allow MOZ_GMP_PLUGIN_LIST to be set in an eclass or
@@ -765,16 +760,13 @@ src_configure() {
 		mozconfig_add_options_ac 'Disable JIT for RISC-V' --disable-jit
 	fi
 
-	# Rapid/ESR configure options.
-	if [[ -z ${MOZ_ESR} ]] ; then
-		if use valgrind ; then
-			mozconfig_add_options_ac 'valgrind requirement' --disable-sandbox
-			mozconfig_add_options_ac 'valgrind requirement' --disable-jemalloc
+	mozconfig_use_enable valgrind
 
-			sed -i -e 's/--enable-optimize=-O[0-9s]/--enable-optimize="-g -O2"/' .mozconfig || die
-		fi
+	if use valgrind ; then
+		mozconfig_add_options_ac 'valgrind requirement' --disable-sandbox
+		mozconfig_add_options_ac 'valgrind requirement' --disable-jemalloc
 
-		mozconfig_use_enable valgrind
+		sed -i -e 's/--enable-optimize=-O[0-9s]/--enable-optimize="-g -O2"/' .mozconfig || die
 	fi
 
 	if [[ -s "${S}/api-google.key" ]] ; then
@@ -825,7 +817,6 @@ src_configure() {
 
 	mozconfig_use_enable dbus
 	mozconfig_use_enable libproxy
-	mozconfig_use_enable valgrind
 
 	use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
 
@@ -988,10 +979,6 @@ src_configure() {
 		mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
 	fi
 
-	if use valgrind; then
-		mozconfig_add_options_ac 'valgrind requirement' --disable-jemalloc
-	fi
-
 	# System-av1 fix
 	use system-av1 && append-ldflags "-Wl,--undefined-version"
 
@@ -1054,10 +1041,6 @@ src_configure() {
 	echo "=========================================================="
 	echo
 
-	if use valgrind; then
-		sed -i -e 's/--enable-optimize=-O[0-9s]/--enable-optimize="-g -O2"/' .mozconfig || die
-	fi
-
 	./mach configure || die
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.