Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421519 - emerge --info does not show /etc/portage/env and /etc/portage/package.env modifications
Summary: emerge --info does not show /etc/portage/env and /etc/portage/package.env mod...
Status: RESOLVED DUPLICATE of bug 410069
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: 2012-06-17 03:38 UTC by David Carlos Manuelda
Modified: 2012-06-17 03:44 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 David Carlos Manuelda 2012-06-17 03:38:42 UTC
When having per package environment settings modifyers, emerge --info does not show info accordingly to modifyed settings.
To prove it:
Have for example:
/etc/portage/env/debug.conf
CFLAGS="-O2 -pipe -march=core2 -flto -ggdb"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-flto"
CXXFLAGS_x86="${CXXFLAGS}"
CFLAGS_x86="${CFLAGS}"
LDFLAGS_x86="${LDFLAGS}"
CFLAGS_x32="${CFLAGS_x86}"
FEATURES="${FEATURES} splitdebug"

/etc/portage/package.env
(...)
sys-libs/glibc debug.conf
(...)

emerge --info sys-libs/glibc | grep splitdebug
(nothing is outputted)
And
emerge --info sys-libs/glibc | grep CXXFLAGS
CXXFLAGS="-O2 -pipe -march=core2 -flto"
CXXFLAGS_x86="-O2 -pipe -march=core2 -flto"
CXXFLAGS="-pipe -march=core2 -O2 -fno-strict-aliasing"
(in which -ggdb is not appearing)

But there are other cases in which this is working, for example to disable LTO:
/etc/portage/env/nolto.conf 
CFLAGS="-O2 -pipe -march=core2"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common"
CXXFLAGS_x86="${CXXFLAGS}"
CFLAGS_x86="${CFLAGS}"
LDFLAGS_x86="${LDFLAGS}"
CFLAGS_x32="${CFLAGS_x86}"

/etc/portage/package.env 
sys-process/numactl nolto.conf

emerge --info sys-process/numactl | grep CXXFLAGS
CXXFLAGS="-O2 -pipe -march=core2 -flto"
CXXFLAGS_x86="-O2 -pipe -march=core2 -flto"
CXXFLAGS="-O2 -pipe -march=core2"
(note the last one without lto)
Comment 1 Zac Medico gentoo-dev 2012-06-17 03:44:55 UTC

*** This bug has been marked as a duplicate of bug 410069 ***