Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184968 - net-misc/kvpnc expects /usr/bin/killall and doesn't find it
Summary: net-misc/kvpnc expects /usr/bin/killall and doesn't find it
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Konstantin Arkhipov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 184969
Blocks:
  Show dependency tree
 
Reported: 2007-07-11 16:18 UTC by spiritus
Modified: 2007-07-11 23:15 UTC (History)
0 users

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


Attachments
psmisc ebuild fix (psmisc-22.5.ebuild.patch,551 bytes, text/plain)
2007-07-11 16:24 UTC, spiritus
Details
Different solution - Gentoo-specific patch for KVPNC source (killall-path-fix.diff,750 bytes, text/plain)
2007-07-11 16:26 UTC, spiritus
Details

Note You need to log in before you can comment on or make changes to this bug.
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.