Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 678466

Summary: Portage configuration files won't support bash string ops like ${VAR//SS/RS}
Product: Portage Development Reporter: Necktwi Ozfguah <necktwi>
Component: Core - ConfigurationAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Necktwi Ozfguah 2019-02-21 07:31:44 UTC
Necktwi$ cat /etc/portage/env/O0
CFLAGS=${CFLAGS//-O2/-O0}
CXXFLAGS=$CFLAGS

Necktwi$ sudo emerge -av some_package
These are the packages that would be merged, in order:
Calculating dependencies -"/etc/portage/env/O0", line 2: unexpected EOF while looking for matching `}'
Comment 1 Georgy Yakovlev archtester gentoo-dev 2019-02-27 20:22:28 UTC
you need to use bachrc env files, not package.env for that to work.

place contents of env/O0 file to /etc/portage/env/some-category/some_package

it should work from there.


https://dev.gentoo.org/~zmedico/portage/doc/ch01.html#config-bashrc-locations