From: Jan Rękorajski Date: Tue, 5 Oct 2021 23:37:38 +0000 (+0200) Subject: - do not redefine double_t from glibc math.h X-Git-Tag: auto/th/firefox-93.0-2~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Ffirefox.git;a=commitdiff_plain;h=0230931;ds=sidebyside - do not redefine double_t from glibc math.h --- diff --git a/firefox.spec b/firefox.spec index bb5b24f..81221e2 100644 --- a/firefox.spec +++ b/firefox.spec @@ -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 index 0000000..ca72249 --- /dev/null +++ b/glibc-double.patch @@ -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 + #include + #include ++#include + + #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: