Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 553224 - emerge --info for a single package should list FEATURES
Summary: emerge --info for a single package should list FEATURES
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 683434
  Show dependency tree
 
Reported: 2015-06-25 12:00 UTC by barade.barade
Modified: 2019-06-23 18:28 UTC (History)
1 user (show)

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 barade.barade 2015-06-25 12:00:01 UTC
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.
Comment 1 Israel G. Lugo 2019-04-20 19:34:51 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2019-04-21 01:02:20 UTC
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(-)
Comment 3 Larry the Git Cow gentoo-dev 2019-04-26 03:00:45 UTC
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(+)