Package: libraw1394-8
Version: 1.2.1-3
Severity: serious
Tags: patch

The new postinst is broken for the common case of installing package in
chroot. set -e is used and cd /dev/ && ./MAKEDEV is called unconditionally.

Please test for existance of ./MAKEDEV, or that you are in a chroot, or
just tack a || true onto the offending line.

Setting up libraw1394-8 (1.2.1-3) ...
Creating device node /dev/raw1394...
/var/lib/dpkg/info/libraw1394-8.postinst: line 5: ./MAKEDEV: No such
file or directory
dpkg: error processing libraw1394-8 (--configure):
 subprocess post-installation script returned error exit status 1

Thanks, Kel.
diff -Nrup libraw1394-1.2.1/debian/libraw1394-8.postinst libraw1394-1.2.1.patched/debian/libraw1394-8.postinst
--- libraw1394-1.2.1/debian/libraw1394-8.postinst	2007-06-18 13:01:59.000000000 +1000
+++ libraw1394-1.2.1.patched/debian/libraw1394-8.postinst	2007-06-18 13:01:24.000000000 +1000
@@ -2,7 +2,7 @@
 
 if [ "$1" = "configure" ]; then
 	echo -n "Creating device node /dev/raw1394... "
-	cd /dev && ./MAKEDEV raw1394
+	cd /dev && ./MAKEDEV raw1394 || true
 	echo "done."
 fi
 

Reply via email to