Package: mantis
Severity: normal
Tags: patch

ucf complains about a missing parameter, I can not see that debconf was
stopped before the ucf call, so I just added the parameter. See attached
patch. The required ucf-version in Depends has to be bumped since versions
< 0.28 didn't include that feature.

Setting up mantis (1.1.6+dfsg-2) ...
dbconfig-common: writing config to /etc/dbconfig-common/mantis.conf
*** WARNING: ucf was run from a maintainer script that uses debconf, but
             the script did not pass --debconf-ok to ucf. The maintainer
             script should be fixed to not stop debconf before calling ucf,
             and pass it this parameter. For now, ucf will revert to using
             old-style, non-debconf prompting. Ugh!

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
diff -Nurp mantis-1.1.6+dfsg/debian/control mantis-1.1.6+dfsg.new/debian/control
--- mantis-1.1.6+dfsg/debian/control	2009-04-24 03:10:31.000000000 +0200
+++ mantis-1.1.6+dfsg.new/debian/control	2009-04-24 03:11:07.000000000 +0200
@@ -11,7 +11,7 @@ Standards-Version: 3.8.0
 Package: mantis
 Architecture: all
 Pre-Depends: dbconfig-common
-Depends: debconf, apache2 | httpd, libapache2-mod-php5 | php5-cli, libphp-adodb, libphp-phpmailer, ucf, ${misc:Depends}
+Depends: debconf, apache2 | httpd, libapache2-mod-php5 | php5-cli, libphp-adodb, libphp-phpmailer, ucf (>= 0.28), ${misc:Depends}
 Recommends: php5-mysql, mysql-client
 Suggests: php5-cli, mysql-server
 Description: web-based bug tracking system
diff -Nurp mantis-1.1.6+dfsg/debian/postinst mantis-1.1.6+dfsg.new/debian/postinst
--- mantis-1.1.6+dfsg/debian/postinst	2009-04-24 03:10:31.000000000 +0200
+++ mantis-1.1.6+dfsg.new/debian/postinst	2009-04-24 03:12:37.000000000 +0200
@@ -29,7 +29,7 @@ then
 	TEMPLATE_INC="/usr/share/mantis/conf-templates/config_inc.php.template"
 	CONF_DB="/etc/mantis/config_db.php"
 	CONF_INC="/etc/mantis/config_inc.php"
-	UCF="ucf --three-way"
+	UCF="ucf --three-way --debconf-ok"
 
 	# Register configuration files with ucf
 	ucfr mantis ${CONF_DB:?}

Reply via email to