From 66dbe51a6bc14f0cf948c8641e18aa6c3adf1982 Mon Sep 17 00:00:00 2001 From: Mohammed Anas Date: Mon, 20 Nov 2023 12:50:14 +0000 Subject: [PATCH 1/2] chroot-bash: update to 5.2.21. --- srcpkgs/chroot-bash/template | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/srcpkgs/chroot-bash/template b/srcpkgs/chroot-bash/template index da448e2a57f81..84b68005ff204 100644 --- a/srcpkgs/chroot-bash/template +++ b/srcpkgs/chroot-bash/template @@ -1,10 +1,7 @@ # Template file for 'chroot-bash' pkgname=chroot-bash -version=5.1.004 +version=5.2.21 revision=1 -_bash_distver=${version%.*} -_bash_patchlevel=${version##*.} -_patchprefix="bash${_bash_distver/./}" build_style=gnu-configure # need 'bash_cv_termcap_lib=gnutermcap' in order to force bash to use the # bundled termcap library when bootstrapping from source on a foreign system @@ -13,37 +10,15 @@ configure_args="--without-bash-malloc --without-curses short_desc="GNU Bourne Again Shell -- for xbps-src use" maintainer="Enno Boland " license="GPL-3.0-or-later" -homepage="http://www.gnu.org/software/bash/bash.html" -distfiles="${GNU_SITE}/bash/bash-${_bash_distver}.tar.gz" +homepage="https://www.gnu.org/software/bash/bash.html" +distfiles="${GNU_SITE}/bash/bash-${version}.tar.gz" +checksum=c8e31bdc59b69aaffc5b36509905ba3e5cbb12747091d27b4b977f078560d5b8 repository=bootstrap -_url="${GNU_SITE}/bash/bash-${_bash_distver}-patches" -for _p in $(seq -w 001 ${_bash_patchlevel}); do - distfiles+=" ${_url}/${_patchprefix}-${_p}" - skip_extraction+=" ${_patchprefix}-${_p}" -done -unset _url -unset _p - -checksum="cc012bc860406dcf42f64431bcd3d2fa7560c02915a601aba9cd597a39329baa - ebb07b3dbadd98598f078125d0ae0d699295978a5cdaef6282fe19adef45b5fa - 15ea6121a801e48e658ceee712ea9b88d4ded022046a6147550790caf04f5dbe - 22f2cc262f056b22966281babf4b0a2f84cb7dd2223422e5dcd013c3dcbab6b1 - 9aaeb65664ef0d28c0067e47ba5652b518298b3b92d33327d84b98b28d873c86" - bootstrap=yes provides="bash-${version}_${revision}" conflicts="bash>=0 dash>=0 busybox>=0 loksh>=0 mksh>=0 oksh>=0 yash>=0" -post_patch() { - local _p - cd ${wrksrc} - for _p in $(seq -w 001 ${_bash_patchlevel}); do - msg_normal " Applying patch ${_patchprefix}-${_p}.\n" - patch -sNp0 -i ${XBPS_SRCDISTDIR}/chroot-bash-$version/${_patchprefix}-${_p} - done -} - post_install() { ln -s bash ${DESTDIR}/usr/bin/sh rm -rf ${DESTDIR}/usr/{lib,share,include} ${DESTDIR}/usr/lib/pkgconfig/bash.pc From 50ecda1d23d4557c8a90f995466c97a1a85d2899 Mon Sep 17 00:00:00 2001 From: Mohammed Anas Date: Thu, 16 Nov 2023 22:33:49 +0000 Subject: [PATCH 2/2] bash: update to 5.2.21. --- srcpkgs/bash/template | 42 +++--------------------------------------- 1 file changed, 3 insertions(+), 39 deletions(-) diff --git a/srcpkgs/bash/template b/srcpkgs/bash/template index b7057db94dbee..a977c3a7d5c0a 100644 --- a/srcpkgs/bash/template +++ b/srcpkgs/bash/template @@ -1,10 +1,7 @@ # Template file for 'bash' pkgname=bash -version=5.2.015 +version=5.2.21 revision=1 -_bash_distver=${version%.*} -_bash_patchlevel=${version##*.} -_patchprefix="bash${_bash_distver/./}" build_style=gnu-configure configure_args="--without-bash-malloc --with-curses --without-installed-readline" make_build_args="TERMCAP_LIB=${XBPS_CROSS_BASE}/usr/lib/libncursesw.a" @@ -16,32 +13,8 @@ short_desc="GNU Bourne Again Shell" maintainer="Enno Boland " license="GPL-3.0-or-later" homepage="https://www.gnu.org/software/bash/bash.html" -distfiles="${GNU_SITE}/bash/bash-${_bash_distver}.tar.gz" - -_url="${GNU_SITE}/bash/bash-${_bash_distver}-patches" -for _p in $(seq -w 001 $_bash_patchlevel); do - distfiles+=" ${_url}/${_patchprefix}-${_p}" - skip_extraction+=" ${_patchprefix}-${_p}" -done -unset _url -unset _p - -checksum="a139c166df7ff4471c5e0733051642ee5556c1cc8a4a78f145583c5c81ab32fb - f42f2fee923bc2209f406a1892772121c467f44533bedfe00a176139da5d310a - 45cc5e1b876550eee96f95bffb36c41b6cb7c07d33f671db5634405cd00fd7b8 - 6a090cdbd334306fceacd0e4a1b9e0b0678efdbbdedbd1f5842035990c8abaff - 38827724bba908cf5721bd8d4e595d80f02c05c35f3dd7dbc4cd3c5678a42512 - ece0eb544368b3b4359fb8464caa9d89c7a6743c8ed070be1c7d599c3675d357 - d1e0566a257d149a0d99d450ce2885123f9995e9c01d0a5ef6df7044a72a468c - 2500a3fc21cb08133f06648a017cebfa27f30ea19c8cbe8dfefdf16227cfd490 - 6b4bd92fd0099d1bab436b941875e99e0cb3c320997587182d6267af1844b1e8 - f95a817882eaeb0cb78bce82859a86bbb297a308ced730ebe449cd504211d3cd - c7705e029f752507310ecd7270aef437e8043a9959e4d0c6065a82517996c1cd - 831b5f25bf3e88625f3ab315043be7498907c551f86041fa3b914123d79eb6f4 - 2fb107ce1fb8e93f36997c8b0b2743fc1ca98a454c7cc5a3fcabec533f67d42c - 094b4fd81bc488a26febba5d799689b64d52a5505b63e8ee854f48d356bc7ce6 - 3ef9246f2906ef1e487a0a3f4c647ae1c289cbd8459caa7db5ce118ef136e624 - ef73905169db67399a728e238a9413e0d689462cb9b72ab17a05dba51221358a" +distfiles="${GNU_SITE}/bash/bash-${version}.tar.gz" +checksum=c8e31bdc59b69aaffc5b36509905ba3e5cbb12747091d27b4b977f078560d5b8 make_dirs="/etc/bash/bashrc.d 755 root root" conflicts="chroot-bash>=0" @@ -53,15 +26,6 @@ alternatives=" CFLAGS="-DNON_INTERACTIVE_LOGIN_SHELLS -DSYS_BASHRC='\"/etc/bash/bashrc\"'" -post_patch() { - local _p - cd ${wrksrc} - for _p in $(seq -w 001 ${_bash_patchlevel}); do - msg_normal " Applying patch ${_patchprefix}-${_p}.\n" - patch -sNp0 -i ${XBPS_SRCDISTDIR}/bash-$version/${_patchprefix}-${_p} - done -} - post_install() { rm -r ${DESTDIR}/usr/share/doc ln -s bash ${DESTDIR}/usr/bin/rbash