Files
nixpkgs/pkgs/by-name/ba/bashdb/bash-5-or-greater.patch
06kellyjac bdfaac30f2 bashdb: 5.0-1.1.2 -> 5.2-1.1.2-unstable-2025-06-07
Update and fix build for newer bash releases.
2025-09-03 13:49:23 +01:00

22 lines
665 B
Diff

diff --git a/configure.ac b/configure.ac
index cf96d6f..3a621bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -102,13 +102,13 @@ bash_version=`$SH_PROG --version`
[bash_major=`$SH_PROG -c 'echo ${BASH_VERSINFO[0]}'`]
[bash_minor=`$SH_PROG -c 'echo ${BASH_VERSINFO[1]}'`]
bash_5_or_greater=no
-case "${bash_major}.${bash_minor}" in
- 'OK_BASH_VERS' | '5.0' | '5.1')
+case "${bash_major}" in
+ '5')
bash_5_or_greater=yes
;;
*)
AC_MSG_WARN([You have Bash $bash_version installed.])
- AC_MSG_ERROR([This package is only known to work with Bash 5.0 or 5.1])
+ AC_MSG_ERROR([This package is only known to work with Bash 5])
;;
esac