On Wed, 07 Oct 2009 00:38:39 +0400, Nikolay A. Panov wrote:

> The following message appears during aptitude install halevt:
> 
> Setting up halevt (0.1.5-1) ...
> Installing new version of config file /etc/init.d/halevt ...
> /var/lib/dpkg/info/halevt.postinst: line 35: polkit-auth: command not found
> /var/lib/dpkg/info/halevt.postinst: line 37: polkit-auth: command not found
> dpkg: error processing halevt (--configure):
>  subprocess post-installation script returned error exit status 127
> 
> 
> Have you missed to add policykit to the deps?

IIRC policykit was a dependency of hal until recently, and since
halevt depends on hal it relied on it probably.

Now, either halevt needs to depend on policykit if it really really
needs it, or check for polkit-auth in the postinst:

#v+
--- /var/lib/dpkg/info/halevt.postinst.orig     2009-11-29 20:33:49.000000000 
+0100
+++ /var/lib/dpkg/info/halevt.postinst  2009-11-29 20:35:17.000000000 +0100
@@ -32,10 +32,12 @@
 
        chown $USER $HOME
 
-       polkit-auth --user halevt --explicit | \
-           grep -q org.freedesktop.hal.storage.mount-removable || \
-           polkit-auth --user halevt \
-               --grant org.freedesktop.hal.storage.mount-removable
+       if [ -x /usr/bin/polkit-auth ] ; then
+               polkit-auth --user halevt --explicit | \
+                   grep -q org.freedesktop.hal.storage.mount-removable || \
+                   polkit-auth --user halevt \
+                       --grant org.freedesktop.hal.storage.mount-removable
+       fi
 
     ;;
 

#v-

Cheers,
gregor

-- 
 .''`.   http://info.comodo.priv.at/ -- GPG Key IDs: 0x00F3CFE4, 0x8649AA06
 : :' :  Debian GNU/Linux user, admin, & developer - http://www.debian.org/
 `. `'   Member of VIBE!AT, SPI Inc., fellow of FSFE | http://got.to/quote/
   `-    NP: Sting: All This Time

Attachment: signature.asc
Description: Digital signature

Reply via email to