[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#624398: [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

Am 28.04.2011 09:10, schrieb Julien Cristau:
> On Thu, Apr 28, 2011 at 03:01:32 -0400, Daniel Kahn Gillmor wrote:
>> Package: xserver-xorg
>> Version: 1:7.6+6
>> Severity: normal
>> trying to install xserver-xorg on this kFreeBSD system failed in the 
>> postinst script (attached) when trying to "invoke-rc.d hal restart".
>> I was able to push through without hal by prefixing that line of 
>> /var/lib/dpkg/info/xserver-xorg.postinst with a ": "
>> But i'm not sure what the right thing to do is to really resolve the issue.
>> /usr/share/doc/hal/changelog.Debian.gz notes that the hal maintainer 
>> removed the init script several months ago.
>> Any thoughts on what the right thing to do is?

The right thing to do is making Xorg stop using hal on !linux.

> 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.
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.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

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.


Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: