Source: firefox
Version: 111.0.1-1
Followup-For: Bug #1012218

Hi,

The firefox now can be built on the Unmatched board with the patch:

```
...
Build Architecture: riscv64
Build Type: binary
Build-Space: 16289628
Build-Time: 59070
Distribution: experimental
Host Architecture: riscv64
Install-Time: 317
Job: /home/rv/build/firefox/t-111-0-1/firefox_111.0.1-1.1.dsc
Machine Architecture: riscv64
Package: firefox
Package-Time: 59916
Source-Version: 111.0.1-1.1
Space: 16289628
Status: successful
Version: 111.0.1-1.1
````

The firefox has supported SpiderMonkey on riscv64[0]&[1] for Since 111.0,
so we can build the package with the option.

The way to solve the problem of linker is just to increase 
`$stalled_pkg_timeout`
from 150 to 300 on sbuildrc. I believe all riscv64 buildd machines[2] has 
supported
the options also.

So could you apply the patch on the next upload? Thanks.

[0]: 
https://bugzilla.mozilla.org/show_bug.cgi?id=1800431&_gl=1*1t95bon*_ga*MjA2MzY0NDQyMy4xNjE1MjU3OTAw*_ga_MQ7767QQQW*MTY4MTEzMzIyMS4yLjEuMTY4MTEzMzQ0MC4wLjAuMA..
[1]: 
https://bugzilla.mozilla.org/show_bug.cgi?id=1812559&_gl=1*1unakpc*_ga*MjA2MzY0NDQyMy4xNjE1MjU3OTAw*_ga_MQ7767QQQW*MTY4MTEzMzIyMS4yLjEuMTY4MTEzMzU0My4wLjAuMA..
[2]: https://buildd.debian.org/status/architecture.php?a=riscv64&suite=sid

-- 
Regards,
--
  Bo YU

diff -Nru firefox-111.0.1/debian/browser.mozconfig.in 
firefox-111.0.1/debian/browser.mozconfig.in
--- firefox-111.0.1/debian/browser.mozconfig.in 2023-03-24 20:21:01.000000000 
+0000
+++ firefox-111.0.1/debian/browser.mozconfig.in 2023-04-09 07:52:32.000000000 
+0000
@@ -30,6 +30,15 @@
 ac_add_options --with-unsigned-addon-scopes=app,system
 ac_add_options --allow-addon-sideload
 ac_add_options --enable-alsa
-%if DIST == bullseye || DIST == buster || DIST == stretch || DEB_HOST_ARCH == 
s390x
+%if DIST == bullseye || DIST == buster || DIST == stretch || DEB_HOST_ARCH == 
s390x || DEB_HOST_ARCH == riscv64
 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-111.0.1/debian/changelog firefox-111.0.1/debian/changelog
--- firefox-111.0.1/debian/changelog    2023-03-24 20:21:58.000000000 +0000
+++ firefox-111.0.1/debian/changelog    2023-04-09 07:52:32.000000000 +0000
@@ -1,3 +1,9 @@
+firefox (111.0.1-1.1) experimental; urgency=low
+
+  * Support for riscv64(jit)
+
+ -- Bo YU <tsu.y...@gmail.com>  Sun, 09 Apr 2023 07:52:32 +0000
+
 firefox (111.0.1-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru firefox-111.0.1/debian/rules firefox-111.0.1/debian/rules
--- firefox-111.0.1/debian/rules        2023-03-24 20:21:01.000000000 +0000
+++ firefox-111.0.1/debian/rules        2023-04-09 07:52:32.000000000 +0000
@@ -35,7 +35,9 @@
 $(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)
@@ -97,7 +99,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.
+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

Attachment: signature.asc
Description: PGP signature

Reply via email to