Re: debconf reconfiguration from postinst of another package

2014-05-07 Thread Wouter Verhelst
Hi Jonas, [re-sending, since my first attempt did not make the list] Op vrijdag 18 april 2014 12:43:40 schreef Jonas Smedegaard: Thanks, but (again) I am sorry if it was not clear: The *question* is about *debconf* irregardless of the *example* involving other details. Here's another

Re: debconf reconfiguration from postinst of another package

2014-05-07 Thread Jonas Smedegaard
Hi Wouter, Quoting Wouter Verhelst (2014-05-07 11:34:23) What you seem to want is a unified and standardized way for one package to provide an API for changing things about how the package will function, to other packages. Correct. While a worthwhile effort, I don't think this is what

Re: debconf reconfiguration from postinst of another package

2014-05-07 Thread Wouter Verhelst
Op woensdag 7 mei 2014 12:59:57 schreef Jonas Smedegaard: Hi Wouter, Quoting Wouter Verhelst (2014-05-07 11:34:23) What you seem to want is a unified and standardized way for one package to provide an API for changing things about how the package will function, to other packages.

Re: debconf reconfiguration from postinst of another package

2014-05-07 Thread Philip Hands
Wouter Verhelst wou...@debian.org writes: ... One way this could work is by adding a SETOTHER message (name could probably be better), which asks debconf to change a value for a given debconf question in another package ONLY if the answer to this question was never explicitly set to a

Re: debconf reconfiguration from postinst of another package

2014-05-07 Thread Wouter Verhelst
Op woensdag 7 mei 2014 12:19:31 schreef Philip Hands: Wouter Verhelst wou...@debian.org writes: One way this could work is by adding a SETOTHER message (name could probably be better), which asks debconf to change a value for a given debconf question in another package ONLY if the

Re: debconf reconfiguration from postinst of another package

2014-05-07 Thread Tollef Fog Heen
]] Wouter Verhelst You *could* have a script do db_set something to change the defaults and then run the postinst script (through dpkg-reconfigure), but that would run against the spirit of 10.7.4 IMO. That won't help, since dpkg-reconfigure will run the config script that should grab data

Re: debconf reconfiguration from postinst of another package

2014-05-07 Thread Philip Hands
Wouter Verhelst wou...@debian.org writes: Op woensdag 7 mei 2014 12:19:31 schreef Philip Hands: ... we could perhaps give public variables a version number, or only allow questions with such a version number as part of their name be manipulated from elsewhere. I don't think debconf needs to

Re: debconf reconfiguration from postinst of another package

2014-04-28 Thread Thorsten Glaser
Jonas Smedegaard dr at jones.dk writes: Please elaborate what you mean can trigger later. Simple example: Choosing via debconf to have adduser create homes below /srv/home instead of the default /home. Ah, sure. Admin installs adduser. adduser defaults to /home. Admin now installs your

Re: debconf reconfiguration from postinst of another package

2014-04-28 Thread Jonas Smedegaard
Quoting Thorsten Glaser (2014-04-28 19:22:11) Jonas Smedegaard dr at jones.dk writes: Please elaborate what you mean can trigger later. Simple example: Choosing via debconf to have adduser create homes below /srv/home instead of the default /home. Ah, sure. Admin installs adduser.

Re: debconf reconfiguration from postinst of another package

2014-04-20 Thread Thorsten Glaser
Jonas Smedegaard dr at jones.dk writes: How to reconfigure debconf from postinst of another package? I also thought that was absolutely forbidden. Note that, if, as an admin, I explicitly choose an option in debconf and then, latter, another package overwrite my choice (or even

Re: debconf reconfiguration from postinst of another package

2014-04-20 Thread Jonas Smedegaard
Quoting Thorsten Glaser (2014-04-20 14:04:22) Jonas Smedegaard dr at jones.dk writes: How to reconfigure debconf from postinst of another package? I also thought that was absolutely forbidden. Note that, if, as an admin, I explicitly choose an option in debconf and then, latter, another

Re: debconf reconfiguration from postinst of another package

2014-04-20 Thread Charles Plessy
Le Fri, Apr 18, 2014 at 03:56:41PM +0200, Jonas Smedegaard a écrit : I find it worrisome if only mutually coordinated packages can configure each other: I fear that that scales badly. Hi Jonas, first, thanks for working on the concept of using Debian packages to extensively reconfigure a

Re: debconf reconfiguration from postinst of another package

2014-04-20 Thread Jonas Smedegaard
Hi Charles, Quoting Charles Plessy (2014-04-20 15:14:17) Le Fri, Apr 18, 2014 at 03:56:41PM +0200, Jonas Smedegaard a écrit : I find it worrisome if only mutually coordinated packages can configure each other: I fear that that scales badly. [...] I do not see how [reconfiguring one package

Re: debconf reconfiguration from postinst of another package

2014-04-19 Thread Tollef Fog Heen
]] Jonas Smedegaard How to reconfigure one package from another? I don't think this is supported today at all, and any success at doing so would be a bug. If you have a package that uses debconf as the UI to ask questions that go into a configuration file, that's fine. If you then later

