[packages/thunderbird] extend libatomic check

atler atler at pld-linux.org
Sat Jan 24 01:47:28 CET 2026


commit 36630e4757a6e3dc16c758ac276324504ee2ab56
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Jan 24 01:45:59 2026 +0100

    extend libatomic check
    
    particular combination used by firefox: std::atomic<double> +
    -std=gnu++20 requires libatomic on i686 with clang despite the fact
    64-bit atomics work fine on this target. see:
    
    https://github.com/llvm/llvm-project/issues/177701

 libatomic-check.patch | 13 +++++++++++++
 thunderbird.spec      |  2 ++
 2 files changed, 15 insertions(+)
---
diff --git a/thunderbird.spec b/thunderbird.spec
index c1f182a..2e56078 100644
--- a/thunderbird.spec
+++ b/thunderbird.spec
@@ -201,6 +201,7 @@ Patch1:		custom-rust-lto.patch
 Patch2:		enable-addons.patch
 Patch3:		glibc-2.34.patch
 Patch4:		system-av1-link.patch
+Patch5:		libatomic-check.patch
 URL:		http://www.mozilla.org/projects/thunderbird/
 BuildRequires:	Mesa-libgbm-devel
 BuildRequires:	alsa-lib-devel
@@ -1385,6 +1386,7 @@ done
 %patch -P2 -p0
 %patch -P3 -p1
 %patch -P4 -p1
+%patch -P5 -p1
 
 # https://bugzilla.mozilla.org/show_bug.cgi?id=2006630
 find comm/third_party/rust -name .cargo-checksum.json | \
diff --git a/libatomic-check.patch b/libatomic-check.patch
new file mode 100644
index 0000000..7a2f556
--- /dev/null
+++ b/libatomic-check.patch
@@ -0,0 +1,13 @@
+--- firefox-147.0/build/moz.configure/libraries.configure.orig	2026-01-06 01:36:39.000000000 +0100
++++ firefox-147.0/build/moz.configure/libraries.configure	2026-01-23 21:28:44.930382796 +0100
+@@ -124,8 +124,8 @@
+     def check_std_atomic_requirements(flag=None, when=None):
+         return try_link(
+             includes=["cstdint", "atomic"],
+-            body="std::atomic<uint64_t> foo; foo = 1;",
+-            flags=flag or [],
++            body="std::atomic<uint64_t> foo; foo = 1; std::atomic<double> bar; bar = 1;",
++            flags=["-std=gnu++20"] + (flag or []),
+             when=when,
+         )
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/thunderbird.git/commitdiff/36630e4757a6e3dc16c758ac276324504ee2ab56



More information about the pld-cvs-commit mailing list