# HG changeset patch # User Antoine Bodin # Date 1296084049 -3600 # Node ID fa7b7514e1d8e843da1cc20ce438b22eb56cac20 # Parent 01d291cc9cacb39af6de32cc6e45997f9fbee6c0 imported patch toolchain/bash.patch diff -r 01d291cc9cac -r fa7b7514e1d8 bash/receipt --- a/bash/receipt Thu Jan 27 00:20:49 2011 +0100 +++ b/bash/receipt Thu Jan 27 00:20:49 2011 +0100 @@ -5,28 +5,35 @@ CATEGORY="system-tools" SHORT_DESC="The GNU bourne SHell." MAINTAINER="pankso@slitaz.org" -DEPENDS="ncurses" +DEPENDS="readline" +BUILD_DEPENDS="readline bison" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.gnu.org/software/bash/" WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" +# Rules to compile & install the temporary toolchain. +cook_tmp_toolchain() +{ + # Patch and then build. + cd $src + patch -Np1 -i ../stuff/bash-4.1-fixes-3.patch + ./configure --without-bash-malloc && + make && make install +} + # Rules to configure and make the package. compile_rules() { # Patch and then build. cd $src - - [ -f done.bash-4.1-fixes-3.patch ] || - patch -Np1 -i ../stuff/bash-4.1-fixes-3.patch - touch done.bash-4.1-fixes-3.patch - ./configure --prefix=/usr --bindir=/bin \ - --enable-history --enable-alias \ - --disable-nls --without-bash-malloc \ - --disable-help-builtin \ - --infodir=/usr/share/info --mandir=/usr/share/man \ - $CONFIGURE_ARGS && + patch -Np1 -i ../stuff/bash-4.1-fixes-3.patch + ./configure --bindir=/bin \ + --enable-history --enable-alias \ + --disable-nls --without-bash-malloc \ + --disable-help-builtin --with-installed-readline && make && - make DESTDIR=$PWD/_pkg install + # Bash doesn't care about DESTDIR in environnment variable. + make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg.