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

Bug#512012: udev fails to configure



package: buildd.emdebian.org
tag 512012 + confirmed
retitle 512012 [udev] postinst use of kill -s is unsupported by busybox
thanks

> The udev package ( 0.125-7em1) in a root fs crrated by emsandbox for
> grip fails to configure with;
> 
> sh: bad signal name 's'
> dpkg: error processing udev (--configure):
>  subprocess post-installation script returned error exit status 1
> 
> The cause is the use of  the -s option to kill in the udev postinst
> which is not supported by busybox kill.
> 
> My workaround is to add this to setup.sh:
> sed -i "s/kill -s /kill -/g" $target/var/lib/dpkg/info/udev.postinst

Thanks, I've implemented this as a new Emdebian patch for udev:

--- udev.old/debian/udev.postinst	Fri Jan 16 10:53:04 2009
+++ /opt/emdebian/trunk/u/udev/trunk/udev-0.125/debian/udev.postinst	Fri Jan 16 10:56:54 2009
@@ -118,7 +118,7 @@
 
   # restart some daemons because their /dev sockets have been hidden by
   # the tmpfs
-  kill -s HUP 1
+  kill -HUP 1
   local sysloginits="inetutils-syslogd metalog socklog-run sysklogd syslog-ng"
   for script in $sysloginits; do
     [ -x /etc/init.d/$script ] && invoke-rc.d $script restart || true

$ parsechangelog 
Source: udev
Version: 0.125-7em2
Distribution: unstable
Urgency: low
Maintainer: Neil Williams <codehelp@debian.org>
Date: Fri, 16 Jan 2009 11:05:59 +0000
Closes: 512012
Changes: 
 udev (0.125-7em2) unstable; urgency=low
 .
   * New emdebian release.
   * Remove unsupported -s option to kill in postinst. (Closes: #512012)

I'll also update the Emdebian lintian checks to look for 'kill -s' in
other maintainer scripts in emdebian-tools (>= 1.4.15). (Cloned this
report for that purpose.)

Also adding this issue to #484274 for easier tracking.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgp_dws6px31h.pgp
Description: PGP signature


Reply to: