Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267928 - sys-apps/hal-0.5.12_rc1 hald does not find hald-runner with longer default PATH
Summary: sys-apps/hal-0.5.12_rc1 hald does not find hald-runner with longer default PATH
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Freedesktop bugs
URL: http://cgit.freedesktop.org/hal/commi...
Whiteboard:
Keywords:
Depends on: 313389
Blocks:
  Show dependency tree
 
Reported: 2009-04-29 22:57 UTC by SpanKY
Modified: 2010-09-28 06:20 UTC (History)
2 users (show)

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


Attachments
Patch removing the PATH 512 byte limit in hald (hal-0.5.13-remove-PATH-512-bytes-limit.patch,1.29 KB, text/plain)
2009-09-07 20:00 UTC, Maciej Grela
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2009-04-29 22:57:09 UTC
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
Comment 1 SpanKY gentoo-dev 2009-08-17 22:25:25 UTC
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
Comment 2 Maciej Grela 2009-09-07 20:00:33 UTC
Created attachment 203403 [details]
Patch removing the PATH 512 byte limit in hald
Comment 3 Maciej Grela 2009-09-07 20:12:32 UTC
OP, can you test the attached patch ? It should fix your problem without hacks in the initscript.
Comment 4 Pacho Ramos gentoo-dev 2010-02-09 12:53:21 UTC
(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
Comment 5 SpanKY gentoo-dev 2010-02-09 17:15:08 UTC
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
Comment 6 Pacho Ramos gentoo-dev 2010-02-10 09:02:54 UTC
Then, I think that this can be closed. Upstream commit is:
http://cgit.freedesktop.org/hal/commit/?id=b296289566a97fa112c7de2fe09389d690841a6a

Best regards
Comment 7 SpanKY gentoo-dev 2010-03-07 06:32:14 UTC
the PATH hack in the init.d script should be dropped then
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2010-09-28 06:20:40 UTC
+*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.