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

Bug 184968

Summary: net-misc/kvpnc expects /usr/bin/killall and doesn't find it
Product: Gentoo Linux Reporter: spiritus <sirspiritus>
Component: New packagesAssignee: Konstantin Arkhipov (RETIRED) <voxus>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 184969    
Bug Blocks:    
Attachments: psmisc ebuild fix
Different solution - Gentoo-specific patch for KVPNC source

Description spiritus 2007-07-11 16:18:25 UTC
When I try to disconnect PPTP connection KVPNC says "killall -3 pptp failed" becaus it expects killall is in "/usr/bin" and not in "/bin" as in Gentoo.  

Reproducible: Always




The problem arises due to psmisc-22.5 in Gentoo is incompatible with original file layout in Debian, RedHat,Fedora and other major distros and KVPNC has been tested with one of them. 
I suggest to fix sys-process/psmisc-22.5 to be compatible with standard layout. psmisc-22.5.ebuild creates symlinks and psmisc-22.5.ebuild hasn't, the following code was removed

        # Some packages expect these to use /usr, others to use /
        dodir /usr/bin
        cd "${D}"/bin
        for f in * ; do
                dosym /bin/${f} /usr/bin/${f}
        done

Another solution (not very good IMHO) is to apply following Gentoo-specific patch by KVPNC ebuild:

--- kvpnc-0.8.9/src/kvpncconfig.cpp.orig        2007-07-11 20:34:39.000000000 +0600
+++ kvpnc-0.8.9/src/kvpncconfig.cpp     2007-07-11 20:40:20.000000000 +0600
@@ -738,7 +738,7 @@
        pathToPptp = config->readEntry ("Path to pptp","/usr/sbin/pptp");
        pathToL2tpd = config->readEntry ("Path to l2tpd","/usr/sbin/l2tpd");
        pathToKill = config->readEntry ("Path to kill","/bin/kill");
-       pathToKillall = config->readEntry ("Path to kill-all","/usr/bin/killall");
+       pathToKillall = config->readEntry ("Path to kill-all","/bin/killall");
        pathToPing = config->readEntry ("Path to ping","/bin/ping");
        pathToOpenvpn = config->readEntry ("Path to openvpn","/usr/sbin/openvpn");
        pathToPkcs11Tool = config->readEntry( "Path to pkcs11-tool", "/usr/bin/pkcs11-tool" );
Comment 1 spiritus 2007-07-11 16:24:42 UTC
Created attachment 124580 [details]
psmisc ebuild fix

Return dosym() code for compatible binaries layout.
Comment 2 spiritus 2007-07-11 16:26:13 UTC
Created attachment 124582 [details]
Different solution - Gentoo-specific patch for KVPNC source
Comment 3 Konstantin Arkhipov (RETIRED) gentoo-dev 2007-07-11 23:15:55 UTC
will be fixed with latest psmisc ebuild.