Hello Carsten,

Sorry for my delayed response. Due to I did not build thunderbird(old or new version) successfully on locally before, I don't have sufficient evidence to explain it. Now I have made new progress in building locally this time, so I would like to communicate and explain to you.

> we disabled a lot of usual architectures where nobody will use
> Thunderbird or at least can Thunderbird in a useful way.

My local patch attached, which includes the following two modifications,
1. Enable build for loong64
Please consider adding loong64 support in d/control.
2. third_party/botan: Add loongarch64 support
Due to Botan 2.18.2 in thunderbird 140.1.1esr-1 lacks loongarch64 support.
But loongarch64 is supported in Botan upstream, botan3 is also built for loong64 in debian(https://buildd.debian.org/status/logs.php?pkg=botan3&arch=loong64).

> Did you check if a recent Thunderbird version is buildable on loong64?
> If not it makes no sense to me to enable loong64 in the Architecture field.

Yes.
Based on attached patch, I have built thunderbird successfully on locally.
The details is as follows,
1. Build
......omit
dpkg-deb: building package 'thunderbird-l10n-be' in '../thunderbird-l10n-be_140.1.1esr-1+loong64_all.deb'. dpkg-deb: building package 'thunderbird-l10n-bg' in '../thunderbird-l10n-bg_140.1.1esr-1+loong64_all.deb'. dpkg-deb: building package 'thunderbird-l10n-br' in '../thunderbird-l10n-br_140.1.1esr-1+loong64_all.deb'.
make[1]: Leaving directory '/home/again/thunderbird-140.1.1esr'
 dpkg-genbuildinfo -O../thunderbird_140.1.1esr-1+loong64_loong64.buildinfo
 dpkg-genchanges -O../thunderbird_140.1.1esr-1+loong64_loong64.changes
dpkg-genchanges: info: not including original source code in upload
 dpkg-source --after-build .
dpkg-buildpackage: info: binary and diff upload (original source NOT included)
 signfile thunderbird_140.1.1esr-1+loong64.dsc
gpg: skipped "Dandan Zhang <[email protected]>": No secret key

2. Install
# apt install ./thunderbird_140.1.1esr-1_loong64.deb

3. Run
loongson@debian:~$ thunderbird -v
Mozilla Thunderbird 140.1.1esr
loongson@debian:~$ thunderbird --verbose
INFO  -> [[ ... using verbose mode ... ]]
DEBUG -> call '/usr/lib/thunderbird/thunderbird --name=thunderbird'
......

In short, apart from adding support for loongarch64 in third_party/botan 2.8.2, the thunderbird source code can be built without any modifications.
Could you add loong64 support in d/control?
Please feel free to contact me at any time.

Best regards,
Dandan Zhang
diff -Nru thunderbird-140.1.1esr/debian/changelog 
thunderbird-140.1.1esr/debian/changelog
--- thunderbird-140.1.1esr/debian/changelog     2025-08-10 09:33:46.000000000 
+0000
+++ thunderbird-140.1.1esr/debian/changelog     2025-08-19 01:31:15.000000000 
+0000
@@ -1,3 +1,10 @@
+thunderbird (1:140.1.1esr-1+loong64) experimental; urgency=medium
+ 
+  * Enable build for loong64
+  * third_party/botan: Add loongarch64 support
+
+ -- Dandan Zhang <[email protected]>  Tue, 19 Aug 2025 09:31:15 +0800
+
 thunderbird (1:140.1.1esr-1) experimental; urgency=medium
 
   * [e6e4d2d] d/source.filter: Update content to filter out
diff -Nru thunderbird-140.1.1esr/debian/control 
thunderbird-140.1.1esr/debian/control
--- thunderbird-140.1.1esr/debian/control       2025-08-10 09:33:46.000000000 
+0000
+++ thunderbird-140.1.1esr/debian/control       2025-08-19 01:20:56.000000000 
+0000
@@ -58,7 +58,7 @@
 Standards-Version: 4.7.2
 
 Package: thunderbird
-Architecture: amd64 arm64 i386 mips64el ppc64el s390x ppc64 riscv64
+Architecture: amd64 arm64 i386 mips64el ppc64el s390x ppc64 riscv64 loong64
 Depends:
  debianutils (>= 1.16),
  fontconfig,
diff -Nru 
thunderbird-140.1.1esr/debian/patches/botan-add-loongarch64-support.patch 
thunderbird-140.1.1esr/debian/patches/botan-add-loongarch64-support.patch
--- thunderbird-140.1.1esr/debian/patches/botan-add-loongarch64-support.patch   
1970-01-01 00:00:00.000000000 +0000
+++ thunderbird-140.1.1esr/debian/patches/botan-add-loongarch64-support.patch   
2025-08-19 01:31:15.000000000 +0000
@@ -0,0 +1,29 @@
+Description: Enable build for loong64 
+ .
+ thunderbird (1:140.1.1esr-1+loong64) experimental; urgency=medium
+ .
+   * Enable build for loong64
+   * third_party/botan: Add loongarch64 support
+Author: Dandan Zhang <[email protected]>
+
+---
+Last-Update: 2025-08-19
+
+--- /dev/null
++++ 
thunderbird-140.1.1esr/comm/third_party/botan/src/build-data/arch/loongarch64.txt
+@@ -0,0 +1,3 @@
++family loongarch
++endian little
++wordsize 64
+--- 
thunderbird-140.1.1esr.orig/comm/third_party/botan/src/build-data/detect_arch.cpp
++++ 
thunderbird-140.1.1esr/comm/third_party/botan/src/build-data/detect_arch.cpp
+@@ -70,6 +70,9 @@
+      RISCV32
+   #endif
+ 
++#elif defined(__loongarch64)
++  LOONGARCH64
++
+ #else
+   UNKNOWN
+ 
diff -Nru thunderbird-140.1.1esr/debian/patches/series 
thunderbird-140.1.1esr/debian/patches/series
--- thunderbird-140.1.1esr/debian/patches/series        2025-07-31 
03:56:30.000000000 +0000
+++ thunderbird-140.1.1esr/debian/patches/series        2025-08-19 
01:31:15.000000000 +0000
@@ -19,3 +19,4 @@
 fixes/Install-vaapitest-v4l2test-only-when-build.patch
 debian-hacks/Allow-to-override-rust-LTO-flag.patch
 porting-ppc64el/skia-Adjust-detection-of-ppc64-architecture.patch
+botan-add-loongarch64-support.patch

Reply via email to