diff options
Diffstat (limited to 'source/xap/mozilla-thunderbird')
4 files changed, 13 insertions, 35 deletions
diff --git a/source/xap/mozilla-thunderbird/build-deps/nodejs/nodejs.build b/source/xap/mozilla-thunderbird/build-deps/nodejs/nodejs.build index 6f98074fe..e07f5a72e 100755 --- a/source/xap/mozilla-thunderbird/build-deps/nodejs/nodejs.build +++ b/source/xap/mozilla-thunderbird/build-deps/nodejs/nodejs.build @@ -81,6 +81,9 @@ if [ ! -z $LIBDIRSUFFIX ]; then sed -i "s|lib/|lib${LIBDIRSUFFIX}/|g" tools/install.py fi +# Use gcc as there have been linker failures with objects build with clang: +CC="gcc" \ +CXX="g++" \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ diff --git a/source/xap/mozilla-thunderbird/gkrust.a.no.networking.check.diff b/source/xap/mozilla-thunderbird/gkrust.a.no.networking.check.diff index 759809277..115ba0e7a 100644 --- a/source/xap/mozilla-thunderbird/gkrust.a.no.networking.check.diff +++ b/source/xap/mozilla-thunderbird/gkrust.a.no.networking.check.diff @@ -1,27 +1,31 @@ ---- ./config/makefiles/rust.mk.orig 2020-08-04 21:42:49.000000000 -0500 -+++ ./config/makefiles/rust.mk 2020-08-24 21:44:11.930497037 -0500 -@@ -303,15 +303,15 @@ +--- ./config/makefiles/rust.mk.orig 2021-03-15 12:42:08.219987929 -0500 ++++ ./config/makefiles/rust.mk 2021-03-15 12:43:15.996984180 -0500 +@@ -332,17 +332,17 @@ # the chance of proxy bypasses originating from rust code. - # The check only works when rust code is built with -Clto. + # The check only works when rust code is built with -Clto but without MOZ_LTO_RUST_CROSS. # Sanitizers and sancov also fail because compiler-rt hooks network functions. -ifndef MOZ_PROFILE_GENERATE -ifeq ($(OS_ARCH), Linux) -ifeq (,$(rustflags_sancov)$(MOZ_ASAN)$(MOZ_TSAN)$(MOZ_UBSAN)) +-ifndef MOZ_LTO_RUST_CROSS -ifneq (,$(filter -Clto,$(cargo_rustc_flags))) - $(call py_action,check_binary,--target --networking $@) -endif -endif -endif -endif +-endif +#ifndef MOZ_PROFILE_GENERATE +#ifeq ($(OS_ARCH), Linux) +#ifeq (,$(rustflags_sancov)$(MOZ_ASAN)$(MOZ_TSAN)$(MOZ_UBSAN)) ++#ifndef MOZ_LTO_RUST_CROSS +#ifneq (,$(filter -Clto,$(cargo_rustc_flags))) +# $(call py_action,check_binary,--target --networking $@) +#endif +#endif +#endif +#endif ++#endif force-cargo-library-check: $(call CARGO_CHECK) --lib $(cargo_target_flag) $(rust_features_flag) diff --git a/source/xap/mozilla-thunderbird/mozilla-firefox.xpcom_arm.patch b/source/xap/mozilla-thunderbird/mozilla-firefox.xpcom_arm.patch deleted file mode 100644 index 7309b55a1..000000000 --- a/source/xap/mozilla-thunderbird/mozilla-firefox.xpcom_arm.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- a/xpcom/glue/objs.mk -+++ a/xpcom/glue/objs.mk -@@ -71,13 +71,13 @@ XPCOM_GLUENS_SRC_LCPPSRCS = \ - SSE.cpp \ - unused.cpp \ - nsProxyRelease.cpp \ - nsTextFormatter.cpp \ - GenericFactory.cpp \ - FileUtils.cpp \ - $(NULL) - --ifeq (arm,$(TARGET_CPU)) -+ifneq (,$(filter arm%,$(TARGET_CPU))) - XPCOM_GLUENS_SRC_LCPPSRCS += arm.cpp - endif - - XPCOM_GLUENS_SRC_CPPSRCS = $(addprefix $(topsrcdir)/xpcom/glue/,$(XPCOM_GLUENS_SRC_LCPPSRCS)) - diff --git a/source/xap/mozilla-thunderbird/mozilla-thunderbird.SlackBuild b/source/xap/mozilla-thunderbird/mozilla-thunderbird.SlackBuild index afc9aa5bc..3ad94b607 100755 --- a/source/xap/mozilla-thunderbird/mozilla-thunderbird.SlackBuild +++ b/source/xap/mozilla-thunderbird/mozilla-thunderbird.SlackBuild @@ -50,14 +50,6 @@ LANG=C # this to something other than "YES": MOZ_ALLOW_DOWNGRADE=${MOZ_ALLOW_DOWNGRADE:-YES} -# This can be set to YES or NO: -ENABLE_CALENDAR=${ENABLE_CALENDAR:-YES} -if [ "$ENABLE_CALENDAR" = "NO" ]; then - ENABLE_CALENDAR="--disable-calendar" -else - ENABLE_CALENDAR="--enable-calendar" -fi - # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -192,8 +184,6 @@ fi # Arch-dependent patches: case "$ARCH" in armv7hl) ARCH_CONFIG="--with-arch=armv7-a --with-float-abi=hard --with-fpu=vfpv3-d16 --disable-elf-hack" - # Make Thunderbird compile on ARM platforms lacking neon support: - zcat $CWD/mozilla-firefox.xpcom_arm.patch.gz | patch -p1 --verbose || exit 1 ;; *) ARCH_CONFIG=" " ;; @@ -216,7 +206,6 @@ OPTIONS="\ --with-system-nspr \ --enable-alsa \ --enable-application=comm/mail \ - $ENABLE_CALENDAR \ --enable-default-toolkit=cairo-gtk3-wayland \ --enable-linker=$LINKER \ --disable-strip \ @@ -291,8 +280,8 @@ DESTDIR=$PKG ./mach install || exit 1 # Strip binaries: find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -# Clean up the build time dependencies: -rm -rf $TMP/mozilla-thunderbird-build-deps +## Clean up the build time dependencies: +#rm -rf $TMP/mozilla-thunderbird-build-deps # We don't need these (just symlinks anyway): rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/thunderbird-devel-$RELEASEVER |