dev-libs/openssl: bug 629224: fix global tr.
authorRobin H. Johnson <robbat2@gentoo.org>
Mon, 28 Aug 2017 19:08:03 +0000 (12:08 -0700)
committerRobin H. Johnson <robbat2@gentoo.org>
Mon, 28 Aug 2017 19:08:38 +0000 (12:08 -0700)
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
dev-libs/openssl/openssl-0.9.8z_p8.ebuild

index cc1b39afb2cb42388c7ff8e66d029447c3a4ff57..f6a3c0025f10fc1cac7ec1a9cb20b0dc5baaf194 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 # this ebuild is only for the libcrypto.so.0.9.8 and libssl.so.0.9.8 SONAME for ABI compat
@@ -7,7 +7,8 @@ EAPI="5"
 
 inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
 
-PLEVEL=$(echo "${PV##*_p}" | tr '[1-9]' '[a-i]')
+#PLEVEL=$(printf "\\$(printf '%03o' $((${PV##*_p} + 96)))")
+PLEVEL='h' # _p8 -> tr '[1-9]' '[a-i]' -> 'h'
 MY_PV=${PV/_p*/${PLEVEL}}
 MY_P=${PN}-${MY_PV}
 S="${WORKDIR}/${MY_P}"