summaryrefslogtreecommitdiffstats
path: root/source/xap/mozilla-thunderbird
diff options
context:
space:
mode:
Diffstat (limited to 'source/xap/mozilla-thunderbird')
-rw-r--r--source/xap/mozilla-thunderbird/double_t.x86.diff13
-rwxr-xr-xsource/xap/mozilla-thunderbird/mozilla-thunderbird.SlackBuild14
2 files changed, 24 insertions, 3 deletions
diff --git a/source/xap/mozilla-thunderbird/double_t.x86.diff b/source/xap/mozilla-thunderbird/double_t.x86.diff
new file mode 100644
index 000000000..12f04c378
--- /dev/null
+++ b/source/xap/mozilla-thunderbird/double_t.x86.diff
@@ -0,0 +1,13 @@
+--- ./modules/fdlibm/src/math_private.h.orig 2022-06-27 21:04:57.000000000 -0500
++++ ./modules/fdlibm/src/math_private.h 2022-06-30 13:41:46.761170878 -0500
+@@ -30,8 +30,8 @@
+ * Adapted from https://github.com/freebsd/freebsd-src/search?q=__double_t
+ */
+
+-typedef double __double_t;
+-typedef __double_t double_t;
++typedef long double __double_t;
++typedef long double double_t;
+
+ /*
+ * The original fdlibm code used statements like:
diff --git a/source/xap/mozilla-thunderbird/mozilla-thunderbird.SlackBuild b/source/xap/mozilla-thunderbird/mozilla-thunderbird.SlackBuild
index 7762dd91d..1c8b30327 100755
--- a/source/xap/mozilla-thunderbird/mozilla-thunderbird.SlackBuild
+++ b/source/xap/mozilla-thunderbird/mozilla-thunderbird.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2008, 2009, 2010, 2011, 2012, 2014, 2016, 2017, 2018, 2019, 2020, 2021 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2008, 2009, 2010, 2011, 2012, 2014, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -107,8 +107,8 @@ else
fi
# Choose a compiler (gcc/g++ or clang/clang++):
-export CC=${CC:-clang}
-export CXX=${CXX:-clang++}
+export CC=${CC:-gcc}
+export CXX=${CXX:-g++}
# Set linker to use:
if [ "$CC" = "clang" -a "$(which lld 2> /dev/null)" = "/usr/bin/lld" ]; then
@@ -172,6 +172,11 @@ zcat $CWD/tb.ui.scrollToClick.diff.gz | patch -p1 --verbose || exit 1
# Bypass a test that fails the build:
zcat $CWD/gkrust.a.no.networking.check.diff.gz | patch -p1 --verbose || exit 1
+# Fix header mismatch on x86:
+if [ "$ARCH" = "i686" ]; then
+ zcat $CWD/double_t.x86.diff.gz | patch -p1 --verbose || exit 1
+fi
+
# Fetch localization, if requested:
if [ ! -z $MOZLOCALIZE ]; then
LOC_TAG="THUNDERBIRD_$( echo $VERSION | tr \. _ )_RELEASE"
@@ -205,6 +210,9 @@ OPTIONS="\
--with-system-nss \
--with-system-nspr \
--enable-alsa \
+ --with-unsigned-addon-scopes=app,system \
+ --without-wasm-sandboxed-libraries \
+ --allow-addon-sideload \
--enable-application=comm/mail \
--enable-default-toolkit=cairo-gtk3-wayland \
--enable-linker=$LINKER \