* ERROR: dev-libs/openssl-0.9.8z_p8 failed (depend phase): * External commands disallowed during metadata regen: tr [1-9] [a-i] * * Call stack: * isolated-functions.lib, line 345: Called source '/home/mgorny/tmp/gentoo/dev-libs/openssl/openssl-0.9.8z_p8.ebuild' * openssl-0.9.8z_p8.ebuild, line 10: Called command_not_found_handle 'tr' '[1-9]' '[a-i]' * ebuild-daemon.bash, line 383: Called die This is forbidden by the PMS and breaks secured metadata regen. Please fix *urgently*.
mgorny: does this pass your muster? - PLEVEL=$(echo "${PV##*_p}" | tr '[1-9]' '[a-i]') + PLEVEL_NUM=${PV##*_p} + PLEVEL_ORD=$((PLEVEL_NUM + 96)) + PLEVEL=$(printf "\\$(printf '%03o' $PLEVEL_ORD)")
printf is a built-in, so I don't see why not. However, I wouldn't want to try to figure this out, so maybe it'd be better to just hardcode the correct suffix.
[master afff3103d8b8] dev-libs/openssl: bug 629224: fix global tr. Date: Mon Aug 28 12:08:03 2017 -0700 1 file changed, 3 insertions(+), 2 deletions(-)