The ebuild could have "$(use_with magic libmagic)" and a "magic" USE flag to indicate that we don't want to link to libmagic if it isn't used. We'd like this so we don't have to ship this library when that code isn't used. Reproducible: Always
At the moment, we don't even declare this dependency at all. % grep libmagic /var/db/pkg/sys-apps/util-linux-2.36.2/NEEDED.ELF.2 X86_64;/bin/more;;;libmagic.so.1,libtinfow.so.6,libc.so.6;x86_64
/bin/more only gets built when USE="ncurses", so we will need to account for that.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79be9dd8ddb824acea3e21064089bb0604532c87 commit 79be9dd8ddb824acea3e21064089bb0604532c87 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2021-04-19 20:34:55 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2021-04-19 20:35:41 +0000 sys-apps/util-linux: USE="ncurses" requires sys-apps/file for /bin/more Closes: https://bugs.gentoo.org/784188 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> sys-apps/util-linux/util-linux-2.35.2.ebuild | 5 ++++- sys-apps/util-linux/util-linux-2.36.2.ebuild | 5 ++++- sys-apps/util-linux/util-linux-2.37_rc1.ebuild | 5 ++++- sys-apps/util-linux/util-linux-9999.ebuild | 5 ++++- 4 files changed, 16 insertions(+), 4 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0f1dbc9f9a07513ae37252840fccc77cf30a217 commit c0f1dbc9f9a07513ae37252840fccc77cf30a217 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2021-04-19 20:56:26 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2021-04-19 20:56:39 +0000 sys-apps/util-linux: Added "magic" USE flag for sys-apps/file dep Bug: https://bugs.gentoo.org/784188 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> sys-apps/util-linux/util-linux-2.35.2.ebuild | 5 +++-- sys-apps/util-linux/util-linux-2.36.2.ebuild | 5 +++-- sys-apps/util-linux/util-linux-2.37_rc1.ebuild | 5 +++-- sys-apps/util-linux/util-linux-9999.ebuild | 5 +++-- 4 files changed, 12 insertions(+), 8 deletions(-)