Re: debconf reconfiguration from postinst of another package

2014-04-18 Thread Jonas Smedegaard
Hi Paul, I thought subject of my mail made my question clear: How to reconfigure debconf from postinst of another package? Quoting Paul Wise (2014-04-18 04:02:47) On Thu, Apr 17, 2014 at 7:50 PM, Jonas Smedegaard wrote: * package foo-player + supports both JackD and PulseAudio, but

Re: debconf reconfiguration from postinst of another package

2014-04-18 Thread Vincent Danjean
On 18/04/2014 12:43, Jonas Smedegaard wrote: Hi Paul, I thought subject of my mail made my question clear: How to reconfigure debconf from postinst of another package? My opinion is that this is not allowed (but I did not checked explicitly in Policy, so I may be wrong). Calling

Re: debconf reconfiguration from postinst of another package

2014-04-18 Thread Jonas Smedegaard
Hi Vincent, Quoting Vincent Danjean (2014-04-18 14:41:18) On 18/04/2014 12:43, Jonas Smedegaard wrote: How to reconfigure debconf from postinst of another package? My opinion is that this is not allowed (but I did not checked explicitly in Policy, so I may be wrong). Calling

Re: debconf reconfiguration from postinst of another package

2014-04-18 Thread Paul Wise
On Fri, Apr 18, 2014 at 6:43 PM, Jonas Smedegaard wrote: Thanks, but (again) I am sorry if it was not clear: The *question* is about *debconf* irregardless of the *example* involving other details. Examples are generally less useful than knowing the exact circumstances that make you want a

Re: debconf reconfiguration from postinst of another package

2014-04-18 Thread Jonas Smedegaard
Quoting Paul Wise (2014-04-18 17:44:13) On Fri, Apr 18, 2014 at 6:43 PM, Jonas Smedegaard wrote: Thanks, but (again) I am sorry if it was not clear: The *question* is about *debconf* irregardless of the *example* involving other details. Examples are generally less useful than knowing the

debconf reconfiguration from postinst of another package

2014-04-17 Thread Jonas Smedegaard
How to reconfigure one package from another? I want to reconfigure packages from other packages. Example: * package foo-player + supports both JackD and PulseAudio, but only one + asks which method to use via debconf * package bar-studio-desktop + depends on xfce4, jackd2 and

Re: debconf reconfiguration from postinst of another package

2014-04-17 Thread Charles Plessy
Le Thu, Apr 17, 2014 at 01:50:40PM +0200, Jonas Smedegaard a écrit : How to reconfigure one package from another? I want to reconfigure packages from other packages. Example: * package foo-player + supports both JackD and PulseAudio, but only one + asks which method to use

Re: debconf reconfiguration from postinst of another package

2014-04-17 Thread Jonas Smedegaard
Quoting Charles Plessy (2014-04-17 14:17:41) Le Thu, Apr 17, 2014 at 01:50:40PM +0200, Jonas Smedegaard a écrit : How to reconfigure one package from another? If the maintainer scripts of the three packages can cooperate, have you considered using Dpkg triggers ? Sorry if that was unclear:

Re: debconf reconfiguration from postinst of another package

2014-04-17 Thread Paul Wise
On Thu, Apr 17, 2014 at 7:50 PM, Jonas Smedegaard wrote: * package foo-player + supports both JackD and PulseAudio, but only one + asks which method to use via debconf * package bar-studio-desktop + depends on xfce4, jackd2 and foo-player + conflicts against