commit:     808ab1ee48594f060a638cce673bccbcf620a9b7
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Sun May 21 15:44:25 2017 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Sun May 21 15:44:50 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=808ab1ee

dev-lang/perl: Fix variable in arithmetic expansion on older bash

Older bashes seem to think:

 $(( "26" % 2 ))

Is

  $(( ""26" % 2 " ))

Or something, and barfs.

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 dev-lang/perl/perl-5.26.9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lang/perl/perl-5.26.9999.ebuild 
b/dev-lang/perl/perl-5.26.9999.ebuild
index 9c159ec9432..81ecf305054 100644
--- a/dev-lang/perl/perl-5.26.9999.ebuild
+++ b/dev-lang/perl/perl-5.26.9999.ebuild
@@ -25,7 +25,7 @@ fi
 SHORT_PV="${DIST_VERSION%.*}"
 # Even numbered major versions are ABI intercompatible
 # Odd numbered major versions are not
-if [[ $(( "${SHORT_PV#*.}" % 2 )) == 1 ]]; then
+if [[ $(( ${SHORT_PV#*.} % 2 )) == 1 ]]; then
        SUBSLOT="${DIST_VERSION%-RC*}"
 else
        SUBSLOT="${DIST_VERSION%.*}"

Reply via email to