summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2023-06-07 13:51:12 +0300
committerJoonas Niilola <juippis@gentoo.org>2023-06-07 13:51:19 +0300
commit6a9cf149fe9ecf69ba871c27c9bbeb975ec14f7e (patch)
treeed67daabc56ba00aa1af8f4c8205463fa5f61a7b /www-client
parentwww-client/firefox: add 102.12.0 (diff)
downloadgentoo-6a9cf149fe9ecf69ba871c27c9bbeb975ec14f7e.tar.gz
gentoo-6a9cf149fe9ecf69ba871c27c9bbeb975ec14f7e.tar.bz2
gentoo-6a9cf149fe9ecf69ba871c27c9bbeb975ec14f7e.zip
www-client/firefox: move mold check to src_compile in 114
- also properly de-keyword ppc64. Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r--www-client/firefox/firefox-114.0.ebuild20
1 files changed, 11 insertions, 9 deletions
diff --git a/www-client/firefox/firefox-114.0.ebuild b/www-client/firefox/firefox-114.0.ebuild
index 858467a991ef..bdf003b7fd5c 100644
--- a/www-client/firefox/firefox-114.0.ebuild
+++ b/www-client/firefox/firefox-114.0.ebuild
@@ -57,7 +57,7 @@ SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}
DESCRIPTION="Firefox Web Browser"
HOMEPAGE="https://www.mozilla.com/firefox"
-KEYWORDS="~amd64 ~arm64 -ppc64 ~riscv ~x86"
+KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
SLOT="rapid"
LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
@@ -925,14 +925,6 @@ src_configure() {
# Upstream only supports lld or mold when using clang.
if tc-ld-is-mold ; then
mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold
-
- # increase ulimit with mold+lto, bugs #892641, #907485
- if ! ulimit -n 16384 1>/dev/null 2>&1 ; then
- ewarn "Unable to modify ulimits - building with mold+lto might fail due to low ulimit -n resources."
- ewarn "Please see bugs #892641 & #907485."
- else
- ulimit -n 16384
- fi
else
mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
fi
@@ -1162,6 +1154,16 @@ src_configure() {
src_compile() {
local virtx_cmd=
+ if tc-ld-is-mold && use lto; then
+ # increase ulimit with mold+lto, bugs #892641, #907485
+ if ! ulimit -n 16384 1>/dev/null 2>&1 ; then
+ ewarn "Unable to modify ulimits - building with mold+lto might fail due to low ulimit -n resources."
+ ewarn "Please see bugs #892641 & #907485."
+ else
+ ulimit -n 16384
+ fi
+ fi
+
if use pgo; then
# Reset and cleanup environment variables used by GNOME/XDG
gnome2_environment_reset