[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
Michael Biebl
biebl at debian.org
Thu Apr 28 07:39:14 UTC 2011
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
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.
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20110428/0515b276/attachment-0001.pgp>
More information about the Pkg-utopia-maintainers
mailing list