From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AC08A1582EF for ; Fri, 21 Feb 2025 09:37:35 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 87C1034307A for ; Fri, 21 Feb 2025 09:37:35 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 8B8721102A2; Fri, 21 Feb 2025 09:37:34 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 81A6F1102A2 for ; Fri, 21 Feb 2025 09:37:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2F54334307A for ; Fri, 21 Feb 2025 09:37:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8D48A1596 for ; Fri, 21 Feb 2025 09:37:32 +0000 (UTC) From: "WANG Xuerui" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "WANG Xuerui" Message-ID: <1740129478.869ed0f9863ce676ae14d8cdd7504c54f9f5cd94.xen0n@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/firefox/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/firefox/firefox-128.7.0.ebuild www-client/firefox/firefox-135.0.1.ebuild www-client/firefox/firefox-135.0.ebuild X-VCS-Directories: www-client/firefox/ X-VCS-Committer: xen0n X-VCS-Committer-Name: WANG Xuerui X-VCS-Revision: 869ed0f9863ce676ae14d8cdd7504c54f9f5cd94 X-VCS-Branch: master Date: Fri, 21 Feb 2025 09:37:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 613e7e7e-8389-4e55-9a0b-c9be2a1c9adc X-Archives-Hash: 89081caa6dacc80db219c576be49407e commit: 869ed0f9863ce676ae14d8cdd7504c54f9f5cd94 Author: WANG Xuerui gentoo org> AuthorDate: Fri Feb 21 02:13:19 2025 +0000 Commit: WANG Xuerui gentoo org> CommitDate: Fri Feb 21 09:17:58 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=869ed0f9 www-client/firefox: add build support for loong Some patches are still needed for a successful build with popular CFLAGS on loong, but src_prepare and src_configure need adaptation as well. Reviewed-by: Joonas Niilola gentoo.org> Signed-off-by: WANG Xuerui gentoo.org> www-client/firefox/firefox-128.7.0.ebuild | 10 +++++++--- www-client/firefox/firefox-135.0.1.ebuild | 10 +++++++--- www-client/firefox/firefox-135.0.ebuild | 10 +++++++--- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/www-client/firefox/firefox-128.7.0.ebuild b/www-client/firefox/firefox-128.7.0.ebuild index 593ba0759bb1..bffe2b9202a7 100644 --- a/www-client/firefox/firefox-128.7.0.ebuild +++ b/www-client/firefox/firefox-128.7.0.ebuild @@ -614,6 +614,10 @@ src_prepare() { export RUST_TARGET="i686-unknown-linux-musl" elif use arm64 ; then export RUST_TARGET="aarch64-unknown-linux-musl" + elif use loong; then + # Only the LP64D ABI of LoongArch64 is actively supported among + # the wider Linux ecosystem, so the assumption is safe. + export RUST_TARGET="loongarch64-unknown-linux-musl" elif use ppc64 ; then export RUST_TARGET="powerpc64le-unknown-linux-musl" elif use riscv ; then @@ -846,7 +850,7 @@ src_configure() { # amd64, arm, arm64 & x86. # Might want to flip the logic around if Firefox is to support more arches. # bug 833001, bug 903411#c8 - if use ppc64 || use riscv; then + if use loong || use ppc64 || use riscv; then mozconfig_add_options_ac '' --disable-sandbox else mozconfig_add_options_ac '' --enable-sandbox @@ -1043,8 +1047,8 @@ src_configure() { else mozconfig_add_options_ac 'relr elf-hack' --enable-elf-hack=relr fi - elif use ppc64 || use riscv ; then - # '--disable-elf-hack' is not recognized on ppc64/riscv, + elif use loong || use ppc64 || use riscv ; then + # '--disable-elf-hack' is not recognized on loong/ppc64/riscv, # see bgo #917049, #930046 :; else diff --git a/www-client/firefox/firefox-135.0.1.ebuild b/www-client/firefox/firefox-135.0.1.ebuild index 277ebf5efdd0..878488cd4e1c 100644 --- a/www-client/firefox/firefox-135.0.1.ebuild +++ b/www-client/firefox/firefox-135.0.1.ebuild @@ -616,6 +616,10 @@ src_prepare() { export RUST_TARGET="i686-unknown-linux-musl" elif use arm64 ; then export RUST_TARGET="aarch64-unknown-linux-musl" + elif use loong; then + # Only the LP64D ABI of LoongArch64 is actively supported among + # the wider Linux ecosystem, so the assumption is safe. + export RUST_TARGET="loongarch64-unknown-linux-musl" elif use ppc64 ; then export RUST_TARGET="powerpc64le-unknown-linux-musl" elif use riscv ; then @@ -831,7 +835,7 @@ src_configure() { # amd64, arm, arm64 & x86. # Might want to flip the logic around if Firefox is to support more arches. # bug 833001, bug 903411#c8 - if use ppc64 || use riscv; then + if use loong || use ppc64 || use riscv; then mozconfig_add_options_ac '' --disable-sandbox elif use valgrind; then mozconfig_add_options_ac 'valgrind requirement' --disable-sandbox @@ -1030,8 +1034,8 @@ src_configure() { else mozconfig_add_options_ac 'relr elf-hack' --enable-elf-hack=relr fi - elif use ppc64 || use riscv ; then - # '--disable-elf-hack' is not recognized on ppc64/riscv, + elif use loong || use ppc64 || use riscv ; then + # '--disable-elf-hack' is not recognized on loong/ppc64/riscv, # see bgo #917049, #930046 :; else diff --git a/www-client/firefox/firefox-135.0.ebuild b/www-client/firefox/firefox-135.0.ebuild index 1fa325505b35..aaf2355e3c90 100644 --- a/www-client/firefox/firefox-135.0.ebuild +++ b/www-client/firefox/firefox-135.0.ebuild @@ -616,6 +616,10 @@ src_prepare() { export RUST_TARGET="i686-unknown-linux-musl" elif use arm64 ; then export RUST_TARGET="aarch64-unknown-linux-musl" + elif use loong; then + # Only the LP64D ABI of LoongArch64 is actively supported among + # the wider Linux ecosystem, so the assumption is safe. + export RUST_TARGET="loongarch64-unknown-linux-musl" elif use ppc64 ; then export RUST_TARGET="powerpc64le-unknown-linux-musl" elif use riscv ; then @@ -831,7 +835,7 @@ src_configure() { # amd64, arm, arm64 & x86. # Might want to flip the logic around if Firefox is to support more arches. # bug 833001, bug 903411#c8 - if use ppc64 || use riscv; then + if use loong || use ppc64 || use riscv; then mozconfig_add_options_ac '' --disable-sandbox elif use valgrind; then mozconfig_add_options_ac 'valgrind requirement' --disable-sandbox @@ -1030,8 +1034,8 @@ src_configure() { else mozconfig_add_options_ac 'relr elf-hack' --enable-elf-hack=relr fi - elif use ppc64 || use riscv ; then - # '--disable-elf-hack' is not recognized on ppc64/riscv, + elif use loong || use ppc64 || use riscv ; then + # '--disable-elf-hack' is not recognized on loong/ppc64/riscv, # see bgo #917049, #930046 :; else