Public bug reported:

This is an upstream bug.

Currently in /usr/share/dbconfig-common/config file there is function
called dbc_go()

This function calls dbc_config $@ few times (Lines 10 and 163).

dbc_config loads global configuration file for dbconfig-common localized
in /etc/dbconfig-common/conf

Values from this file override these provided by package maintainer in
package.postinst etc.

This is unusual and in my opinion wrong behavior.

For example - maintainer wants to avoid dependency on mysql-server
package and wants to enable an ability to configure package with
dbconfig-common and remote connection to some mysql-server on remote
host.

Then in package.config:

    dbc_remote_questions_default='true'
    
    . /usr/share/dbconfig-common/dpkg/config 
    dbc_go dbconfig-test $@

Unfortunately true for dbc_remote_questions_default is overriden if set
in global /etc/dbconfig-common/conf because this config is executed
directly from dbc_go

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: dbconfig-common 1.8.47
ProcVersionSignature: Ubuntu 3.2.0-32.51-generic 3.2.30
Uname: Linux 3.2.0-32-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu14
Architecture: amd64
Date: Thu Oct 11 02:45:41 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120328)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=pl_PL.UTF-8
 SHELL=/bin/bash
SourcePackage: dbconfig-common
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: dbconfig-common (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug precise running-unity

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dbconfig-common in Ubuntu.
https://bugs.launchpad.net/bugs/1065331

Title:
  variables defined in maintanier script overriden by global config

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbconfig-common/+bug/1065331/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to