[Bug 66689] Re: dhcp3-server misuses debconf

2007-04-14 Thread Martin Pitt
Indeed xserver-xorg is a package which does it horribly wrong. It
clobbers the users' configuration instead of reading the users'
modifications from xorg.conf first. There are several precautions in the
maintainer scripts to ensure that they are not accidentally overwritten
on a package upgrade.

postfix somewhat shys away from the problem by defaulting to 'no
configuration' if main.cf already exists.

Prefering the configuration file over debconf settings is the way that
man debconf-devel documents, and I wholeheartedly agree to it.
debconf is not a permanent configuration database, but a cache (it's in
/var/cache/ for that reason), the authoritative configuration is in
configuration files in /etc, just as in any other Unix.

I am aware of above packages, but I would rather seem them getting fixed
instead of breaking behaviour of even more packages.

So maybe we should devote this bug to xserver-xorg then?

-- 
dhcp3-server misuses debconf
https://bugs.launchpad.net/bugs/66689
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[EMAIL PROTECTED]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66689] Re: dhcp3-server misuses debconf

2007-04-13 Thread valentyn
The bug (in different wording) is using debconf settings in dhcp3-server is 
useless. The workaround (in different wording) is don't use debconf.
So the workaround above as sent by Valentijn Sessink (that's me :) is no more 
than another way to state the bug.

-- 
dhcp3-server misuses debconf
https://bugs.launchpad.net/bugs/66689
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[EMAIL PROTECTED]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66689] Re: dhcp3-server misuses debconf

2007-04-13 Thread Martin Pitt
I'm afraid I fail to  see the problem here. I am perfectly able to
change /etc/default/dhcp3-server with 'sudo dpkg-reconfigure
dhcp3-server'. The .config script looks sane as well, it reads the
current setting from /etc/default/dhcp3-server, then asks the user about
changing it, then writes it back in the postinst.

Maybe the misunderstanding here is that the reporter expects debconf
settings to dominate configuration files. This is wrong, configuration
files are holy and they must never be changed noninteractively by
package scripts. Can you please confirm that I understood this report
correctly? If not, please elaborate about the problem.

-- 
dhcp3-server misuses debconf
https://bugs.launchpad.net/bugs/66689
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[EMAIL PROTECTED]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66689] Re: dhcp3-server misuses debconf

2007-04-13 Thread Martin Pitt
So there are two valid approaches:

  (1) Just set the value directly in the config file
  (2) Delete the config file and use debconf, if you prefer this.

-- 
dhcp3-server misuses debconf
https://bugs.launchpad.net/bugs/66689
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[EMAIL PROTECTED]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 66689] Re: dhcp3-server misuses debconf

2007-04-13 Thread Valentijn Sessink
Martin Pitt schreef:
 I'm afraid I fail to  see the problem here. I am perfectly able to
 change /etc/default/dhcp3-server with 'sudo dpkg-reconfigure
 dhcp3-server'. The .config script looks sane as well, it reads the
 current setting from /etc/default/dhcp3-server

Why should it?

 then asks the user about
 changing it, then writes it back in the postinst.
 
 Maybe the misunderstanding here is that the reporter expects debconf
 settings to dominate configuration files. This is wrong, configuration
 files are holy and they must never be changed noninteractively by
 package scripts.

That's not true. Try for example:
dpkg-reconfigure xserver-xorg

Or even better, try:

echo 'postfix postfix/root_addressstring  snork' |
  debconf-set-selections
dpkg-reconfigure -fnoninteractive postfix

You'll see the postfix config file getting changed (and mind you, root
mail is redirected to a probably non-existing user named snork, so
don't try this at home)

That's the behaviour I expect from dhcp3-server as well, instead of
ignoring debconf-settings alltogether and making up its own mind.

 Can you please confirm that I understood this report
 correctly? If not, please elaborate about the problem.

Well, I think you did understand what I mean, but your answer doesn't
convince me yet, as there are two major packages that behave differently.

V.

-- 
dhcp3-server misuses debconf
https://bugs.launchpad.net/bugs/66689
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[EMAIL PROTECTED]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66689] Re: dhcp3-server misuses debconf

2007-04-12 Thread Fabián Rodríguez
This is being escalated by Canonical Support.

** Summary changed:

- P3: dhcp3-server misuses debconf
+ dhcp3-server misuses debconf

-- 
dhcp3-server misuses debconf
https://bugs.launchpad.net/bugs/66689
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[EMAIL PROTECTED]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66689] Re: dhcp3-server misuses debconf

2007-01-17 Thread Fabián Rodríguez
Possible workaround sent by Valentijn:

Workaround found: put the option you want straight into the dhcp3-server
config file. Later on, it might be reflected in debconf automatically
:-S

** Changed in: dhcp3 (Ubuntu)
   Importance: Undecided = Low
 Assignee: (unassigned) = Fabián Rodríguez
   Status: Unconfirmed = Needs Info

-- 
dhcp3-server misuses debconf
https://launchpad.net/bugs/66689

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 66689] Re: dhcp3-server misuses debconf

2007-01-16 Thread Fabián Rodríguez
For some reason reusing a URL marked this (wrongly) as needing fix in
banshee.

-- 
dhcp3-server misuses debconf
https://launchpad.net/bugs/66689

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66689] Re: dhcp3-server misuses debconf

2007-01-16 Thread Scott Robinson
** Changed in: banshee (Ubuntu)
   Status: Unconfirmed = Rejected

-- 
dhcp3-server misuses debconf
https://launchpad.net/bugs/66689

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs