Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184046 - net-misc/networkmanager-0.6.5 executes non-existing /usr/bin/killall
Summary: net-misc/networkmanager-0.6.5 executes non-existing /usr/bin/killall
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Steev Klimaszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-02 22:41 UTC by João Vale
Modified: 2007-09-06 00:28 UTC (History)
1 user (show)

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


Attachments
Fix path to 'killall' (gentoo_killall.patch,603 bytes, patch)
2007-07-11 09:36 UTC, João Vale
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description João Vale 2007-07-02 22:41:49 UTC
When I connect to a network, I get this in the syslog:

NetworkManager: <WARN>  nm_spawn_process(): nm_spawn_process('/usr/bin/killall -q nscd'): could not spawn process. (Failed to execute child process "/usr/bin/killall" (No such file or directory))

Found a few bugs concerning killall changing from /usr/bin/killall to /bin/killall , but none related to NetworkManager.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-02 22:46:20 UTC
So re-emerge it?
Comment 2 João Vale 2007-07-02 22:56:52 UTC
Tried re-emerging sys-process/psmisc and then net-misc/networkmanager-0.6.5, but the results were the same. Sorry, should've said that in the report.

Anyway, I snooped around and I found this in line 240 of src/backends/NetworkManagerGentoo.c

	nm_spawn_process("/usr/bin/killall -q nscd");

Not sure if this is the right place to change it though, so I didn't make a patch. :P
Comment 3 Kevin Lacquement 2007-07-10 23:43:45 UTC
The location of a binary like killall should be a configure option, or detected at build time by configure.  My inclination would be to put a local patch on it to detect for configure, and sent that patch upstream.
Comment 4 Kevin Lacquement 2007-07-11 01:27:12 UTC
After re-reading it, I'd say patch the Gentoo file, and send it upstream.  Seems like a strange way to handle everything, but i guess upstream knows best ??
Comment 5 João Vale 2007-07-11 09:36:23 UTC
Created attachment 124537 [details, diff]
Fix path to 'killall'

Shall I submit this upstream?
Comment 6 Steev Klimaszewski (RETIRED) gentoo-dev 2007-09-05 17:16:17 UTC
Unfortunately, I don't experience this - and really, you would need to fix it some other way, on my hardened machine, i get

steev@keuhi /bin $ which killall
/usr/bin/killall
steev@keuhi /bin $ ls -l /usr/bin/killall
-rwxr-xr-x 1 root root 18K 2007-08-13 15:25 /usr/bin/killall

on my amd64 semi-stable i get

steev@equilibrium sigma6 $ which killall
/usr/bin/killall
steev@equilibrium sigma6 $ ls -l /usr/bin/killall 
lrwxrwxrwx 1 root root 12 2007-04-19 08:31 /usr/bin/killall -> /bin/killall

on x86 stable I get
steev@ariandorix ~ $ which killall
/usr/bin/killall
steev@ariandorix ~ $ ls -l /usr/bin/killall 
-rwxr-xr-x 1 root root 14328 2007-08-14 07:40 /usr/bin/killall
Comment 7 João Vale 2007-09-06 00:28:58 UTC
Seems like the problem was (silently?) fixed, probably in the sys-process/psmisc ebuild.

Oh well. Scratch one from the bug count.