Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 629224 - dev-libs/openssl-0.9.8z_p8: tr called in global scope
Summary: dev-libs/openssl-0.9.8z_p8: tr called in global scope
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal critical (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 629222
  Show dependency tree
 
Reported: 2017-08-28 17:47 UTC by Michał Górny
Modified: 2017-08-28 19:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-28 17:47:23 UTC
* 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*.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-08-28 18:34:43 UTC
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)")
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-28 18:37:53 UTC
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.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-08-28 19:08:47 UTC
[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(-)