From 5d61413e8bf77c89ff91fdf8f8dce39145c968c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Fri, 22 Oct 2021 22:16:10 -0300 Subject: [PATCH] thunderbird: fix i686 build. They seem to have backported whatever started causing issues in firefox 93, so copy that patch. --- .../thunderbird/patches/fix-i386-fdlibm.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/thunderbird/patches/fix-i386-fdlibm.patch diff --git a/srcpkgs/thunderbird/patches/fix-i386-fdlibm.patch b/srcpkgs/thunderbird/patches/fix-i386-fdlibm.patch new file mode 100644 index 00000000000..831e5e03678 --- /dev/null +++ b/srcpkgs/thunderbird/patches/fix-i386-fdlibm.patch @@ -0,0 +1,18 @@ +# error: typedef redefinition with different types ('__double_t' (aka 'double') vs 'long double') +# https://bugzilla.mozilla.org/show_bug.cgi?id=1729459 + +--- a/modules/fdlibm/src/math_private.h ++++ b/modules/fdlibm/src/math_private.h +@@ -30,7 +30,12 @@ + * Adapted from https://github.com/freebsd/freebsd-src/search?q=__double_t + */ + ++#if defined(__linux__) && defined(__i386__) ++// rely on glibc's double_t ++typedef long double __double_t; ++#else + typedef double __double_t; ++#endif + typedef __double_t double_t; + + /*