Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 552368 - emerge does not support anymore VAR="${VAR} foo"
Summary: emerge does not support anymore VAR="${VAR} foo"
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-17 08:35 UTC by Agostino Sarubbo
Modified: 2015-06-17 14:19 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 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.