Package: moodle Version: 1.9.4.dfsg-0ubuntu4 Severity: normal Tags: patch Reported in Ubuntu at https://launchpad.net/bugs/440098
Moodle installation fails and leaves Moodle unconfigured if PostgreSQL is not configured first. If MySQL is selected instead, installation appears to complete but the database is not properly setup. To reproduce, attempt to install Moodle when neither MySQL or PostgreSQL are installed first. Recommended fix: Moodle should pre-depend on PostgreSQL or MySQL Jeremy -- System Information: Debian Release: squeeze/sid APT prefers karmic-updates APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic-proposed'), (500, 'karmic-backports'), (500, 'karmic') Architecture: i386 (i686) Kernel: Linux 2.6.31-14-generic-pae (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages moodle depends on: ii adduser 3.110ubuntu6 add and remove users and groups ii apache2-mpm-prefo 2.2.12-1ubuntu2 Apache HTTP Server - traditional n ii debconf [debconf- 1.5.27ubuntu2 Debian configuration management sy ii libapache2-mod-ph 5.2.10.dfsg.1-2ubuntu5 server-side, HTML-embedded scripti ii libdbd-mysql-perl 4.011-1ubuntu1 A Perl5 database interface to the ii libdbi-perl 1.609-1 Perl Database Interface (DBI) ii mysql-client 5.1.37-1ubuntu5 MySQL database client (metapackage ii mysql-client-5.1 5.1.37-1ubuntu5 MySQL database client binaries ii mysql-server 5.1.37-1ubuntu5 MySQL database server (metapackage ii mysql-server-5.1 5.1.37-1ubuntu5 MySQL database server binaries ii php5-cli 5.2.10.dfsg.1-2ubuntu5 command-line interpreter for the p ii php5-curl 5.2.10.dfsg.1-2ubuntu5 CURL module for php5 ii php5-gd 5.2.10.dfsg.1-2ubuntu5 GD module for php5 ii php5-mysql 5.2.10.dfsg.1-2ubuntu5 MySQL module for php5 ii smarty 2.6.22-1ubuntu2 Template engine for PHP ii ucf 3.0018ubuntu1 Update Configuration File: preserv ii unzip 6.0-1 De-archiver for .zip files ii zip 3.0-1ubuntu1 Archiver for .zip files Versions of packages moodle recommends: ii aspell 0.60.6-2 GNU Aspell spell-checker ii mimetex 1.50-1ubuntu1 LaTeX math expressions to anti-ali ii php5-ldap 5.2.10.dfsg.1-2ubuntu5 LDAP module for php5 ii php5-xmlrpc 5.2.10.dfsg.1-2ubuntu5 XML-RPC module for php5 Versions of packages moodle suggests: pn clamav <none> (no description available) -- debconf information: * moodle/https_only: false * moodle/local_only: true moodle/dbu_name: moodle * moodle/db_server: mysql-server * moodle/db_populate: * moodle/db_create: true moodle/db_host: localhost moodle/fqdn_check: true moodle/pwillegalchar: moodle/config_php_created: moodle/notconfigured: moodle/pwempty: moodle/pwmismatch:
From 6a8705e292c2657efeb544c8beb90880ba95843d Mon Sep 17 00:00:00 2001 From: Jeremy Bicha <jer...@bicha.net> Date: Sun, 18 Oct 2009 02:59:33 +0300 Subject: [PATCH 2/2] * Pre-depends on PostrgreSQL or MySQL as Moodle database cannot be setup before host database --- debian/control | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index dc03fb4..30df745 100644 --- a/debian/control +++ b/debian/control @@ -12,8 +12,8 @@ Vcs-Browser: http://git.debian.org/?p=pkg-moodle/moodle.git;a=summary Package: moodle Architecture: all Depends: ${misc:Depends}, libapache2-mod-php5 | php5-cgi, php5-pgsql | php5-mysql, php5-gd, php5-curl, php5-cli, apache2-mpm-prefork | httpd, adduser, libdbi-perl, libdbd-mysql-perl, ucf, postgresql-client | mysql-client, unzip, zip, smarty, libjs-yui, libphp-magpierss (>= 0.72-8) -Pre-Depends: debconf (>= 0.5) | debconf-2.0 -Recommends: postgresql | mysql-server, php5-ldap, php5-xmlrpc, aspell, mimetex +Pre-Depends: postgresql | mysql-server, debconf (>= 0.5) | debconf-2.0 +Recommends: php5-ldap, php5-xmlrpc, aspell, mimetex Suggests: clamav, php-fpdf Description: Course Management System for Online Learning Moodle (Modular Object-Oriented Dynamic Learning Environment) is a course -- 1.6.3.3