Look at https://forums.gentoo.org/viewtopic-t-1020080-highlight-.html. I have specified a custom environment in /etc/portage/package.env/ and customized the variables FEATURES and CXXFLAGS. When using emerge --info valgrind it lists CXXFLAGS but not FEATURES although /var/db/pkg/dev-util/valgrind-3.10.1/FEATURES exists and contains the feature. valgrind is compiled with the feature so only emerge --info does not include this output.
I have also noticed this. I compile sys-libs/glibc with custom env settings through /etc/portage/package.env: $ fgrep glibc /etc/portage/package.env sys-libs/glibc debugsyms.conf $ cat /etc/portage/env/debugsyms.conf FEATURES="${FEATURES} splitdebug compressdebug -nostrip" CFLAGS="${CFLAGS} -ggdb" CXXFLAGS="${CXXFLAGS} -ggdb" The package is indeed built with the specified features: $ cat /var/db/pkg/sys-libs/glibc-2.28-r6/FEATURES assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr (note "splitdebug" is present) However, emerge --info sys-libs/glibc shows the wrong information: $ emerge --info sys-libs/glibc | egrep ^FEATURES= FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" emerge --info should look at the actual way the package was built. This will hamper debugging efforts for bug reports, and it also confuses packages such as valgrind.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=58fe19ffa3971e6767240392a8f6951899c412bb commit 58fe19ffa3971e6767240392a8f6951899c412bb Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-04-21 01:01:05 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-04-21 01:02:01 +0000 emerge --info: show per-package FEATURES (bug 553224) Bug: https://bugs.gentoo.org/553224 Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/_emerge/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eca0a8648ae7cee5c10081224432e15bc31f05ba commit eca0a8648ae7cee5c10081224432e15bc31f05ba Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-04-26 02:53:25 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-04-26 03:00:38 +0000 sys-apps/portage: version bump to 2.3.65 #478544 fix duplicate repo warning triggered by PORTDIR #553224 emerge --info per-package FEATURES #684232 don't set permissions on /dev/null emerge.log symlink Bug: https://bugs.gentoo.org/683434 Bug: https://bugs.gentoo.org/478544 Bug: https://bugs.gentoo.org/553224 Bug: https://bugs.gentoo.org/684232 Package-Manager: Portage-2.3.65, Repoman-2.3.12 Signed-off-by: Zac Medico <zmedico@gentoo.org> sys-apps/portage/Manifest | 1 + sys-apps/portage/portage-2.3.65.ebuild | 259 +++++++++++++++++++++++++++++++++ 2 files changed, 260 insertions(+)