tags 644318 + patch
thanks

On Tue, Oct 04, 2011 at 11:49:07PM +0200, bi...@debian.org wrote:
> During an automated test your package makedev was flagged to
> reference files/directories matching /dev/.udev A log of this test
> can be found at [2].
> 
> In most cases checking for /dev/.udev is used to determine if udev is
> active. This check no longer works with udev using /run/udev now.

Patch attached to additionally check for /run/udev in addition
to /dev/.udev*.  Note that I'm not sure if .udevdb is used at all
with current udev versions--I've certainly not seen it created in
recent times; possibly could be removed.  devfs support could also
be removed at this point.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
diff -urN makedev-2.3.1.orig/MAKEDEV makedev-2.3.1/MAKEDEV
--- makedev-2.3.1.orig/MAKEDEV	2012-01-18 23:28:09.483784268 +0000
+++ makedev-2.3.1/MAKEDEV	2012-01-18 23:33:07.972317120 +0000
@@ -56,7 +56,7 @@
     && grep -qE '^[^ ]+ /\.dev' /proc/mounts; then
   echo "udev active, devices will be created in /.dev/"
   cd /.dev/
-elif [ -d .udevdb/ -o -d .udev/ ] && [ "`pwd`" = /dev ]; then
+elif [ -d /run/udev -o -d .udevdb/ -o -d .udev/ ] && [ "`pwd`" = /dev ]; then
   echo ".udevdb or .udev presence implies active udev.  Aborting MAKEDEV invocation."
   # use exit 0, not 1, so postinst scripts don't fail on this
   exit 0

Reply via email to