Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 451320 - net-misc/openvpn: proposal to use relative path instead of hardcoded paths for ifconfig/ip/netstat/route
Summary: net-misc/openvpn: proposal to use relative path instead of hardcoded paths fo...
Status: RESOLVED DUPLICATE of bug 407195
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Dirkjan Ochtman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-10 22:41 UTC by Sergei Trofimovich (RETIRED)
Modified: 2013-01-11 08:22 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2013-01-10 22:41:26 UTC
Recent ifconfig move from /sbin/ifconfig to /bin/ifconfig
broke openvpn binary packages on some of my systems
(had to rebuild it after fugured out what's happened).

To be a bit more future-proof i suggest using relative
tool names instead of full pathnames:

Index: openvpn-2.2.2.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/openvpn/openvpn-2.2.2.ebuild,v
retrieving revision 1.16
diff -u -u -r1.16 openvpn-2.2.2.ebuild
--- openvpn-2.2.2.ebuild        6 Jan 2013 20:12:40 -0000       1.16
+++ openvpn-2.2.2.ebuild        10 Jan 2013 22:35:59 -0000
@@ -41,13 +41,13 @@
        # -maltivec is enabled implicitly by -mcpu and similar flags.
        (use ppc || use ppc64) && filter-flags -maltivec && append-flags -mno-altivec
 
-       local myconf=""
+       local myconf="--with-ifconfig-path=ifconfig --with-iproute-path=ip --with-route-path=route --with-netstat-path=netstat"
 
        if use minimal ; then
                myconf="${myconf} --disable-plugins"
                myconf="${myconf} --disable-pkcs11"
        else
-               myconf="$(use_enable pkcs11)"
+               myconf="${myconf} $(use_enable pkcs11)"
        fi
 
        econf ${myconf} \

(same for -9999 ebuild).

Thanks!
Comment 1 Dirkjan Ochtman (RETIRED) gentoo-dev 2013-01-11 08:22:06 UTC
Please read up on bug 407195 first, then propose this there.

*** This bug has been marked as a duplicate of bug 407195 ***