summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentnl@gentoo.org>2017-05-22 03:44:25 +1200
committerKent Fredric <kentnl@gentoo.org>2017-05-22 03:44:50 +1200
commit808ab1ee48594f060a638cce673bccbcf620a9b7 (patch)
treedd351d9e64374bd479b8111401924bcd8082fd70 /dev-lang
parentsys-kernel/gentoo-sources: Linu patch 4.11.2 (diff)
downloadgentoo-808ab1ee48594f060a638cce673bccbcf620a9b7.tar.gz
gentoo-808ab1ee48594f060a638cce673bccbcf620a9b7.tar.bz2
gentoo-808ab1ee48594f060a638cce673bccbcf620a9b7.zip
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
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/perl/perl-5.26.9999.ebuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev-lang/perl/perl-5.26.9999.ebuild b/dev-lang/perl/perl-5.26.9999.ebuild
index 9c159ec94329..81ecf305054f 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%.*}"