commit:     4f03a72e120646885097d428aa87afb1e6de1da7
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jan  9 10:21:08 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jan  9 10:21:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f03a72e

app-shells/bashdb: avoid BASH_* var name

It gets stripped from the environment.

Closes: https://bugs.gentoo.org/947766
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-shells/bashdb/bashdb-5.1_pre20240617.ebuild | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/app-shells/bashdb/bashdb-5.1_pre20240617.ebuild 
b/app-shells/bashdb/bashdb-5.1_pre20240617.ebuild
index 2468ebc8a2a9..299fe8ca9828 100644
--- a/app-shells/bashdb/bashdb-5.1_pre20240617.ebuild
+++ b/app-shells/bashdb/bashdb-5.1_pre20240617.ebuild
@@ -4,12 +4,12 @@
 EAPI=8
 
 # Set to 1 for older versions of bash (that are hence slotted)
-BASH_IS_SLOTTED=1
+SLOTTED_BASH=1
 
-if [[ ${BASH_IS_SLOTTED} == 1 ]] ; then
-       BASH_SLOT="${PV:0:3}"
+if [[ ${SLOTTED_BASH} == 1 ]] ; then
+       MANGLED_PV="${PV:0:3}"
 else
-       BASH_SLOT="0"
+       MANGLED_PV="0"
 fi
 MY_P="${PN}-${PV:0:3}-${PV:4}"
 DESCRIPTION="bash source code debugging"
@@ -36,7 +36,7 @@ LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
 
-DEPEND=">=app-shells/bash-${BASH_SLOT}:${BASH_SLOT}"
+DEPEND=">=app-shells/bash-${MANGLED_PV}:${MANGLED_PV}"
 RDEPEND="${DEPEND}"
 
 # test-bug-loc fails with formatting differences
@@ -53,8 +53,8 @@ src_prepare() {
 
 src_configure() {
        local bash_suffix
-       if [[ ${BASH_IS_SLOTTED} == 1 ]] ; then
-               bash_suffix="-${BASH_SLOT}"
+       if [[ ${SLOTTED_BASH} == 1 ]] ; then
+               bash_suffix="-${MANGLED_PV}"
        fi
 
        # This path matches the bash sources.  If we ever change bash,

Reply via email to