variables defined in maintanier script overriden by global config

Bug #1065331 reported by neutrico
8
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dbconfig-common (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

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)

Revision history for this message
neutrico (neutrico) wrote :
James Page (james-page)
Changed in dbconfig-common (Ubuntu):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dbconfig-common (Ubuntu):
status: New → Confirmed
Revision history for this message
Chris Malton (chrism-u) wrote :

I, too, just ran into this building a package for one of our products.

dbc_remote_questions_default gets overridden, causing me problems!

Revision history for this message
Paul Gevers (paul-climbing) wrote :

Just a remark as the new maintainer of dbconfig-common in Debian.

Unfortunately, the behavior that you want is the wrong solution to the problem, as it would blindly overrule system administrators decisions. Therefore this bug is in essence wontfix.

However, what is a legitimate question is that maintainers should have a way to change priority of questions. This is requested in Debian bug 607171. No solution yet, but I will probably be working on it.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=607171

Revision history for this message
Paul Gevers (paul-climbing) wrote :

The fixable part of this bug was fixed in version 1.8.50 which is part of The Willy Werewolf. Closing this bug

Changed in dbconfig-common (Ubuntu):
status: Confirmed → Fix Released
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.