Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] utilizing BASH_COMPAT to smooth upgrades
Date: Tue, 20 Oct 2015 18:55:28
Message-Id: 20151020185516.GJ3918@vapier.lan
1 On 16 Oct 2015 20:42, Ulrich Mueller wrote:
2 > EAPI 6: Bash version is 4.2.
3
4 do we want to mandate the BASH_COMPAT aspect in PMS ?
5 or at least make into a recommendation ?
6
7 https://bugs.gentoo.org/431340#c20
8 local maj=4 min=2
9 if ([[ ${BASH_VERSINFO[0]} -lt ${maj} ]] ||
10 [[ ${BASH_VERSINFO[0]} -eq ${maj} && ${BASH_VERSINFO[1]} -lt ${min ]]) ; then
11 die ">=bash-${maj}.${min} is required"
12 fi
13 BASH_COMPAT="${maj}.${min}"
14 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] utilizing BASH_COMPAT to smooth upgrades Ulrich Mueller <ulm@g.o>