Package: pwc-source
Version: 10.0.11-2

Hi,
when installing in a chroot a pwc-module compiled against a different
kernel than the current one so that no /lib/modules/`uname -r` exists
pwc-modules fails install due to unconditionally calling depmod. 
Same would probably happen if running kernel has no module support.

Setting up pwc-modules-2.6.15-netstation (10.0.11-2+1.0) ...
WARNING: Couldn't open directory /lib/modules/2.6.16-rc6: No such file
or directory
FATAL: Could not open /lib/modules/2.6.16-rc6/modules.dep.temp for
writing: No such file or directory
dpkg: error processing pwc-modules-2.6.15-netstation (--install):
 subprocess post-installation script returned error exit status 1


E.g. the spca module does only call "depmod" if "uname -r" is
equal the _KVERS_ at kernel compile time.


diff -Nur pwc/debian/postinst pwc.flo/debian/postinst
--- pwc/debian/postinst 2006-02-15 11:28:13.000000000 +0100
+++ pwc.flo/debian/postinst     1970-01-01 01:00:00.000000000 +0100
@@ -1,42 +0,0 @@
-#! /bin/sh
-# postinst script for pwc-modules
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-#
-
-case "$1" in
-    configure)
-       depmod -a
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-
diff -Nur pwc/debian/postinst.modules.in pwc.flo/debian/postinst.modules.in
--- pwc/debian/postinst.modules.in      1970-01-01 01:00:00.000000000 +0100
+++ pwc.flo/debian/postinst.modules.in  2006-03-21 18:14:50.000000000 +0100
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+if [ "`uname -r`" = "_KVERS_" ] ; then
+   depmod -ae &
+fi
+
+#DEBHELPER#
+
+exit 0


-- 
Florian Lohoff                  [EMAIL PROTECTED]             +49-171-2280134
                        Heisenberg may have been here.

Attachment: signature.asc
Description: Digital signature

Reply via email to