kolab-resource-handlers postinst fails on apache module installation

Bug #107343 reported by Ulrik Rasmussen
8
Affects Status Importance Assigned to Milestone
kolab-resource-handlers (Ubuntu)
Fix Released
Undecided
Luca Falavigna

Bug Description

Binary package hint: kolab-resource-handlers

On installation of kolabd, the install script fails with a "subprocess post-installation script returned error exit status 1" when trying to configure kolab-resource-handlers (which kolabd depends on).

versions:
kolab-resource-handlers : 0.3.9-20060811-3ubuntu1
kolabd : 1.9.4-20060707.dfsg-2

I managed to locate the error in the postinst script. The script tries to install the php4 module in apache, but since php4 is removed from Feisty, this fails. Diff for quick fix below:

--- kolab-resource-handlers.postinst 2007-04-18 00:41:12.000000000 +0200
+++ /var/lib/dpkg/info/kolab-resource-handlers.postinst 2007-04-18 01:00:31.000000000 +0200
@@ -19,7 +19,7 @@
 }

 configure_apache() {
- for mod in rewrite ssl php4 ldap; do
+ for mod in rewrite ssl php5 ldap; do
                a2enmod $mod >/dev/null
        done

Revision history for this message
Ulrik Rasmussen (launchpad-hwiz) wrote :
Revision history for this message
Nicolas Schmerber (nschmerber) wrote :

Hi,

I confirm this bug on ubuntu feisty.
By correcting the postinst script (a simple sed php4 => php5) + dpkg --configure --pending , and all works fine

Bye

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Thank you for your bug report and for your patch.
I arranged a debdiff to be reviewed in bug #117737.

Changed in kolab-resource-handlers:
assignee: nobody → dktrkranz
status: Unconfirmed → Confirmed
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

kolab-resource-handlers (0.3.9-20060811-4ubuntu1) gutsy; urgency=low

  * Merge from Debian unstable, remaining changes:
    - Depends on PHP 5 packages
    - Update maintainer field in debian/changelog
  * Use php5 in debian/postint (LP: #107343)

kolab-resource-handlers (0.3.9-20060811-4) unstable; urgency=low

  [ Peter Eisentraut ]
  * Simplify cumbersome prerm checks
  * Added php4-cli dependency
  * Added XS-Vcs-Browser field

  [ Steffen Joeris ]
  * Remove obsolete and confusing comment from apache.conf file
  * Change my maintainer address

 -- Luca Falavigna <email address hidden> Tue, 29 May 2007 22:33:09 +0100

Changed in kolab-resource-handlers:
status: Confirmed → Fix Released
Revision history for this message
Brazilian Joe (tiago-freire) wrote :

It seems to be a trivial bug, and it is hampering the installation of an important package (kolabd)...
We are an office which does consulting (I am the IT guy), and we have a database server here.
I am currently evaluating the possibility of Switching to Ubuntu, and also adding a few services (having a mail server for instance).
Just to give you the heads up on this one, I am trying to make kolabd work on the test server, and if everything works right, we are going to switch from Gentoo to Ubuntu. So far I am really impressed with (K)Ubuntu.

Best regards

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.