Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 154191

Summary: net-misc/openvpn built with USE="iproute2" and iprouted built with USE="minimal" doesn't work
Product: Gentoo Linux Reporter: Martin Scherer <martin_konrad_scherer>
Component: New packagesAssignee: Roy Marples (RETIRED) <uberlord>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Martin Scherer 2006-11-05 15:14:29 UTC
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: 

a minimal iproute2 does not provide the /sbin/ip utility which is expected to
exist if you build openvpn with USE="iproute2"

the result is that you can not use any tunnels etc.

please fix it (solution might be the same as in #14001)

Reproducible: Always

Steps to Reproduce:
1. USE="iproute2 minimal" emerge iproute2 openvpn
2. /etc/init.d/openvpn start complains about missing /sbin/ip utility




Expected Results:  
-incompatible useflag matrix should be disallowed
-working configuration
Comment 1 Martin Scherer 2006-11-05 15:24:41 UTC
pkg_setup() {
    if use iproute2; then
        if built_with_use sys-apps/iproute2 minimal; then
            die "If you want iproute2 support, you need to build iproute2
            without USE=\"minimal\"!\nTo build a minimal openvpn with iproute2
            support put the following line into your /etc/portage/package.use:\n
            sys-apps/iproute2 -minimal"
        fi
    fi
}

this should disable merging a non working version of openvpn!
Comment 2 Roy Marples (RETIRED) gentoo-dev 2006-11-06 02:25:59 UTC
Fixed, thanks for the report