Package: capiutils
Version: 1:3.9.20060704+dfsg.2-12
Severity: grave
Tags: patch
Justification: renders package unusable
Hi,
with Linux 3.0 capifs was removed.
Unfortunately /etc/init.d/capiutils still tries to load the capifs module,
no matter what Linux version is running, and hence fails on Linux 3.0+.
As '/etc/init.d/capiutils start' is run on package installs/upgrades, this
makes capiutils uninstallable.
Please find attached a patch that should fix the issue:
it checks for the version of the kernel currently running.
An alternative solution might be to remove mountcapifs and umountcapifs from
/etc/init.d/capiutils altogether (I do not know about the effects on older
kernels).
Please consider releasing a new version of capiutils with this patch
(or any other one that fixes the issue) integrated.
Thanks for maintaining capiutils in Debian
Peter
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages capiutils depends on:
ii libc6 2.13-21
ii libcapi20-3 1:3.9.20060704+dfsg.2-12
ii lsb-base 3.2-28
capiutils recommends no packages.
capiutils suggests no packages.
-- Configuration Files:
/etc/init.d/capiutils changed [not included]
-- no debconf information
--- debian/capiutils.init
+++ debian/capiutils.init 2011-12-11 18:11:04.842460284 +0100
@@ -29,7 +29,8 @@
mountcapifs()
{
- if grep -q '/dev devfs rw' /proc/mounts; then
+ if dpkg --compare-versions "$(uname -r)" ge 3 ||
+ grep -q '/dev devfs rw' /proc/mounts; then
return
fi
@@ -46,7 +47,8 @@
umountcapifs()
{
- if ! grep -q '^capifs /dev/capi ' /proc/mounts; then
+ if dpkg --compare-versions "$(uname -r)" ge 3 ||
+ ! grep -q '^capifs /dev/capi ' /proc/mounts; then
return
fi
umount /dev/capi