bash: update to patch level 007 (Bond, James Bond).

This commit is contained in:
Juan RP 2010-05-18 00:41:57 +02:00
parent 90e89e4553
commit d7618b0eec

View file

@ -1,10 +1,10 @@
# Template build file for 'bash'.
pkgname=bash
bash_patchlevel=005
bash_distver=4.1
version=${bash_distver}.${bash_patchlevel}
wrksrc=${pkgname}-${bash_distver}
distfiles="http://ftp.gnu.org/gnu/bash/bash-${bash_distver}.tar.gz"
_bash_patchlevel=007
_bash_distver=4.1
version=${_bash_distver}.${_bash_patchlevel}
wrksrc=${pkgname}-${_bash_distver}
distfiles="http://ftp.gnu.org/gnu/bash/bash-${_bash_distver}.tar.gz"
build_style=gnu_configure
configure_args="--without-bash-malloc --with-curses --bindir=/bin
--enable-array-variables --enable-brace-expansion --enable-casemod-attributes
@ -34,24 +34,24 @@ base_chroot=yes
register_shell="/bin/bash"
Add_dependency run glibc
Add_dependency build ncurses
Add_dependency run ncurses-libs
Add_dependency run coreutils
Add_dependency build ncurses-devel
pre_configure()
{
local url="http://ftp.gnu.org/gnu/bash/bash-4.1-patches"
local url="http://ftp.gnu.org/gnu/bash/bash-${_bash_distver}-patches"
if [ "${bash_patchlevel}" -gt 000 ]; then
if [ "${_bash_patchlevel}" -gt 000 ]; then
cd ${XBPS_SRCDISTDIR} || return 1
for p in $(seq -w 001 ${bash_patchlevel}); do
for p in $(seq -w 001 ${_bash_patchlevel}); do
[ -f ${XBPS_SRCDISTDIR}/bash41-${p} ] && continue
$XBPS_FETCH_CMD ${url}/bash41-$p
done
fi
cd ${wrksrc}
for p in $(seq -w 001 ${bash_patchlevel}); do
for p in $(seq -w 001 ${_bash_patchlevel}); do
patch -s -Np0 -i ${XBPS_SRCDISTDIR}/bash41-${p} && \
msg_normal "Applying patch bash40-$p."
msg_normal "Applying patch bash41-$p."
done
}