Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 643722 - sys-apps/iproute2-4.14.1-r2 USE=minimal completely ineffective
Summary: sys-apps/iproute2-4.14.1-r2 USE=minimal completely ineffective
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: 2018-01-06 17:11 UTC by Another Mortal
Modified: 2018-01-07 22:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
config.mk example with USE=minimal (when both libelf and libmnl are installed) (config.mk,1.12 KB, text/x-makefile)
2018-01-06 17:11 UTC, Another Mortal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Another Mortal 2018-01-06 17:11:38 UTC
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...
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2018-01-07 21:56:39 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2018-01-07 22:39:43 UTC
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(+)