Summary: | git-r3.eclass: _git-r3_env_setup(): Bad substitution for packages with PN starting with digit | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Vadim A. Misbakh-Soloviov (mva) <mva> |
Component: | Eclasses | Assignee: | Michał Górny <mgorny> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log of 389-ds-base |
Description
Vadim A. Misbakh-Soloviov (mva)
![]() 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. |