[packages/firefox] add fixes for glibc 2.43

atler atler at pld-linux.org
Wed Jan 28 17:05:47 CET 2026


commit ecfdde7935312d195a47f8164695fa56e78d193b
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Jan 28 14:07:56 2026 +0100

    add fixes for glibc 2.43

 firefox.spec    |  6 +++++-
 glibc2.43.patch | 39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+), 1 deletion(-)
---
diff --git a/firefox.spec b/firefox.spec
index 0eb3e3d..eabfa87 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -290,6 +290,7 @@ Patch0:		custom-rust-lto.patch
 Patch1:		system-av1-link.patch
 # https://github.com/llvm/llvm-project/issues/177701
 Patch2:		libatomic-check.patch
+Patch3:		glibc2.43.patch
 Patch4:		%{name}-prefs.patch
 Patch5:		%{name}-pld-bookmarks.patch
 Patch7:		%{name}-middle_click_paste.patch
@@ -363,7 +364,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
@@ -2178,6 +2179,7 @@ done
 %patch -P0 -p1
 %patch -P1 -p1
 %patch -P2 -p1
+%patch -P3 -p1
 %patch -P4 -p1
 %patch -P5 -p1
 %patch -P7 -p1
@@ -2185,6 +2187,8 @@ done
 %{?with_system_cairo:%patch -P10 -p1}
 %patch -P11 -p1
 
+%update_cargo_checksum third_party/rust/glslopt/glsl-optimizer/include/c11/threads.h
+
 %if %{with pgo}
 %{__sed} -i -e 's at __BROWSER_PATH__@"../../dist/bin/firefox-bin"@' build/automation.py.in
 %endif
diff --git a/glibc2.43.patch b/glibc2.43.patch
new file mode 100644
index 0000000..b9ae0e3
--- /dev/null
+++ b/glibc2.43.patch
@@ -0,0 +1,39 @@
+--- firefox-147.0/third_party/rust/glslopt/glsl-optimizer/include/c11/threads.h.orig	2026-01-06 01:36:55.000000000 +0100
++++ firefox-147.0/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/firefox.git/commitdiff/c39ecec979d5f844960c9fd152dacd691f31c0c9



More information about the pld-cvs-commit mailing list