Topic: Impossible to compile IceWeasel-UXP 3.1
I am trying to compile IceWeasel-UXP 3.1 with this script:
#!/bin/sh
cd /tmp
ANAME="RB_20230320.tar.gz"
wget "https://repo.palemoon.org/MoonchildProductions/UXP/archive/""$ANAME" -O "$ANAME"
tar xzf "$ANAME"
rm "$ANAME"
cd uxp
mkdir application
cd application
ANAME="iceweasel-uxp-3.1.tar.gz"
wget "https://repo.hyperbola.info:50000/other/iceweasel-uxp/""$ANAME" -O "$ANAME"
tar xzf "$ANAME"
rm "$ANAME"
mv "iceweasel-uxp-""$2" iceweasel-uxp
cd ..
echo 'mk_add_options AUTOCLOBBER=1' > .mozconfig
echo 'mk_add_options MOZ_MAKE_FLAGS="-j7"' >> .mozconfig
echo 'ac_add_options --enable-application=iceweasel-uxp' >> .mozconfig
echo 'ac_add_options --enable-default-toolkit=cairo-gtk2' >> .mozconfig
echo 'ac_add_options --enable-alsa' >> .mozconfig
echo 'ac_add_options --disable-pulseaudio' >> .mozconfig
echo 'ac_add_options --enable-optimize=-O2' >> .mozconfig
echo 'ac_add_options --enable-strip' >> .mozconfig
echo 'ac_add_options --disable-debug' >> .mozconfig
echo 'ac_add_options --enable-release' >> .mozconfig
echo 'ac_add_options --disable-sync' >> .mozconfig
echo 'ac_add_options --disable-verify-mar' >> .mozconfig
echo 'ac_add_options --disable-updater' >> .mozconfig
echo 'ac_add_options --disable-crashreporter' >> .mozconfig
echo 'ac_add_options --disable-maintenance-service' >> .mozconfig
echo 'ac_add_options --disable-tests' >> .mozconfig
echo 'ac_add_options --disable-ipdl-tests' >> .mozconfig
sed -i "s/die('Cannot find project %s', build_app)/fake = 0/g" build/moz.configure/init.configure
./mach build
./mach package
cp ./obj-x86_64-pc-linux-gnu/dist/iceweasel-uxp-*.tar.bz2 /opt/
cd ..
rm -rf ./uxp
cd /opt
tar -xjvf iceweasel-uxp-*.tar.bz2
mv iceweasel-uxp-*.tar.bz2 /a/UTILDISK/UPGRADE/iceweasel-uxp/
It dies with these errors:
0:11.56 checking for alsa... yes
0:11.56 checking MOZ_ALSA_CFLAGS...
0:11.56 checking MOZ_ALSA_LIBS... -lasound
0:11.58 /tmp/uxp/old-configure: 12143: test: Illegal number:
0:11.60 /tmp/uxp/old-configure: 12203: test: Illegal number:
0:11.60 checking for wget... wget
0:11.64 checking for valid C compiler optimization flags... yes
0:11.69 /tmp/uxp/old-configure: 71: /tmp/subscript.coYWgu: Syntax error: Unterminated quoted string
0:11.71 DEBUG: <truncated - see config.log for full output>
0:11.71 DEBUG: configure:10325: checking _GTKCHECK_LIBS
0:11.71 DEBUG: configure:10366: checking for gio-2.0 >= 2.22
0:11.71 DEBUG: configure:10373: checking MOZ_GIO_CFLAGS
0:11.71 DEBUG: configure:10378: checking MOZ_GIO_LIBS
0:11.71 DEBUG: configure:10453: checking for gconf-2.0 >= 1.2.1 gobject-2.0
0:11.71 DEBUG: configure:10460: checking MOZ_GCONF_CFLAGS
0:11.71 DEBUG: configure:10465: checking MOZ_GCONF_LIBS
0:11.71 DEBUG: configure:10726: checking for dbus-1 >= 0.60
0:11.71 DEBUG: configure:10733: checking MOZ_DBUS_CFLAGS
0:11.71 DEBUG: configure:10738: checking MOZ_DBUS_LIBS
0:11.71 DEBUG: configure:10778: checking for dbus-glib-1 >= 0.60
0:11.71 DEBUG: configure:10785: checking MOZ_DBUS_GLIB_CFLAGS
0:11.71 DEBUG: configure:10790: checking MOZ_DBUS_GLIB_LIBS
0:11.71 DEBUG: configure:10894: /usr/bin/gcc -std=gnu99 -c -flifetime-dse=1 -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pipe -msse2 -mfpmath=sse -pthread conftest.c 1>&5
0:11.71 DEBUG: configure:11594: checking for alsa
0:11.71 DEBUG: configure:11601: checking MOZ_ALSA_CFLAGS
0:11.71 DEBUG: configure:11606: checking MOZ_ALSA_LIBS
0:11.71 DEBUG: configure:12307: checking for wget
0:11.71 DEBUG: configure:12632: checking for valid C compiler optimization flags
0:11.71 DEBUG: configure:12643: /usr/bin/gcc -std=gnu99 -c -flifetime-dse=1 -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pipe -msse2 -mfpmath=sse -pthread -O2 conftest.c 1>&5
0:11.71 ERROR: old-configure failed
0:11.73 *** Fix above errors and then restart with\
0:11.74 "/usr/bin/gmake -f client.mk build"
0:11.74 gmake: *** [client.mk:378: configure] Error 1
The script '/tmp/subscript.coYWgu' contains the following bad script:
#!/bin/sh
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Welcome to the new world of configure. We're working on moving to a
# python based configure. In the meanwhile, remains of the old autoconf
# based configure is in old-configure.in.
# If you need to add something, please come talk to the build system
# peers for now.
#
# Because adding a configure file in the tree is going to conflict with
# existing configure files in people's (and automation) work trees, and
# because some automation jobs are still running autoconf and configure
# "manually", this file is actually an m4 file that is processed by
# autoconf, but doesn't call any autoconf macros. The `divert` line
# below ensures the script that follows is output by autoconf.
: "#!/bin/sh
SRCDIR=$(dirname $0)
TOPSRCDIR="$SRCDIR"
export OLD_CONFIGURE="$SRCDIR"/old-configure
which python2.7 > /dev/null && exec python2.7 "$TOPSRCDIR/configure.py" "$@" || exec python "$TOPSRCDIR/configure.py" "$@"
If i comment out the line
: "divert(0)dnl"
in 'uxp/configure.in' at line #10, then it dies with Python errors, that environmental variables 'wget' and 'dummy' are not uppercase...
I tried to use older RELBASE files, like 20210823, but it yielded the same results.
I tried to use both Python 2.7 and 3.9. Made no difference...
Compiler is GCC 10.2.1. OS is Devuan 4 on AMD64.