Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 820320 - sys-apps/nvme-cli: Missing dependency on sys-libs/libhugetlbfs
Summary: sys-apps/nvme-cli: Missing dependency on sys-libs/libhugetlbfs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-26 07:10 UTC by Stanislav Ochotnicky
Modified: 2021-10-26 07:33 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 Stanislav Ochotnicky 2021-10-26 07:10:26 UTC
I noticed a deprecation of libhugetlbfs here: https://bugs.gentoo.org/806079

After removing libhugetlbfs, nvme-cli had to be rebuilt due. Built then failed with:
nvme.c:41:10: fatal error: hugetlbfs.h: No such file or directory
   41 | #include <hugetlbfs.h>
      |          ^~~~~~~~~~~~~

So it looks to me like sys-apps/nvme-cli has a missing declaration of dependency on libhugetlbfs. 

Reproducible: Always

Steps to Reproduce:
1. Make sure you don't have libhugetlbfs installed
2. Try emerging nvme-cli
Actual Results:  
Build failure


For now the fix is easy - just emerge libhugetlbfs, of course if it does get removed as per https://bugs.gentoo.org/806079 things might get messier
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-26 07:13:04 UTC
Looks optional in the new Meson port: https://github.com/linux-nvme/nvme-cli/blob/79bdcbd0935bd531716aff97e065a9fbe4f16278/meson.build#L37.
Comment 2 Larry the Git Cow gentoo-dev 2021-10-26 07:33:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ec2e30b2f1acf44e1b2c427b8a31f3a77f538e5

commit 3ec2e30b2f1acf44e1b2c427b8a31f3a77f538e5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-10-26 07:32:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-26 07:33:25 +0000

    sys-apps/nvme-cli: add 1.15
    
    Closes: https://bugs.gentoo.org/820320
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/riscv/package.use.mask   |  4 +++
 sys-apps/nvme-cli/Manifest             |  1 +
 sys-apps/nvme-cli/metadata.xml         |  4 ++-
 sys-apps/nvme-cli/nvme-cli-1.15.ebuild | 50 ++++++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+), 1 deletion(-)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-26 07:33:48 UTC
Thanks for the report!