--- a/mozilla-thunderbird.SlackBuild 2022-12-15 22:32:01.461875851 +0200 +++ b/mozilla-thunderbird.SlackBuild 2023-04-14 23:22:07.863127275 +0300 @@ -44,6 +44,9 @@ MOZLOCALIZE=${MOZLOCALIZE:-} # "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 36: ordinal not in range(128)" LANG=C +# LTO needs more open files +ulimit -n 4096 + # Add a shell script to start the thunderbird binary with MOZ_ALLOW_DOWNGRADE=1 # to avoid backing up (and disabling) the user profile if a browser downgrade # is detected. If you want to build with the stock default behavior, set @@ -101,6 +104,12 @@ elif [ "$ARCH" = "arm" ]; then elif [ "$ARCH" = "armel" ]; then SLKCFLAGS="-g0 -march=armv4t" LIBDIRSUFFIX="" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-g0 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "riscv64" ]; then + SLKCFLAGS="-g0 -fPIC" + LIBDIRSUFFIX="64" else SLKCFLAGS="-g0" LIBDIRSUFFIX="" @@ -166,6 +175,9 @@ cd thunderbird-$RELEASEVER || exit 1 # Delete object directory if it was mistakenly included in the tarball: rm -rf obj-x86_64-pc-linux-gnu +# Bug 1772048 - Update rustc_version and semver crates. +xzcat $CWD/rustc_version-0.4.0.patch.xz | patch -p1 --verbose || exit 1 + # Retain GTK+ v2 scrolling behavior: zcat $CWD/tb.ui.scrollToClick.diff.gz | patch -p1 --verbose || exit 1 @@ -193,6 +205,10 @@ fi case "$ARCH" in armv7hl) ARCH_CONFIG="--with-arch=armv7-a --with-float-abi=hard --with-fpu=vfpv3-d16 --disable-elf-hack" ;; + aarch64) ARCH_CONFIG="--disable-webrtc" + ;; + riscv64) ARCH_CONFIG="--disable-webrtc" + ;; *) ARCH_CONFIG=" " ;; esac @@ -206,6 +222,7 @@ find . \ # Our building options, in a configure-like display ;) OPTIONS="\ + $ARCH_CONFIG \ --enable-official-branding \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ @@ -228,7 +245,6 @@ OPTIONS="\ --disable-crashreporter \ --disable-debug-symbols \ --disable-debug \ - --disable-elf-hack \ --disable-tests \ --disable-updater \ --host=$ARCH-slackware-linux \ @@ -252,8 +268,9 @@ export MACH_USE_SYSTEM_PYTHON="1" export BUILD_OFFICIAL=1 export MOZILLA_OFFICIAL=1 export MOZ_PHOENIX=1 +export MOZ_PACKAGE_JSSHELL=1 export CFLAGS="$SLKCFLAGS" -export CXXFLAGS="$SLKCFLAGS" +export CXXFLAGS="$SLKCFLAGS -fno-delete-null-pointer-checks" export MOZ_MAKE_FLAGS="$NUMJOBS" # Set the following variable to empty. =0 does not work. export MOZ_REQUIRE_SIGNING=