Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951534 - sys-libs/libnvme unconditionally depends upon swig
Summary: sys-libs/libnvme unconditionally depends upon swig
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-18 10:58 UTC by C.Blake
Modified: 2025-04-21 08:05 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 C.Blake 2025-03-18 10:58:48 UTC
As per the README of the pakcage, swig is only used for python bindings and as per the ebuild this only happens with the USE=python flag.

So, the 1-line patch to fix the problem in sys-libs/libnvme-1.12.ebuild may be simpler to say than something more elaborate:

 BDEPEND="
-       dev-lang/swig
+       python? ( dev-lang/swig )
 "

Reproducible: Always

Steps to Reproduce:
1. emerge --unmerge dev-lang/swig
2. emerge -pt sys-libs/libnvme
3. read the report



The version control on the ebuilds says this was introduced as soon as BDEPEND ever was in libnvme-1.2-r1.ebuild in Nov 2022 which had a python USE flag.

So, basically it was always wrong (not that it's very consequential, but it would be the only reason my system would have dev-lang/swig installed and dependency management is job number one of any package system...).
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-21 07:58:42 UTC
I was going to say maybe it was because of https://github.com/linux-nvme/libnvme/commit/8cb4d2941527832bf04639a83a55cec51d353507 but that was fixed in 1.0!

> Steps to Reproduce:
> 1. emerge --unmerge dev-lang/swig
> 2. emerge -pt sys-libs/libnvme

emerge -pvc dev-lang/swig is a safe way of doing that ;)

Thanks for the report.
Comment 2 Larry the Git Cow gentoo-dev 2025-04-21 08:05:21 UTC
The bug has been closed via the following commit(s):

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

commit ebe0a41b812ca8a272011d6c772bdee7917bad35
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-21 08:02:03 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-21 08:04:27 +0000

    sys-libs/libnvme: conditionalise dev-lang/swig dependency
    
    ... and revbump to allow people to depclean swig, as I suspect this
    is the only reason many have it installed.
    
    Bug: https://bugs.gentoo.org/878935
    Closes: https://bugs.gentoo.org/951534
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-libs/libnvme/{libnvme-1.11.1.ebuild => libnvme-1.11.1-r1.ebuild} | 2 +-
 sys-libs/libnvme/{libnvme-1.12.ebuild => libnvme-1.12-r1.ebuild}     | 2 +-
 sys-libs/libnvme/{libnvme-1.13.ebuild => libnvme-1.13-r1.ebuild}     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)