On Wed, 22 Oct 2008 19:07:04 +0200, Adeodato Simó wrote:

> > And (4) MAKEDEV would fail nevertheless because udev is active.
> MAKEDEV does not fail even if udev is active, so I can't see what's the
> problem with the above snippet/patch?

I tried it and it did fail.

Method:
* Depends: on "udev, makedev" to get both an active udev and
  /dev/MAKEDEV
* don't check for /dev/.udev{,db} in .postinst

Result:
1) lintian:
depends-exclusively-on-makedev
"... relies on makedev to create devices, which won't work if udev is
installed and running."

2) piuparts:
[..]
  Get:1 http://ftp.at.debian.org sid/main libvolume-id0 0.125-7 [76.1kB]
  Get:2 http://ftp.at.debian.org sid/main udev 0.125-7 [253kB]
  Get:3 http://ftp.at.debian.org sid/main makedev 2.3.1-88 [42.3kB]
  Get:4 http://ftp.at.debian.org sid/main adduser 3.110 [184kB]
  debconf: delaying package configuration, since apt-utils is not installed
  Fetched 555kB in 0s (3102kB/s)
  Selecting previously deselected package libvolume-id0.
  (Reading database ... 5796 files and directories currently installed.)
  Unpacking libvolume-id0 (from .../libvolume-id0_0.125-7_i386.deb) ...
  Selecting previously deselected package udev.
  Unpacking udev (from .../archives/udev_0.125-7_i386.deb) ...
  Selecting previously deselected package makedev.
  Unpacking makedev (from .../makedev_2.3.1-88_all.deb) ...
   Removing any system startup links for /etc/init.d/makedev ...
  Selecting previously deselected package adduser.
  Unpacking adduser (from .../archives/adduser_3.110_all.deb) ...
  Setting up libvolume-id0 (0.125-7) ...
  Setting up udev (0.125-7) ...
  unable to open device '/class/net/*'
  A chroot environment has been detected, udev not started.
  Setting up makedev (2.3.1-88) ...
  .udevdb or .udev presence implies active udev.  Aborting MAKEDEV invocation.
  .udevdb or .udev presence implies active udev.  Aborting MAKEDEV invocation.
  Setting up adduser (3.110) ...
  Setting up piuparts-depends-dummy (0.invalid.0) ...
[..]
  Selecting previously deselected package iodine.
  (Reading database ... 5973 files and directories currently installed.)
  Unpacking iodine (from tmp/iodine_0.4.2-2_i386.deb) ...
  Setting up iodine (0.4.2-2) ...
  Creating device /dev/net/tun ...
  .udevdb or .udev presence implies active udev.  Aborting MAKEDEV invocation.

 
> > +            if [ ! -e /dev/.udev ] && [ ! -e /dev/.udevdb ] && [ -x 
> > /dev/MAKEDEV ] ; then
> Better not mess with hidden directories...

I could drop it because
"./MAKEDEV tun || true"
still works, just the error messages are ugly ... 

Cheers,
gregor 
-- 
 .''`.   Home: http://info.comodo.priv.at/{,blog/} / GPG Key ID: 0x00F3CFE4
 : :' :  Debian GNU/Linux user, admin, & developer - http://www.debian.org/
 `. `'   Member of VIBE!AT, SPI Inc., fellow of FSFE | http://got.to/quote/
   `-    NP: Leonard Cohen: A Singer Must Die

Attachment: signature.asc
Description: Digital signature

Reply via email to