Package:  pcmciautils
Version:  014-4
Severity: important
Tags:     patch
User:     initscripts-ng-de...@lists.alioth.debian.org
Usertags: incorrect-dependency
User:     debian...@lists.debian.org
Usertags: piuparts

I came across this issue when checking the init.d script dependencies
in the entire archive.  The script have a hard dependency on udev,
while the package only recommend udev.  When udev is not installed,
the package fail to install.  Making the dependency optional is not
quite enough, as that would make it possible for the init.d script to
start to early in the boot.  I had a look at the old sequence point,
and see that it used to start after mountall and just before
networking.  Because of this, I believe a dependency on $local_fs is a
good baseline.

The installation problem was discovered by piuparts, see <URL:
http://piuparts.debian.org/sid/fail/batmand_0.3.2-2.log > for the test
log.  These are the error messages:

  insserv: Service udev has to be enabled to start service pcmcia
  insserv: exiting now!

<URL: 
http://refspecs.freestandards.org/LSB_2.1.0/LSB-generic/LSB-generic/initscrcomconv.html
 >
documents the LSB header format.  Some debian notes are available from
<URL: http://wiki.debian.org/LSBInitScripts >.

Setting severity to important, as udev is a recommends and thus would
be installed in most cases.

This patch should solve the issue.  Please let me know if I should not
NMU to fix this.

diff -ur ../pcmciautils-014/debian/init ../pcmciautils-014-pere/debian/init
--- ../pcmciautils-014/debian/init      2009-09-27 19:47:18.000000000 +0200
+++ ../pcmciautils-014-pere/debian/init 2009-09-27 19:50:07.000000000 +0200
@@ -2,8 +2,9 @@
 #
 ### BEGIN INIT INFO
 # Provides:          pcmcia
-# Required-Start:    udev
+# Required-Start:    $local_fs
 # Required-Stop:
+# Should-Start:      udev
 # Default-Start:     S
 # Default-Stop:
 # Short-Description: PCMCIA support

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to