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...).
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.
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(-)