summaryrefslogtreecommitdiffstats
path: root/patches/source/mozilla-thunderbird/build-deps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'patches/source/mozilla-thunderbird/build-deps.sh')
-rwxr-xr-xpatches/source/mozilla-thunderbird/build-deps.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/patches/source/mozilla-thunderbird/build-deps.sh b/patches/source/mozilla-thunderbird/build-deps.sh
index 69d1a8b29..69ff60479 100755
--- a/patches/source/mozilla-thunderbird/build-deps.sh
+++ b/patches/source/mozilla-thunderbird/build-deps.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2019 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2019, 2023 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -29,13 +29,17 @@ chmod 700 $TMP/mozilla-thunderbird-build-deps
PATH=$TMP/mozilla-thunderbird-build-deps/usr/bin:$HOME/.cargo/bin:$PATH
# cbindgen is a build-time dependency:
-( cd $CWD/build-deps/cbindgen ; ./cbindgen.build ) || exit 1
+if [ ! -x /usr/bin/cbindgen ]; then
+ ( cd $CWD/build-deps/cbindgen ; ./cbindgen.build ) || exit 1
+fi
if /bin/ls build-deps*.txz 1> /dev/null 2> /dev/null ; then # use prebuilt autoconf/nodejs
( cd $TMP/mozilla-thunderbird-build-deps ; tar xf $CWD/build-deps*.txz )
else
# We need to use the incredibly ancient autoconf-2.13 for this :/
( cd $CWD/build-deps/autoconf ; ./autoconf.build ) || exit 1
- # And node.js... WHY
- ( cd $CWD/build-deps/nodejs ; ./nodejs.build ) || exit 1
+ # And node.js...
+ if [ ! -x /usr/bin/node ]; then
+ ( cd $CWD/build-deps/nodejs ; ./nodejs.build ) || exit 1
+ fi
fi