~ salmonella-environment-setup (master) 0732b65e15e47adfaaaff46e36d0e599560e866d
commit 0732b65e15e47adfaaaff46e36d0e599560e866d
Author: Mario Domenech Goulart <mario@parenteses.org>
AuthorDate: Sun Jul 9 12:42:20 2023 +0200
Commit: Mario Domenech Goulart <mario@parenteses.org>
CommitDate: Sun Jul 9 12:42:23 2023 +0200
system-setup/installers/tcc.sh: Use snapshot 16456168
This fixes the following error that happens with Debian bookworm's
GCC:
make[1]: Entering directory '/tmp/tmp.UhOzpnU7pc/tcc-0.9.27/lib'
../tcc -c libtcc1.c -o libtcc1.o -B..
../tcc -c alloca86_64.S -o alloca86_64.o -B..
../tcc -c alloca86_64-bt.S -o alloca86_64-bt.o -B..
../tcc -c va_list.c -o va_list.o -B..
../tcc -c bcheck.c -o bcheck.o -B..
bcheck.c:738: error: '__malloc_hook' undeclared
make[1]: *** [Makefile:64: bcheck.o] Error 1
make[1]: Leaving directory '/tmp/tmp.UhOzpnU7pc/tcc-0.9.27/lib'
make: *** [Makefile:230: libtcc1.a] Error 2
Fix copied from
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=717eba5b5cfb78b1438c348882b34c88b3dc173a
diff --git a/system-setup/installers/tcc.sh b/system-setup/installers/tcc.sh
index 8f5ee91..ee1d79a 100644
--- a/system-setup/installers/tcc.sh
+++ b/system-setup/installers/tcc.sh
@@ -1,9 +1,7 @@
-version=0.9.27
-
-wget -c "http://download.savannah.gnu.org/releases/tinycc/tcc-$version.tar.bz2"
-rm -rf "tcc-$version"
-tar xjf "tcc-$version.tar.bz2"
-cd "tcc-$version"
+wget -c "https://repo.or.cz/tinycc.git/snapshot/16456168430c9e185dd94b8215aa77d02bbb8a2c.tar.gz"
+rm -rf "tinycc-1645616"
+tar xzf "16456168430c9e185dd94b8215aa77d02bbb8a2c.tar.gz"
+cd "tinycc-1645616"
# To compile some eggs we need a larger VSTACK_SIZE
sed -i tcc.h -e 's/#define VSTACK_SIZE 256/#define VSTACK_SIZE 1024/'
Trap