Created attachment 513540 [details] config.mk example with USE=minimal (when both libelf and libmnl are installed) Note that configure in this package is not quite auto-tools compliant. The generated config.mk will include CFLAGS and LDLIBS for both libelf and libmnl, if those libraries happen to be installed. See the attached config.mk for an example... The expected USE semantics should _prevent_ this from happening. One option may be to fix up configure by including this snippet ------- if use minimal; then sed -i 's/^check_\(elf\|mnl\)$/echo n/' configure fi ------- *before* the "default" action in src_configure...
Thanks for pointing this out, seems as fallout from upstream configure changes. That solution is not going to be enough, as I see the same issue also affects SELinux support.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=041fdf910f7dda041d1f01f6538fc7550ad830b7 commit 041fdf910f7dda041d1f01f6538fc7550ad830b7 Author: Robin H. Johnson <robbat2@gentoo.org> AuthorDate: 2018-01-07 22:36:48 +0000 Commit: Robin H. Johnson <robbat2@gentoo.org> CommitDate: 2018-01-07 22:39:35 +0000 sys-apps/iproute2: fix libmnl/libelf/libselinux automagic. libmnl, libelf, libselinux were being linked automagically. Fix by improving Makefiles. Tested on: - USE='-minimal -iptables' - USE='-minimal iptables' - USE=' minimal -iptables' - USE=' minimal iptables' (reported by broken per bug) Closes: https://bugs.gentoo.org/643722 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Package-Manager: Portage-2.3.16, Repoman-2.3.6 .../files/iproute2-4.14.1-configure-nomagic.patch | 196 +++++++++++++++++++++ sys-apps/iproute2/iproute2-4.14.1-r3.ebuild | 152 ++++++++++++++++ 2 files changed, 348 insertions(+)