tazwok rev 458 4.3
cook-toolchain: fix a bug which prevent to cook-toolchain (again)
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Wed Mar 16 19:00:43 2011 +0100 (2011-03-16) |
parents | c9d6a554c154 |
children | 95e4c4e04cdd |
files | chroot-scripts/cook-toolchain |
line diff
1.1 --- a/chroot-scripts/cook-toolchain Tue Mar 15 23:07:53 2011 +0100 1.2 +++ b/chroot-scripts/cook-toolchain Wed Mar 16 19:00:43 2011 +0100 1.3 @@ -126,6 +126,7 @@ 1.4 mkdir -p /tmp/backup/var/lib/tazpkg 1.5 sed 's/^AUTO_INSTALL_DEPS="yes"/AUTO_INSTALL_DEPS="no"/' -i \ 1.6 /etc/slitaz/tazpkg.conf 1.7 +cp -a /var/lib/tazpkg/* /tmp/backup/var/lib/tazpkg 1.8 BASE_PKGS="tazpkg tazwok slitaz-base-files libtaz" 1.9 for i in $BASE_PKGS; do 1.10 echo N | tazpkg get-install $i --root=/tmp/backup --forced 1.11 @@ -134,7 +135,6 @@ 1.12 if [ -d /var/log/slitaz ]; then 1.13 cp -a /var/log/slitaz/* /tmp/backup/var/log/slitaz 1.14 fi 1.15 -cp -a /var/lib/tazpkg/* /tmp/backup/var/lib/tazpkg 1.16 cp -a /etc/slitaz/* /tmp/backup/etc/slitaz 1.17 cp -a /tmp/tazpkg.conf /tmp/backup/etc/slitaz 1.18 cp -a /etc/resolv.conf /tmp/backup/etc 1.19 @@ -154,7 +154,7 @@ 1.20 for i in $BASIC_APPS; do 1.21 ln -s /tools/bin/$i /bin/$i 1.22 done 1.23 -BASIC_LIBS="libgcc_s.so libgcc_s.so.1 libstdc++.so libstdc++.so.6" 1.24 +BASIC_LIBS="libgcc_s.so libgcc_s.so.1 libstdc++.so libstdc++.so.6 ld*.so" 1.25 for i in $BASIC_LIBS; do 1.26 ln -sf /tools/lib/$i /usr/lib/$i 1.27 done 1.28 @@ -163,6 +163,11 @@ 1.29 ln -s /tools/bin/gettext.sh /usr/bin 1.30 ln -s /tools/bin/busybox /bin/sh 1.31 1.32 +# Touch /etc/config.site.tmptoolchain to make tazwok know 1.33 +# we still cook the toolchain. 1.34 +# (= non-conventional repositories configuration into chroot). 1.35 +touch /etc/config.site.tmptoolchain 1.36 + 1.37 report end-step 1.38 1.39 # Finally, cook final* version of the toolchain packages.