[Pkg-utopia-maintainers] Bug#624398: xserver-xorg: postinst script wants to invoke-rc.d hal on GNU/kFreeBSD, but there is no more /etc/init.d/hal
Julien Cristau
jcristau at debian.org
Thu Apr 28 07:50:39 UTC 2011
On Thu, Apr 28, 2011 at 09:39:14 +0200, Michael Biebl wrote:
> The right thing to do is making Xorg stop using hal on !linux.
>
That's probably not going to happen this year.
> >>
> > Bring the init script back, or give us another way to restart hal if
> > it's running.
>
> The hal init script will not be re-introduced.
Then hal needs to have Breaks on older xserver-xorg on kfreebsd.
> If you want to see how hal handles (re)starting hald on upgrades, check the
> postinst script, I basically does
>
> get_pid() {
> [ -n "$1" ] || return 0
>
> dbus-send --system --dest=org.freedesktop.DBus --print-reply \
> /org/freedesktop/DBus
> org.freedesktop.DBus.GetConnectionUnixProcessID \
> string:$1 2>/dev/null | awk '/uint32/ {print $2}'
> }
>
> # restart hald if it was running before
> pid=$(get_pid org.freedesktop.Hal)
> if [ -n "$pid" ]; then
> kill $pid 2>/dev/null || true
> lshal >/dev/null || true # will trigger through D-Bus activation
> fi
>
> The last step (triggering a hald start via D-Bus activation).
> It was initially added for applications which used a buggy approach to check if
> hald was running and disabled themselves otherwise, i.e. they didn't trigger a
> D-Bus activation request.
> All affected packages I know of have been fixed.
>
Thanks, I'll try to work something out.
Cheers,
Julien
More information about the Pkg-utopia-maintainers
mailing list