Re: packages' config scripts creating files, chroots and buildds.

2009-03-25 Thread Frans Pop
Russ Allbery wrote: > debconf-devel(7): > > The config script should not need to modify the filesystem at all. It > just examines the state of the system, and asks questions, and debconf > stores the answers to be acted on later by the postinst script. > Conversely, the postinst script should alm

Re: packages' config scripts creating files, chroots and buildds.

2009-03-25 Thread Mark Brown
On Wed, Mar 25, 2009 at 08:50:29AM -0700, Russ Allbery wrote: > Personally, my first instinct would be to call that an RC bug, but I may > be missing some case where config needs to modify the file system. Given that one of the original goals of all this was to allow the config to be done on a di

Re: packages' config scripts creating files, chroots and buildds.

2009-03-25 Thread Russ Allbery
Peter Palfrader writes: > This raises some questions: > - should config scripts be allowed to create/touch/modify files >(I think the answer here is no) debconf-devel(7): The config script should not need to modify the filesystem at all. It just examines the state of the system, a

Re: packages' config scripts creating files, chroots and buildds.

2009-03-25 Thread Roger Leigh
On Wed, Mar 25, 2009 at 01:18:20PM +0100, Peter Palfrader wrote: > This raises some questions: It might also explain why someone found sbuild-createchroot was running apt-get upgrade on the host system. > - should config scripts be allowed to create/touch/modify files >(I think the answer he

Re: packages' config scripts creating files, chroots and buildds.

2009-03-25 Thread Frans Pop
On Wednesday 25 March 2009, Frans Pop wrote: > dpkg-preconfigure is part of the debconf package, and gets called using > the following configuration setting: > /etc/apt/apt.conf.d/70debconf: > DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";}; You can probably just remove this

Re: packages' config scripts creating files, chroots and buildds.

2009-03-25 Thread Frans Pop
>    o Is the fact that the config script is run on the host a bug in >      apt-get, dpkg, debconf, or apt-utils? dpkg-preconfigure is part of the debconf package, and gets called using the following configuration setting: /etc/apt/apt.conf.d/70debconf: DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-pr