commit:     3ff20f417925eab7b63f722cee10a7758d64b2f1
Author:     Piotr Kubaj <pkubaj <AT> anongoth <DOT> pl>
AuthorDate: Thu Aug  8 15:48:35 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Aug  9 16:45:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ff20f41

www-client/firefox: add support for ppc64le on musl

It still does not add support for ppc64 (big-endian) because the USE
flag "ppc64" is shared between ppc64 and ppc64le.

Fixing it on ppc64 would probably require adding a big-endian USE and
there are some big-endian specific patches necessary. Since I don't have
yet a big-endian Gentoo, this patch does not fix ppc64 on musl, but it
currently does not work anyway.

Signed-off-by: Piotr Kubaj <pkubaj <AT> anongoth.pl>
Closes: https://github.com/gentoo/gentoo/pull/38018
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 www-client/firefox/firefox-128.1.0.ebuild | 2 ++
 www-client/firefox/firefox-129.0.ebuild   | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/www-client/firefox/firefox-128.1.0.ebuild 
b/www-client/firefox/firefox-128.1.0.ebuild
index 8ca5d7c119b7..1d88b262baa5 100644
--- a/www-client/firefox/firefox-128.1.0.ebuild
+++ b/www-client/firefox/firefox-128.1.0.ebuild
@@ -637,6 +637,8 @@ src_prepare() {
                        export RUST_TARGET="i686-unknown-linux-musl"
                elif use arm64 ; then
                        export RUST_TARGET="aarch64-unknown-linux-musl"
+               elif use ppc64 ; then
+                       export RUST_TARGET="powerpc64le-unknown-linux-musl"
                else
                        die "Unknown musl chost, please post your rustc -vV 
along with emerge --info on Gentoo's bug #915651"
                fi

diff --git a/www-client/firefox/firefox-129.0.ebuild 
b/www-client/firefox/firefox-129.0.ebuild
index 8e9069b7db01..57a2736fb5c1 100644
--- a/www-client/firefox/firefox-129.0.ebuild
+++ b/www-client/firefox/firefox-129.0.ebuild
@@ -630,6 +630,8 @@ src_prepare() {
                        export RUST_TARGET="i686-unknown-linux-musl"
                elif use arm64 ; then
                        export RUST_TARGET="aarch64-unknown-linux-musl"
+               elif use ppc64 ; then
+                       export RUST_TARGET="powerpc64le-unknown-linux-musl"
                else
                        die "Unknown musl chost, please post your rustc -vV 
along with emerge --info on Gentoo's bug #915651"
                fi

Reply via email to