wok-current rev 10353

gcc: Removed gawk in build depends. Added check like the one glibc has to install if cook script is found. Fixed tazwok cookorder i hope.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun May 22 16:40:19 2011 +0000 (2011-05-22)
parents e2c80c0bf72a
children 4976495d1f1f
files gcc/receipt
line diff
     1.1 --- a/gcc/receipt	Sun May 22 22:38:05 2011 +0200
     1.2 +++ b/gcc/receipt	Sun May 22 16:40:19 2011 +0000
     1.3 @@ -14,7 +14,7 @@
     1.4  # and use it's own copy.
     1.5  DEPENDS="libgomp libobjc gcc-lib-base mpc-library elfutils"
     1.6  BUILD_DEPENDS="elfutils mpc-library mpfr mpfr-dev gmp gmp-dev elfutils \
     1.7 -elfutils-dev gawk"
     1.8 +elfutils-dev"
     1.9  
    1.10  # Rules to compile & install the temporary toolchain.
    1.11  precook_tmp_toolchain()
    1.12 @@ -111,6 +111,14 @@
    1.13  {
    1.14  	cd $src
    1.15  
    1.16 +
    1.17 +	# SliTaz is a Busybox based OS, why we so small and fast. Using gawk by
    1.18 +	# default to build package will not ensure package work with Busybox awk
    1.19 +	# and so should NOT be use to cook.
    1.20 +	if [ -x /usr/bin/cook ]; then
    1.21 +		[ -d "/var/lib/tazpkg/installed/gawk" ] || tazpkg get-install gawk
    1.22 +	fi
    1.23 +
    1.24  	# Package slitaz-toolchain use 'cook --options' when rebuilding
    1.25  	# the full SliTaz toolchain.
    1.26  	[ "$2" == "--first-pass" ] && opt=$2