Bug#255950: patch for the problem
Ivan Nestlerode
Ivan Nestlerode <nestler@speakeasy.net>, 255950@bugs.debian.org
Wed, 23 Jun 2004 19:43:26 -0400
--gBBFr7Ir9EOA20Yy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
retitle 255950 libbonobo2-0: bashism in postinst
tags 255950 patch
thanks
The error is on the postinst file. This line is buggy:
kill -HUP `pidof bonobo-activation-server` &>/dev/null || true
The ampersand redirection is a bashism that doesn't work with dash as
/bin/sh. Changing it to a 2 works in this case to suppress the kill
error message on stderr that you get when bonobo isn't running.
The patch is attached.
-Ivan
--gBBFr7Ir9EOA20Yy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch
--- /var/lib/dpkg/info/libbonobo2-0.postinst 2004-06-22 17:53:53.000000000 -0400
+++ libbonobo2-0.postinst-fixed 2004-06-23 19:30:59.000000000 -0400
@@ -4,7 +4,7 @@
case "$1" in
configure)
- kill -HUP `pidof bonobo-activation-server` &>/dev/null || true
+ kill -HUP `pidof bonobo-activation-server` 2>/dev/null || true
;;
abort-upgrade|abort-remove|abort-deconfigure)
--gBBFr7Ir9EOA20Yy--