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

Bug 444444

Summary: net-misc/openvpn-2.2.2 with sys-apps/net-tools-1.60_p20120127084908 - /sbin/ifconfig /sbin/route have moved to /bin
Product: Gentoo Linux Reporter: Permjacov E. A. <permeakra>
Component: [OLD] UnspecifiedAssignee: Dirkjan Ochtman (RETIRED) <djc>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alex, cedk, dark.knight.ita, f_philipp, permeakra, Sergiy.Borodych, web.alexander
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for net-tools to install symlinks in /sbin

Description Permjacov E. A. 2012-11-23 14:59:12 UTC
openvpn 2.2 tries to run /sbin/ifconfig && /sbin/route, but for net-tools-1.60_p20120127084908 they are not there. Manually set simlinks works fine.

Reproducible: Always

Steps to Reproduce:
1. set up openvpn server on different machine.
2. set up gentoo openvpn client for openvpn
3. start up openvpn client.


Actual Results:  
openvpn fails with complains about /sbin/inconfig failed to run in logfile. After sudo ln -s -T /bin/ifconfig /sbin/ifconfig it complains about /sbin/route failed to run. After ln -s -T /bin/route /sbin/route it finally runs. 


Expected Results:  
running openvpn without manual links

I run openvpn on ubuntu server 10. LTS and latest stable openvpn client of gentoo. I made server to give adresses to client machines based on key with ccd file.
Comment 1 Alex Barker 2012-11-24 02:06:53 UTC
Probably a dupe of bug #408957, rebuild openvpn fixes the problem.
Comment 2 Permjacov E. A. 2012-11-24 03:28:41 UTC
(In reply to comment #1)
> Probably a dupe of bug #408957, rebuild openvpn fixes the problem.

I'll check on monday, I'm not ready to loose connection to remote machine on week-end.
But even if true, at least portage message must be printed.
Comment 3 Florian Philipp 2012-11-24 11:37:58 UTC
(In reply to comment #1)
> Probably a dupe of bug #408957, rebuild openvpn fixes the problem.

Rebuilding openvpn does not fix the problem.

BTW I have to say: I consider moving binaries between /bin and /sbin without adding a symlink a bad idea. There are god-knows-how-many scripts out there that distrust PATH for security reasons.
Comment 4 Florian Philipp 2012-11-24 11:49:19 UTC
Another workaround is to use openvpn with USE=iproute2
Comment 5 Florian Philipp 2012-11-24 12:36:57 UTC
Created attachment 330420 [details, diff]
Patch for net-tools to install symlinks in /sbin

My preferred solution: Patch net-tools to install symlinks in the old locations.

BTW: It would be nice if the net-tools ebuilds would call epatch_user.
Comment 6 SpanKY gentoo-dev 2012-11-26 08:18:01 UTC

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