- do not redefine double_t from glibc math.h
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 5 Oct 2021 23:37:38 +0000 (01:37 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 5 Oct 2021 23:37:38 +0000 (01:37 +0200)
firefox.spec
glibc-double.patch [new file with mode: 0644]

index bb5b24f465c3ec9fba553b9ada42b73bca481c7d..81221e25fb85e11e0a0510103dc36f2015725690 100644 (file)
@@ -261,6 +261,7 @@ Patch7:             %{name}-middle_click_paste.patch
 Patch8:                %{name}-system-virtualenv.patch
 Patch9:                %{name}-Disable-Firefox-Health-Report.patch
 Patch10:       system-cairo.patch
+Patch11:       glibc-double.patch
 URL:           https://www.mozilla.org/firefox/
 BuildRequires: OpenGL-devel
 BuildRequires: alsa-lib-devel
@@ -2111,6 +2112,7 @@ unpack() {
 %patch8 -p2
 %patch9 -p1
 %{?with_system_cairo:%patch10 -p1}
+%patch11 -p1
 
 %if %{with pgo}
 %{__sed} -i -e 's@__BROWSER_PATH__@"../../dist/bin/firefox-bin"@' build/automation.py.in
diff --git a/glibc-double.patch b/glibc-double.patch
new file mode 100644 (file)
index 0000000..ca72249
--- /dev/null
@@ -0,0 +1,20 @@
+--- firefox-93.0/modules/fdlibm/src/math_private.h.orig        2021-09-28 00:47:42.000000000 +0200
++++ firefox-93.0/modules/fdlibm/src/math_private.h     2021-10-06 01:23:47.611144150 +0200
+@@ -20,6 +20,7 @@
+ #include <cfloat>
+ #include <stdint.h>
+ #include <sys/types.h>
++#include <math.h>
+ #include "fdlibm.h"
+@@ -30,8 +31,7 @@
+  * Adapted from https://github.com/freebsd/freebsd-src/search?q=__double_t
+  */
+-typedef double      __double_t;
+-typedef __double_t  double_t;
++typedef double_t  __double_t;
+ /*
+  * The original fdlibm code used statements like:
This page took 2.572096 seconds and 4 git commands to generate.