Comment 9 for bug 378726

Revision history for this message
Jeremy BĂ­cha (jbicha) wrote :

Nominated for SRU for Jaunty. This bug causes installation to fail for users who do not already have PostgreSQL or MySQL configured first. This bug was fixed in Karmic with 1.9.4.dfsg-0ubuntu4 by having moodle depend on either PostgreSQL or MySQL. Also we are moving debconf to depends instead of pre-depends as pre-depends is heavily discouraged.

TEST CASE:
To test bug:
Install moodle. During installation, select postgresql (as that is default). Moodle installation will fail with the error "package moodle 1.9.4.dfsg-0ubuntu1.1 failed to install/upgrade: subprocess post-installation script returned error exit status 1" If moodle were setup correctly, you would be able to access the software by visiting http://localhost/moodle/ in your web browser.

To test fix:
Purge moodle php5-pgsql php5-xmlrpc postgresql postgresql-8.3 postgresql-client-8.3 postgresql-client-common postgresql-common mysql-server mysql-server-5.0 php5-mysql
Install patched moodle.
Installation should complete and http://localhost/moodle/ should work fine.

There is no expected regression potential.