Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  makedev after todays DU  (Read 3714 times)

Offline clubex

  • User
  • Posts: 265
makedev after todays DU
« on: 2012/03/21, 18:00:04 »
I noticed this at the end of todays dist-upgrade:
Quote

Setting up makedev (2.3.1-90)
/var/lib/dpkg/info/makedev.postinit: 34: [:Illegal number: 3-0]

I seem to remember something similar happening last year sometime. But is it pointing out something important I should attend to?

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.920
RE: makedev after todays DU
« Reply #1 on: 2012/03/21, 18:36:08 »
I do not find /var/lib/dpkg/info/makedev.postinit,
also apt-file does not know /var/lib/dpkg/info/makedev.postinit
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline ralul

  • User
  • Posts: 1.814
makedev after todays DU
« Reply #2 on: 2012/03/21, 18:40:25 »
Package outdated, not compatible any more?
Description:
"This package is not necessary for most modern Linux systems, where the udev subsystem provides a more dynamic mechanism for device file management.
Priority: extra"
experiencing siduction runs better than my gentoo makes me know I know nothing

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.838
makedev after todays DU
« Reply #3 on: 2012/03/21, 18:51:09 »
is postinit meant to read postinst?

greetz
devil

Offline clubex

  • User
  • Posts: 265
RE: makedev after todays DU
« Reply #4 on: 2012/03/21, 19:27:33 »
devil: Yes. Sorry it's a typo.

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.920
RE: makedev after todays DU
« Reply #5 on: 2012/03/21, 19:29:27 »
siduction-paste /var/lib/dpkg/info/makedev.postinst
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline clubex

  • User
  • Posts: 265
RE: makedev after todays DU
« Reply #6 on: 2012/03/21, 23:06:44 »
towo:
Tried doing siduction-paste /var/lib/dpkg/info/makedev.postinst
But received:
Quote

/var/lib/dpkg/info/makedev.postinst: 34: [: Illegal number: 3-0
Find your paste here: http://paste.siduction.org/20120321215149 - Thank you for using siduction-paste!


http://paste.siduction.org/20120321215149 appears to be empty.

But here is the text of /var/lib/dpkg/info/makedev.postinst extracted manually:
Quote

#!/bin/sh -e



cd /dev

# don't stomp on devfs users
if  [ -c .devfsd ]
then
    echo ".devfsd presence implies active DevFS.  Aborting postinst before touching /dev."
    # use exit 0, not 1, since this isn't a failure, per se
    exit 0
fi

MAKEDEV std consoleonly fd

# ensure base tty set exists, since debootstrap no longer does
for i in tty0 tty1 tty2 tty3 tty4 tty5 tty6 tty7 tty8 tty9; do
   test -e /dev/$i || MAKEDEV $i
done

chmod g-r,o= /dev/tty[0-9]*

test -e /dev/random || MAKEDEV random
test -e /dev/urandom || MAKEDEV urandom
test -e /dev/audio || MAKEDEV audio
test -e /dev/agpgart || MAKEDEV agpgart

[ ! -f /dev/mouse ] && [ -f /dev/sunmouse ] && ln -s sunmouse mouse

# force update of fb devices if kernel is Linux >= 2.4 and they already exist
kern_rev1=`uname -r | sed -e 's@^\([^.]*\)\..*@\1@'`
kern_rev2=`uname -r | sed -e 's@^[^.]*\.\([^.]*\)\..*@\1@'`
if [ `uname -s` = "Linux" ] && [ $kern_rev1 -ge 2 ] && [ $kern_rev2 -ge 4 ] && [ -e /dev/fb0 ]
then
   MAKEDEV fb
fi

for A in sda16 sdb16 sdc16 sdd16 sde16 sdf16 sdg16 sdh16 \
    ada16 adb16 adc16 add16 ade16 adf16 adg16 adh16
do
   test -e /dev/$A && rm /dev/$A
done

for A in logibm psaux inportbm atibm jbm smouse logimouse psmouse \
msmouse atimouse jmouse amigamouse atarimouse sunmouse amigamouse1
do
   test -e /dev/$A && chmod 600 /dev/$A
done

# fix security hole caused by group-write permissions on kmem
test -e /dev/kmem && chown root:kmem /dev/kmem && chmod 0640 /dev/kmem

LIST=""

for TYPE in tty pty ; do
   for LETTER in p q r s t u v w x y z a b c d e ; do
      if [ -e /dev/$TYPE$LETTER"0" ]; then
         MAJOR="`ls -l /dev/$TYPE$LETTER"0"|cut -c33-36`"
         if [ "$MAJOR" = 4 ] ; then
            LIST="$LIST $TYPE$LETTER"
         fi
      fi
   done
done

if [ -n "$LIST" ]; then
   cat > /etc/rc.boot/makedev << EOF
#!/bin/sh

echo "Creating new console devices"
MAKEDEV $LIST

rm /etc/rc.boot/makedev ; exit 0
EOF

chmod 755 /etc/rc.boot/makedev

fi

exit 0

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.920
RE: makedev after todays DU
« Reply #7 on: 2012/03/21, 23:34:38 »
As i sayed above, siduction does not come with makedev installed, since it is not needed it modern linuxes. So i would purge this package.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline ralul

  • User
  • Posts: 1.814
RE: makedev after todays DU
« Reply #8 on: 2012/03/21, 23:36:35 »
Packages which only want makedev and NOT udev:
libggi-target-fbdev
z8530-utils2

Any one can get maintainership from Joop Stakenborg, who upgraded makedev in year 2009 the last time
experiencing siduction runs better than my gentoo makes me know I know nothing

Offline clubex

  • User
  • Posts: 265
RE: makedev after todays DU
« Reply #9 on: 2012/03/22, 00:08:45 »
Thanks towo & ralul.

I have neither libggi-target-fbdev nor z8530-utils2. Also all my packages that depend on makedev can use udev instead. So I shall remove makedev tomorrow.