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

Bug 552368

Summary: emerge does not support anymore VAR="${VAR} foo"
Product: Portage Development Reporter: Agostino Sarubbo <ago>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Agostino Sarubbo gentoo-dev 2015-06-17 08:35:04 UTC
This is my LDFLAGS variable:

ago@willoughby ~ $ emerge --info | grep LDFLAGS
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,-z,lazy"

If I want to add something temporary I use

LDFLAGS="${LDFLAGS} foo" emerge bar which give the result:

ago@willoughby ~ $ LDFLAGS="${LDFLAGS} foo" emerge --info | grep LDFLAGS
LDFLAGS=" foo"


In the past it worked so I had my LDFLAGS plus foo.

Is this change intentional?
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-06-17 14:19:17 UTC
(In reply to Agostino Sarubbo from comment #0)
> ago@willoughby ~ $ LDFLAGS="${LDFLAGS} foo" emerge --info

The LDFLAGS="${LDFLAGS} foo" substitution is not done by emerge - it's done by your shell before it spawns emerge.

So this only works if you export your LDFLAGS in bashrc or profile or env.d or manually in the current shell process.

Emerge has nothing to do with it.