i have a lot of cross-compilers installed thus: # echo ${#PATH} 2224 which means when i run hald: # hald --verbose=yes --daemon=no 18:54:45.677 [I] hald.c:671: hal 0.5.12rc1 18:54:45.677 [I] hald.c:736: Will not daemonize 18:54:45.677 [I] hald_dbus.c:5417: local server is listening at unix:abstract=/var/run/hald/dbus-Ngz5QjsjCl,guid=c10bb6b8b61b898d78c281b749f8dab5 18:54:45.679 [I] ck-tracker.c:391: got seat '/org/freedesktop/ConsoleKit/Seat1' 18:54:45.679 [I] ck-tracker.c:342: Got all sessions on seat '/org/freedesktop/ConsoleKit/Seat1' 18:54:45.679 [I] ck-tracker.c:418: Got seats 18:54:45.679 [I] ck-tracker.c:816: Got seats and sessions 18:54:45.680 [E] hald_runner.c:294: Could not spawn runner : 'Failed to execute child process "hald-runner" (No such file or directory)' and when i run things through `strace`, it shows clearly that my PATH has been truncated and the critical /usr/libexec/ component has not been added: # grep hald-runner out ... 18945 execve("/usr/x86_64-pc-linux-gnu//hald-runner", ["hald-runner"], [/* 2 vars */]) = -1 ENOENT (No such file or directory) there is no "/usr/x86_64-pc-linux-gnu/" in my PATH, but it looks like hald is chopping my PATH at 512 bytes
ive added a workaround to the init.d script in the mean time http://sources.gentoo.org/sys-apps/hal/files/0.5.10-hald.rc?r1=1.3&r2=1.4
Created attachment 203403 [details] Patch removing the PATH 512 byte limit in hald
OP, can you test the attached patch ? It should fix your problem without hacks in the initscript.
(In reply to comment #3) > OP, can you test the attached patch ? It should fix your problem without hacks > in the initscript. > It was included by upstream in 0.5.14, then, that version should fix this problem
hmm, i missed that test request `/etc/init.d/hald restart` works on my ~amd64 system after dropping the $PATH check, so things look OK now
Then, I think that this can be closed. Upstream commit is: http://cgit.freedesktop.org/hal/commit/?id=b296289566a97fa112c7de2fe09389d690841a6a Best regards
the PATH hack in the init.d script should be dropped then
+*hal-0.5.14-r3 (28 Sep 2010) + + 28 Sep 2010; Samuli Suominen <ssuominen@gentoo.org> + +files/0.5.14-hald.rc.1, +hal-0.5.14-r3.ebuild: + Remove now unnecessary workaround for PATH and 512 bytes limit in init + script wrt #267928.