Bug#502831: /var/lib/dpkg/info/dvb-apps.postinst: line 6: /sbin/MAKEDEV: No such file or directory
Mark Purcell
msp at debian.org
Wed Oct 22 11:00:07 UTC 2008
retitle 502831 /var/lib/dpkg/info/dvb-apps.postinst: line 6: /sbin/MAKEDEV: No such file or directory
tags 502831 pending
thanks
On Wednesday 22 October 2008 21:02:37 Adeodato Simó wrote:
> The patch should do something like:
>
> if [ -x /dev/MAKEDEV ]; then
> echo "creating foo devices..."
> /dev/MAKEDEV foo
> fi
Thanks Dato, that makes a lot of sense..
Mark
> And not mess with hidden directories.
A quick grep through my installed .postinst reveals lots of different approaches :-(
$ grep -C 1 MAKEDEV /var/lib/dpkg/info/*.postinst
/var/lib/dpkg/info/bluez-utils.postinst-
/var/lib/dpkg/info/bluez-utils.postinst: # use MAKEDEV instead of the original bluez script below as per policy 10.6
/var/lib/dpkg/info/bluez-utils.postinst: if [ -x /dev/MAKEDEV ]; then
/var/lib/dpkg/info/bluez-utils.postinst- echo "Creating device nodes ..."
/var/lib/dpkg/info/bluez-utils.postinst: cd /dev && ./MAKEDEV bluetooth
/var/lib/dpkg/info/bluez-utils.postinst- fi
--
/var/lib/dpkg/info/dvb-apps.postinst-if [ ! -e /dev/.devfsd ] && [ ! -e /dev/.udev ] ; then
/var/lib/dpkg/info/dvb-apps.postinst:cd /dev && /sbin/MAKEDEV dvb
/var/lib/dpkg/info/dvb-apps.postinst-fi
--
/var/lib/dpkg/info/dvbtune.postinst-#
/var/lib/dpkg/info/dvbtune.postinst:if [ -e /sbin/MAKEDEV ]
/var/lib/dpkg/info/dvbtune.postinst-then
/var/lib/dpkg/info/dvbtune.postinst: ( cd /dev && /sbin/MAKEDEV dvb )
/var/lib/dpkg/info/dvbtune.postinst-fi
--
/var/lib/dpkg/info/libraw1394-8.postinst-if [ "$1" = "configure" ]; then
/var/lib/dpkg/info/libraw1394-8.postinst: [ -x /dev/MAKEDEV ] && cd /dev && echo -n "Creating device node /dev/raw1394... " && ./MAKEDEV raw1394 && echo "done."
/var/lib/dpkg/info/libraw1394-8.postinst-fi
--
/var/lib/dpkg/info/libsane.postinst-
/var/lib/dpkg/info/libsane.postinst: if [ -e /dev/MAKEDEV ]; then
/var/lib/dpkg/info/libsane.postinst- # create /dev/parport*
/var/lib/dpkg/info/libsane.postinst- if [ ! -c /dev/parport0 ]; then
/var/lib/dpkg/info/libsane.postinst: (cd /dev && ./MAKEDEV parport) || true
/var/lib/dpkg/info/libsane.postinst- fi
--
/var/lib/dpkg/info/libsane.postinst- if [ ! -c /dev/sg0 ]; then
/var/lib/dpkg/info/libsane.postinst: (cd /dev && ./MAKEDEV sg) || true
/var/lib/dpkg/info/libsane.postinst- fi
--
/var/lib/dpkg/info/libsensors3.postinst- configure)
/var/lib/dpkg/info/libsensors3.postinst: # Create the device node if MAKEDEV exists
/var/lib/dpkg/info/libsensors3.postinst: if [ -x /sbin/MAKEDEV ] ; then
/var/lib/dpkg/info/libsensors3.postinst- if [ ! -c /dev/i2c-0 ]; then
/var/lib/dpkg/info/libsensors3.postinst: (cd /dev && /sbin/MAKEDEV i2c) || true
/var/lib/dpkg/info/libsensors3.postinst- fi
--
/var/lib/dpkg/info/libsensors4.postinst- configure)
/var/lib/dpkg/info/libsensors4.postinst: # Create the device node if MAKEDEV exists
/var/lib/dpkg/info/libsensors4.postinst: if [ -x /sbin/MAKEDEV ] ; then
/var/lib/dpkg/info/libsensors4.postinst- if [ ! -c /dev/i2c-0 ]; then
/var/lib/dpkg/info/libsensors4.postinst: (cd /dev && /sbin/MAKEDEV i2c) || true
/var/lib/dpkg/info/libsensors4.postinst- fi
--
/var/lib/dpkg/info/mythtv-backend.postinst- if [ "$RET" = "true" ]; then
/var/lib/dpkg/info/mythtv-backend.postinst: (cd /dev && MAKEDEV v4l)
/var/lib/dpkg/info/mythtv-backend.postinst- fi
--
/var/lib/dpkg/info/powermgmt-base.postinst-(configure)
/var/lib/dpkg/info/powermgmt-base.postinst: cd /dev && /sbin/MAKEDEV -v apm || true
/var/lib/dpkg/info/powermgmt-base.postinst- FN="/etc/modprobe.d/apm"
--
/var/lib/dpkg/info/ppp.postinst-# create /dev/ppp if we are not using udev
/var/lib/dpkg/info/ppp.postinst:if [ ! -c /dev/ppp -a -e /dev/MAKEDEV ]; then
/var/lib/dpkg/info/ppp.postinst- cd /dev
/var/lib/dpkg/info/ppp.postinst: ./MAKEDEV ppp
/var/lib/dpkg/info/ppp.postinst-fi
--
/var/lib/dpkg/info/uswsusp.postinst- if [ -z "$VAL" -a ! -c /dev/snapshot ] ; then
/var/lib/dpkg/info/uswsusp.postinst: # Until MAKEDEV knows how to make it ...
/var/lib/dpkg/info/uswsusp.postinst- DEV=`cat /sys/class/misc/snapshot/dev `
/var/lib/dpkg/info/uswsusp.postinst: (cd /dev; ./MAKEDEV snapshot) || mknod /dev/snapshot c ${DEV%:*} ${DEV#*:}
/var/lib/dpkg/info/uswsusp.postinst- fi
--
More information about the pkg-vdr-dvb-devel
mailing list