summaryrefslogtreecommitdiff
path: root/www-client
diff options
context:
space:
mode:
Diffstat (limited to 'www-client')
-rw-r--r--www-client/Manifest.gzbin6199 -> 6205 bytes
-rw-r--r--www-client/firefox-bin/Manifest4
-rw-r--r--www-client/firefox-bin/firefox-bin-128.7.0-r1.ebuild (renamed from www-client/firefox-bin/firefox-bin-128.7.0.ebuild)7
-rw-r--r--www-client/firefox-bin/firefox-bin-135.0.1-r1.ebuild (renamed from www-client/firefox-bin/firefox-bin-135.0.1.ebuild)7
-rw-r--r--www-client/firefox/Manifest7
-rw-r--r--www-client/firefox/firefox-128.7.0.ebuild10
-rw-r--r--www-client/firefox/firefox-135.0.1.ebuild17
-rw-r--r--www-client/firefox/firefox-135.0.ebuild17
8 files changed, 41 insertions, 28 deletions
diff --git a/www-client/Manifest.gz b/www-client/Manifest.gz
index acf17d6c8b88..80cf415887ab 100644
--- a/www-client/Manifest.gz
+++ b/www-client/Manifest.gz
Binary files differ
diff --git a/www-client/firefox-bin/Manifest b/www-client/firefox-bin/Manifest
index 67fe78bbd339..c1b6d6947ec7 100644
--- a/www-client/firefox-bin/Manifest
+++ b/www-client/firefox-bin/Manifest
@@ -202,6 +202,6 @@ DIST firefox-bin_i686-128.7.0.tar.bz2 88135059 BLAKE2B ed2de6556b59eb2566e154281
DIST firefox-bin_i686-135.0.1.tar.xz 75429644 BLAKE2B 86fbff83c27d46a62b0358e65eba347044a9be8db180cf279b44385e42a078618883c3d52776f8ff95a13795ecc7417a303da21cedf5205e15c226f258b2bdce SHA512 f8aaa3965c434b79051740ac63ca6fb44a999ab27085ed5540121f05d8152b88c787ddeb0efb2e0af6119dc3a48efb20b209082378b8d3282a90755fd40e6392
DIST firefox-bin_x86_64-128.7.0.tar.bz2 86834571 BLAKE2B efba11dd5eab50c7af83887ef7b3e7b3e247f4058f171bf007eb6cda808c1072bb44e6712b0b0b92796657027ecf149e184022120ae4f5275bad081201333640 SHA512 bb030b09f71f66b939e0bf5251c693629ac5bb7cf22a3bd57eadee1483d661d2c77c2c11b7d43866524eb5838a9303ac6135768b74e7c5b3d3ecb904a90047a4
DIST firefox-bin_x86_64-135.0.1.tar.xz 72661096 BLAKE2B 7fa1b0f31219d29ff3712f13823d6f9791f523112b4a57b687e66c6cb4018e16255ef5946a6a7983a219b8b8a42eddcf64e75344bc740574c7caf2aa1c1ea578 SHA512 4c3a9ac95d1ae92121f7bc45dbec1c3d259384bc1dcc649121e2f87a1f176bc761b6134f5a5310b0edba2f97e8f33443b4a45ba7efd2b294fbec34c5a00a2cc6
-EBUILD firefox-bin-128.7.0.ebuild 10660 BLAKE2B 6a6f2daf6cc17dff9a9798f5920cb80455f5835cc8132938925bf214af2f489251520f9e07865e15d149b66e0d886997a446f388c1d8b7fd8ff5e2a92f8dfd4a SHA512 7eb1796cef3dca35d600b0ed82112065070eb89a8555ed874365965e4ba5d967c977818f523e910d80a43bd58b5e32d0fc266fd1bd44779a7d93bc3a520e5a6a
-EBUILD firefox-bin-135.0.1.ebuild 10653 BLAKE2B d03dd8653d556509231caad5e947680971a9651e70f6201c357479e6ab6f0af3fd4894bcfa3dab692d5314689af1ea0acfa4f61968d2115e994194746047cc3a SHA512 70f0da11184706196db9e5e20a08daf9d47bc01bf98111605e7f3c05303dc9986207234e52b2786ed72f0ba9633d4a447be26e780ab46f2f5a8cd5d1bfc97831
+EBUILD firefox-bin-128.7.0-r1.ebuild 10592 BLAKE2B ce3476b01fb7054001077e714dd7f7866866267a0af27ed5c940dab45ffcbc5d9d5f8f816aab49a26e93208820dd76ba356d8bc080de611c838d3f1b876d23a3 SHA512 e3c0099e8af158517b2aadad657f6a0bdc35ed592c09e124c261ccf0e8ccb270d3e8ff794047782baa5dcec410874567f476633df68a311fc676fd365769b909
+EBUILD firefox-bin-135.0.1-r1.ebuild 10585 BLAKE2B 334a53a6495a3216ad7405a1a182b06d07cf5c61f856368a118e41c0140bb7ea6f885f6d01d6714a557fae1ce08d41071cbceef2a1d91724200221470e2ed690 SHA512 866dedc0c3954cf533a020f50c881474eb1c758ac352b230251bebd06f021a6d72eccfd554238c8ef899fcf8e5d829d26fd9ff110c464c73e93e536ef6d7e9cf
MISC metadata.xml 444 BLAKE2B 859a9628086f30da043382e969ee4413a663b6b0c71442472155ac434399eb0df210b5dbbc33e01488368469c81863ab53573f32b2d5ac321d236da60da609c2 SHA512 80fe43fe64650905c201a151f330d0a83ed3d89ff103828a4deddc68d4abc69e1a89f2f677d969a0164fb71b261cbed90164731dc5b11fe518a24ed48342209d
diff --git a/www-client/firefox-bin/firefox-bin-128.7.0.ebuild b/www-client/firefox-bin/firefox-bin-128.7.0-r1.ebuild
index 63d369476e43..b9652518f8d3 100644
--- a/www-client/firefox-bin/firefox-bin-128.7.0.ebuild
+++ b/www-client/firefox-bin/firefox-bin-128.7.0-r1.ebuild
@@ -256,15 +256,10 @@ src_install() {
local app_name="Mozilla ${MOZ_PN^} (bin)"
local desktop_file="${FILESDIR}/${PN}-r3.desktop"
local desktop_filename="${PN}.desktop"
+ local exec_command="${PN} --name=firefox-bin"
local icon="${PN}"
local use_wayland="false"
- if [[ -n ${MOZ_ESR} ]] ; then
- local exec_command="${PN} --name=firefox"
- else
- local exec_command="${PN}"
- fi
-
if use wayland ; then
use_wayland="true"
fi
diff --git a/www-client/firefox-bin/firefox-bin-135.0.1.ebuild b/www-client/firefox-bin/firefox-bin-135.0.1-r1.ebuild
index e868cf5a6f6e..e4557e9e3b20 100644
--- a/www-client/firefox-bin/firefox-bin-135.0.1.ebuild
+++ b/www-client/firefox-bin/firefox-bin-135.0.1-r1.ebuild
@@ -256,15 +256,10 @@ src_install() {
local app_name="Mozilla ${MOZ_PN^} (bin)"
local desktop_file="${FILESDIR}/${PN}-r3.desktop"
local desktop_filename="${PN}.desktop"
+ local exec_command="${PN} --name=firefox-bin"
local icon="${PN}"
local use_wayland="false"
- if [[ -n ${MOZ_ESR} ]] ; then
- local exec_command="${PN} --name=firefox"
- else
- local exec_command="${PN}"
- fi
-
if use wayland ; then
use_wayland="true"
fi
diff --git a/www-client/firefox/Manifest b/www-client/firefox/Manifest
index d14ba82187e1..a123bdcce4e9 100644
--- a/www-client/firefox/Manifest
+++ b/www-client/firefox/Manifest
@@ -110,6 +110,7 @@ DIST firefox-128.7.0esr-zh-CN.xpi 675201 BLAKE2B e07f861f85c0abce293798029206ac7
DIST firefox-128.7.0esr-zh-TW.xpi 677437 BLAKE2B f2587278e02f26340261501b694c372fa7164b2113572176305263c10479466fb481e3bc5d857bfd068caffc5c7efdc9c6a77506eb955b035b0c707fbfc3af39 SHA512 d6b2df29a1bc98e49a96953c315f3aeb4fbea66fc9691d37085d0946c3710f6f0174927fe7103009343cc038f4eedbadacd592a4eda24b1d3f7f395474853c7c
DIST firefox-128.7.0esr.source.tar.xz 569300208 BLAKE2B 08bf5b571707b7a5acf1ebde12e370be5999e3ac8cac2e952fae635faa16e07ba4d9d0a00b304ba43b5a327c825cae04c1ccf8434456e27d4c396e5b09a4b6a7 SHA512 26f9661b395b85a44b42bd72ef1ad976c614216c68f6c2dd834d0ac8b84b9c9f398b8ac550a47396995d96e6bb5fa9a50064d7f2f526bddd45aed5039ef131b8
DIST firefox-128esr-patches-08.tar.xz 17564 BLAKE2B d904b74fdae2e76866ded11de5377a7b6883d35996b358ae3419ffb7da53b04b2c7d4bb10d48998a8318a84e8221de39955289cb33a8f278c131b4af2006be62 SHA512 344a2d04dec679cd8ed714dcecc9dd5b56696803cee9267e7c0c45c439d78728e7eae674bb5f0a64f2e5802dc59c1ec25f1703885024d88bda8a02e2b3e0d69e
+DIST firefox-135-loong-patches-01.tar.xz 39148 BLAKE2B 3e7693a1decc1750740a8ab390e07d5a642105ad59f95629f9cb00b7c939a8a497c44cfe0a569cfd36cd57663c63d7b39042f5f1eabc6cf0b0611b78e8bba4dc SHA512 1b70b9fd4821c9338af11495b0fdb2aa0ee3f647de113dbdc4211d6a9b056dc7fb30bd2ecc224b4c66e48c2eb80f8937acb5e6423fddd45f0eaa42e538c725e2
DIST firefox-135-patches-02.tar.xz 13740 BLAKE2B ff1780260ef9032c9fbdb6af9cf63967eeff0e3478dcd53e42e6ae7e476ff31084c3f61b840ff0ab7cc9a6932b5ae2f012b0abfd5c0551f2896ad1b10a5bb3fb SHA512 ed124fa1c4685b45fe0c3402d9abd99e34bb54d42f1e5891204df26af06578d490d3bc0a0593144c69970df5cf0b89071c4d45540939c54c1cfdbb155cee8655
DIST firefox-135.0-ach.xpi 297493 BLAKE2B e9f6422239452ff716089945cfec4696c6f48c92f283e412788b8b70f95f1c6e7aa14ab85d983a4423a76e5a110b5043bd966636942e2714626ca3b14797dc02 SHA512 173b83bceedaadefa5cfdb5aa6996803e41f8f7efddd89d3dde7778fd7b04b99d6d3c2bc3622a2246c78e9c3c308694fada412d17a2539de3ab63712335e0455
DIST firefox-135.0-af.xpi 269128 BLAKE2B be97eb56a031773a7c647d72181ee3af86ee7fb23e94a34f5b0d7fc47af3e3dd01a67e81a5bae13d30985c1c6ff75ba5a6de91af8d0803c32d0e3cd0c5f73fba SHA512 e6352c7da7985cb1564fddf8c8e8445baf47a27e16fde93148aaf2f45a92177ef4b507b83c4df90308fb5d00035d3059404a49c1425cd943caa30049fd427c4f
@@ -315,7 +316,7 @@ DIST firefox-135.0.1.source.tar.xz 599617332 BLAKE2B a99e63f5622b3aa2cd5f686daa2
DIST firefox-135.0.source.tar.xz 613526736 BLAKE2B a9309d125b48988bc4e5c6989f2a1a0ee169dc7661a3d8d67d6bb32271812b2e22b885fa8384c027835ba1907fe00ad2fb8c8c1e8d87f8dafebbc9939c378edd SHA512 7d283bcefe1e328901f15a88f5ff3da566bb0495ce5b9e3895e7a156020126a5743b6bffd69d94d9eb812e1868195ae92db162d29a5d98ee118fdb238469c089
DIST wasi-sdk-25.0-arm64-linux.tar.gz 115160800 BLAKE2B 1ce22aaea87d0720d40d46ebdd96508c8fb0593b53c4489022fd5a1a9afb043a26a6e162a992d73454f612f2b6ab01e17a99c189c0c8b8c2d2d68fd96fabee1b SHA512 ef4eff22c1efec4dc5ab199d09d93ee0004f9fa67b32cac0030f8b6a40def10f714391cec8e803c200995dd8bfad3ebad9ec79b4195aa6b2ea61ea47a8b9e61f
DIST wasi-sdk-25.0-x86_64-linux.tar.gz 114450290 BLAKE2B 07618828d4c25d67421aa72d38fc49bbff9052b8ecfe0fa9f4207e71880e9c650f458567cfa5bd389d5f830fcfee89142a77d33c29e7bccd1da7ddba2bc47b95 SHA512 716acc4b737ad6f51c6b32c3423612c03df9a3165bde3d6e24df5c86779b8be9463f5a79e620f2fc49707275563a6c9710242caca27e1ad9dd2c69e8fce8a766
-EBUILD firefox-128.7.0.ebuild 41824 BLAKE2B e5ccd26fd642ad39215be1d7c63f5cfe892b64175dcea805ec702a8636518dd53d598ebc3c38335ee88c5a98872ee4af747ae4ea49d504138561e4d0c85544c1 SHA512 8fefa3dd02c9b5d65e7f373527ad59037ffb8f96668da3444d05766138abbed9394a6a3800d846a05758f3c9384a577a78a8cf7dcff1738359be61386d668e75
-EBUILD firefox-135.0.1.ebuild 41154 BLAKE2B 888d3cdd5ef46be8838491ac551f2e7fdcfef7a7383c09dc16730b4dd6c7d62954d735f64b9a5c2f3780de03a5425e1417b16e187131ae0f617368e7a5487923 SHA512 603e5fdc9d8c3d2884e3e5a52bdc15ea871bf1b2c99f42acf47e83471fe44b7420151ccc876444be156aaf8f0fa6c527020163ff11d3964d44d8aea77817d5ef
-EBUILD firefox-135.0.ebuild 41149 BLAKE2B b0fd1e8637bf1e7000e643bac4a13cbe3918edfedcf44f585bc219826ffb1e8a918c82cd717e1bf86e22fca586a58ae9f09411491df4f9fe4c3f1f9c63b7ecc0 SHA512 695064a7ea917fa9d4cbeccad0593d1d5a14469fb1a661b5dabdee636051029945255e35edc3a06bf3e71eb331a339c80ceeb55803ccae406ea22c235a524508
+EBUILD firefox-128.7.0.ebuild 42060 BLAKE2B c3ac09ee3baff91bb0af70734746af4d23881c69ec64b43839722f7725b48ac8a364438fc0c37a93eeb49f897dbce5c065993966b9c9af385cc9cdd7d0067acf SHA512 40af657d183ce657162eaf3477c7acbad506bf4bbc47ee3a4755a27dba9f141b24f5b88b3defbf5c656737980f7d7044ae69ad67c9a2bd42b2d4ba26d068d00d
+EBUILD firefox-135.0.1.ebuild 41616 BLAKE2B 50fea2af895b88b2474ea399669b15d19986b6c47e386e79d3ac514fa8663f24aacce37cd137d1c72ab764455a21e3614418da33af1aeff5ee76ef52feacd553 SHA512 2fb7f42173dfd054d0a5c87beb70b26eee4f6fb87c20cb3b18b97f4d5071e1dc562ab1ff126f51a1d93080835865651667ca105cccd1c8e3318a7be5cbc5ce72
+EBUILD firefox-135.0.ebuild 41611 BLAKE2B e125c9d442d32b181c8f749ba913fa0c7517baf1f62269b9a51219b39283e97083cd307d6402de47d6f7d7f2171b1105e983568fff815b57d7a95448a0d3a631 SHA512 5c33e783ac6a4e4fab6fab992d1a80b3858cd7a422abe3ebcd28be5353d2879b605212f3d8f18a984aabc177df27d71c07ec3e627b878529e359f45ea283e055
MISC metadata.xml 2634 BLAKE2B 950ff18c250295b2f080f189b00e45ffa8b19a2b70d2a3877be3553579cc8771f0b0bf89a2648404d558009083f1e786114405114050846073c5a94fda9e00ae SHA512 6bc3f08bc9ddf6b65041bce581b839d4b9715e8e1dec25227c7a259805b48b5f2cf2c2c152e1170dee817c31e99adc6c73d1e7baeed4b625c1fafdc687792b51
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..a03d6600a91b 100644
--- a/www-client/firefox/firefox-135.0.1.ebuild
+++ b/www-client/firefox/firefox-135.0.1.ebuild
@@ -4,6 +4,7 @@
EAPI=8
FIREFOX_PATCHSET="firefox-135-patches-02.tar.xz"
+FIREFOX_LOONG_PATCHSET="firefox-135-loong-patches-01.tar.xz"
LLVM_COMPAT=( 17 18 19 )
@@ -69,6 +70,9 @@ PATCH_URIS=(
DESCRIPTION="Firefox Web Browser"
SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz
${PATCH_URIS[@]}
+ loong? (
+ https://dev.gentoo.org/~xen0n/distfiles/www-client/${MOZ_PN}/${FIREFOX_LOONG_PATCHSET}
+ )
wasm-sandbox? (
amd64? ( https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VER/.*/}/wasi-sdk-${WASI_SDK_VER}-x86_64-linux.tar.gz )
arm64? ( https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VER/.*/}/wasi-sdk-${WASI_SDK_VER}-arm64-linux.tar.gz )
@@ -76,7 +80,7 @@ SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}
S="${WORKDIR}/${PN}-${PV%_*}"
LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
IUSE="+clang dbus debug eme-free hardened hwaccel jack libproxy pgo pulseaudio sndio selinux"
IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-jpeg +system-libevent"
@@ -601,6 +605,7 @@ src_prepare() {
fi
eapply "${WORKDIR}/firefox-patches"
+ use loong && eapply "${WORKDIR}/firefox-loong-patches"
# Allow user to apply any additional patches without modifing ebuild
eapply_user
@@ -616,6 +621,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 +840,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 +1039,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..bcfea61a5c02 100644
--- a/www-client/firefox/firefox-135.0.ebuild
+++ b/www-client/firefox/firefox-135.0.ebuild
@@ -4,6 +4,7 @@
EAPI=8
FIREFOX_PATCHSET="firefox-135-patches-02.tar.xz"
+FIREFOX_LOONG_PATCHSET="firefox-135-loong-patches-01.tar.xz"
LLVM_COMPAT=( 17 18 19 )
@@ -69,6 +70,9 @@ PATCH_URIS=(
DESCRIPTION="Firefox Web Browser"
SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz
${PATCH_URIS[@]}
+ loong? (
+ https://dev.gentoo.org/~xen0n/distfiles/www-client/${MOZ_PN}/${FIREFOX_LOONG_PATCHSET}
+ )
wasm-sandbox? (
amd64? ( https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VER/.*/}/wasi-sdk-${WASI_SDK_VER}-x86_64-linux.tar.gz )
arm64? ( https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VER/.*/}/wasi-sdk-${WASI_SDK_VER}-arm64-linux.tar.gz )
@@ -76,7 +80,7 @@ SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}
S="${WORKDIR}/${PN}-${PV%_*}"
LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
IUSE="+clang dbus debug eme-free hardened hwaccel jack libproxy pgo pulseaudio sndio selinux"
IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-jpeg +system-libevent"
@@ -601,6 +605,7 @@ src_prepare() {
fi
eapply "${WORKDIR}/firefox-patches"
+ use loong && eapply "${WORKDIR}/firefox-loong-patches"
# Allow user to apply any additional patches without modifing ebuild
eapply_user
@@ -616,6 +621,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 +840,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 +1039,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