[packages/thunderbird] add fixes for glibc 2.43
atler
atler at pld-linux.org
Thu Jan 29 11:05:50 CET 2026
commit 62e04e945be265ccdcd63e60367c8ff280c135ca
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Jan 29 00:17:23 2026 +0100
add fixes for glibc 2.43
glibc2.43.patch | 39 +++++++++++++++++++++++++++++++++++++++
thunderbird.spec | 6 +++++-
2 files changed, 44 insertions(+), 1 deletion(-)
---
diff --git a/thunderbird.spec b/thunderbird.spec
index 2e56078..45af8ec 100644
--- a/thunderbird.spec
+++ b/thunderbird.spec
@@ -202,6 +202,7 @@ Patch2: enable-addons.patch
Patch3: glibc-2.34.patch
Patch4: system-av1-link.patch
Patch5: libatomic-check.patch
+Patch6: glibc2.43.patch
URL: http://www.mozilla.org/projects/thunderbird/
BuildRequires: Mesa-libgbm-devel
BuildRequires: alsa-lib-devel
@@ -256,7 +257,7 @@ BuildRequires: python3-setuptools
BuildRequires: python3-simplejson
BuildRequires: python3-virtualenv >= 20
BuildRequires: rpm-build >= 4.6
-BuildRequires: rpmbuild(macros) >= 2.050
+BuildRequires: rpmbuild(macros) >= 2.051
BuildRequires: rust >= 1.82.0
BuildRequires: rust-cbindgen >= 0.29.1
BuildRequires: sed >= 4.0
@@ -1387,12 +1388,15 @@ done
%patch -P3 -p1
%patch -P4 -p1
%patch -P5 -p1
+%patch -P6 -p1
# https://bugzilla.mozilla.org/show_bug.cgi?id=2006630
find comm/third_party/rust -name .cargo-checksum.json | \
xargs grep -l 'git\(attributes\|modules\)' | \
xargs sed -i -e 's@"\([^"]*/\)\?\.git\(attributes\|modules\)"[^,]*,@@'
+%update_cargo_checksum comm/third_party/rust/glslopt/glsl-optimizer/include/c11/threads.h
+
%build
cp -p %{_datadir}/automake/config.* build/autoconf
diff --git a/glibc2.43.patch b/glibc2.43.patch
new file mode 100644
index 0000000..9a9a629
--- /dev/null
+++ b/glibc2.43.patch
@@ -0,0 +1,39 @@
+--- firefox-147.0/comm/third_party/rust/glslopt/glsl-optimizer/include/c11/threads.h.orig 2026-01-06 01:36:55.000000000 +0100
++++ firefox-147.0/comm/third_party/rust/glslopt/glsl-optimizer/include/c11/threads.h 2026-01-28 11:36:27.598464580 +0100
+@@ -26,6 +26,10 @@
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
++#if __STDC_VERSION__ >= 201112L
++#include <threads.h>
++#include <pthread.h>
++#else
+ #ifndef EMULATED_THREADS_H_INCLUDED_
+ #define EMULATED_THREADS_H_INCLUDED_
+
+@@ -71,3 +75,4 @@
+
+
+ #endif /* EMULATED_THREADS_H_INCLUDED_ */
++#endif
+--- firefox-147.0/security/sandbox/chromium/sandbox/linux/system_headers/linux_seccomp.h.orig 2026-01-06 01:36:48.000000000 +0100
++++ firefox-147.0/security/sandbox/chromium/sandbox/linux/system_headers/linux_seccomp.h 2026-01-28 13:30:33.262780668 +0100
+@@ -5,6 +5,7 @@
+ #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SECCOMP_H_
+ #define SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SECCOMP_H_
+
++#include <features.h>
+ #include <stdint.h>
+ #include <sys/ioctl.h>
+
+@@ -214,8 +215,10 @@
+ #define SECCOMP_RET_INVALID 0x00010000U // Illegal return value
+ #endif
+
++#if !defined(__GLIBC__) || !defined(__GLIBC_MINOR__) || __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 43)
+ #ifndef SYS_SECCOMP
+ #define SYS_SECCOMP 1
+ #endif
++#endif
+
+ #endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SECCOMP_H_
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/thunderbird.git/commitdiff/566741228a9f68a881d8858e376d7e25209aa697
More information about the pld-cvs-commit
mailing list