Re: Bug#1105090 closed by Debian FTP Masters <[email protected]> (reply to Mike Hommey <[email protected]>) (Bug#1105090: fixed in firefox 138.0.3-1)

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.powerpc,gmane.linux.debian.ports.sparc
Message-ID <dde1f34f4fff18d9d8e6277ed431bd8b08019156.camel@physik.fu-berlin.de>
Control: reopen -1

Hi Mike,

thanks for quickly taking care of this!

Unfortunately, your approach does not work, it still tries to use lld.

I suggest using my patch which overrides the default compiler for powerpc,
ppc64 and sparc64:

diff --git a/debian/rules b/debian/rules
index eb6dd1b73d0..6c46bcb9fec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -113,6 +113,11 @@ ifneq (,$(filter mips%,$(DEB_HOST_ARCH)))
        CONFIGURE_FLAGS += --disable-webrtc
 endif
 
+ifneq (,$(filter powerpc ppc64 sparc64,$(DEB_HOST_ARCH)))
+       CC := gcc
+       CXX := g++
+endif
+
 ifeq (default,$(origin CC))
 ifneq (,$(filter-out bullseye bookworm,$(DIST)))
 CC := clang

I have verified this to work.

As for powerpc and sparc64: Firefox can be built on these targets by using
the output generated by NodeJS on x86_64 and injecting the files there. I
am currently working on a mechanism to integrate this into the Debian package.

The idea comes from the Oracle Solaris developers which use this approach to
build Firefox for Solaris SPARC [1].

Adrian

> [1] https://github.com/oracle/solaris-userland/tree/master/components/desktop/firefox/wrapper-node

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
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.