From 2480028d65ac1e14e753664150c647bf9b3b7325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sat, 11 May 2024 17:22:47 -0300 Subject: [PATCH] bash: define SSH_SOURCE_BASHRC This makes bash agree with its documentation at https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html Bash attempts to determine when it is being run with its standard input connected to a network connection, as when executed by the historical remote shell daemon, usually rshd, or the secure shell daemon sshd. If Bash determines it is being run non-interactively in this fashion, it reads and executes commands from ~/.bashrc, if that file exists and is readable. [...] Notes: - Disabled by upstream in 2.05a (2001), manual never changed - This is enabled in Debian, Fedora, Gentoo, ... --- srcpkgs/bash/template | 4 ++-- srcpkgs/bash/update | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 srcpkgs/bash/update diff --git a/srcpkgs/bash/template b/srcpkgs/bash/template index a977c3a7d5c0af..03a5652b21e9e5 100644 --- a/srcpkgs/bash/template +++ b/srcpkgs/bash/template @@ -1,7 +1,7 @@ # Template file for 'bash' pkgname=bash version=5.2.21 -revision=1 +revision=2 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" @@ -24,7 +24,7 @@ alternatives=" sh:sh:/usr/bin/bash sh:sh.1:/usr/share/man/man1/bash.1" -CFLAGS="-DNON_INTERACTIVE_LOGIN_SHELLS -DSYS_BASHRC='\"/etc/bash/bashrc\"'" +CFLAGS="-DSSH_SOURCE_BASHRC -DNON_INTERACTIVE_LOGIN_SHELLS -DSYS_BASHRC='\"/etc/bash/bashrc\"'" post_install() { rm -r ${DESTDIR}/usr/share/doc diff --git a/srcpkgs/bash/update b/srcpkgs/bash/update deleted file mode 100644 index 89e82249c5e3c2..00000000000000 --- a/srcpkgs/bash/update +++ /dev/null @@ -1,5 +0,0 @@ -site="http://git.savannah.gnu.org/cgit/bash.git/log/" -pattern="Bash-\K\d(\.\d)+( patch \d+|-testing)?" -version="$_bash_distver" -[ ! -z "$_bash_patchlevel" ] && version+=" patch $_bash_patchlevel" -ignore="*testing"