I've found that git-r3 causes fail in unpack phase if PN starts with digit. See `emerge '=389-ds-base-9999'` for example. And the same for any 9999 packages of PN starting with digit. Reproducible: Always
Created attachment 449926 [details] build.log of 389-ds-base
The "bad substitution" in the eclass is "${!livevar}" if livevar starts with a digit. Actually, it seems that bash (and other shells) do not allow variables starting with digits at all.
commit 3d3b76c457908962929f3c636cee8c5b6579b578 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: Sat Oct 22 23:03:08 2016 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: Sat Oct 22 23:05:08 2016 git-r3.eclass: Fix var names for packages starting with digits, #596912 Fix live variable names for packages whose names start with digits. Since variable names can not start with digits in bash, just prepend an underscore to them.