Source: firefox Followup-For: Bug #1012218 Dear Maintainer,
Now the riscv64 has in a good shape on Debian and it will be added into archive soon. So it will be important for many Debian riscv64 users if we have a modern browser. Yeah, I have built it with many versions outside Debian archives[0] to keep this, fortunately, the riscv64 firefox on Debian can work unless we tested on like jit for a long time. From [1], if without any patch, the build will be hang during ld phrase according to my experience. In past I have built it on Unmatched boards, which as Debian riscv64 buildd machines, with the patch. I know the patch is not perfect but I need your help to tell me which point need to be modified. Given the riscv64 buildd machies' performance, I think we can do the triky. Once we have more power buildd machines we can drop it. So what is your opinion here? Any help would be greatly appreciated! [0]: http://vimer.f3322.net:63015/firefox/ [1]: https://buildd.debian.org/status/fetch.php?pkg=firefox&arch=riscv64&ver=114.0-1&stamp=1686186289&raw=0 -- Regards, -- Bo YU
diff -Nru firefox-114.0.2/debian/browser.mozconfig.in firefox-114.0.2/debian/browser.mozconfig.in --- firefox-114.0.2/debian/browser.mozconfig.in 2023-06-22 12:53:33.000000000 +0800 +++ firefox-114.0.2/debian/browser.mozconfig.in 2023-06-23 23:11:10.000000000 +0800 @@ -33,3 +33,12 @@ %if DIST == bullseye || DIST == buster || DIST == stretch || DEB_HOST_ARCH == s390x ac_add_options --without-wasm-sandboxed-libraries %endif +# riscv64 +%if DEB_HOST_ARCH == riscv64 +ac_add_options --disable-debug +ac_add_options --disable-lto +ac_add_options --disable-debug-symbols +ac_add_options --disable-geckodriver +ac_add_options --enable-linker=bfd +ac_add_options --enable-jit +%endif diff -Nru firefox-114.0.2/debian/changelog firefox-114.0.2/debian/changelog --- firefox-114.0.2/debian/changelog 2023-06-22 12:54:23.000000000 +0800 +++ firefox-114.0.2/debian/changelog 2023-06-23 23:11:10.000000000 +0800 @@ -1,3 +1,10 @@ +firefox (114.0.2-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * support riscv64 + + -- Bo YU <tsu.y...@gmail.com> Fri, 23 Jun 2023 23:11:10 +0800 + firefox (114.0.2-1) unstable; urgency=medium * New upstream release. diff -Nru firefox-114.0.2/debian/rules firefox-114.0.2/debian/rules --- firefox-114.0.2/debian/rules 2023-06-22 12:54:16.000000000 +0800 +++ firefox-114.0.2/debian/rules 2023-06-23 23:11:00.000000000 +0800 @@ -38,7 +38,11 @@ $(foreach lib,$(sort $(call uc,$(SYSTEM_LIBS))),$(eval $(call system_lib,$(lib)))) OFFICIAL_BRANDING := browser/branding/official -MOZILLA_OFFICIAL := 1 + +ifneq (riscv64,$(DEB_HOST_ARCH)) + MOZILLA_OFFICIAL := 1 +endif + # ESR, Beta and Releases use the official branding ifneq (,$(filter release beta esr%,$(SHORT_SOURCE_CHANNEL))) BRANDING ?= $(OFFICIAL_BRANDING) @@ -100,7 +104,9 @@ # Make the linker generate compressed debug sections. dh_strip would do # the same anyways, but it allows elfhack to work in combination with # unstripped binaries when they would normally be larger than 2GiB. -LDFLAGS += -Wl,--compress-debug-sections=zlib +ifneq (riscv64,$(DEB_HOST_ARCH)) + LDFLAGS += -Wl,--compress-debug-sections=zlib +endif # Disable debug symbols when building on 32-bits machines, because # a) the rust compiler can't deal with it in the available address
signature.asc
Description: PGP signature