Rejected: Bug#203650: Poor recommendation in dpkg-statoverride section

2008-06-06 Thread Russ Allbery
This proposal concerns packages that need to have files owned by a dynamically created user. Currently, Policy recommends use of dpkg-statoverride in postinst to change the ownership to the dynamically created user after the user has been created. This Policy proposal would instead create the use

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-17 Thread Anthony Towns
On Fri, Aug 01, 2003 at 02:05:02AM -0400, Joey Hess wrote: > Andrew Suffield wrote: > > Hold that thought. We hashed out a few ideas on IRC; more in a few > > days. Meanwhile, let's assume it will be solved... anything else? > I missed that discussion, but the obvious approach in fakeroot is user >

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-05 Thread Colin Watson
On Mon, Aug 04, 2003 at 10:37:53PM -0500, Adam Heath wrote: > On Tue, 5 Aug 2003, Herbert Xu wrote: > > On Mon, Aug 04, 2003 at 11:05:54AM -0500, Adam Heath wrote: > > > You're confusing pre-depends and essentialness. > > > > What about the case if adduser needs a new feature in useradd and > > thu

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-04 Thread Adam Heath
On Tue, 5 Aug 2003, Herbert Xu wrote: > On Mon, Aug 04, 2003 at 11:05:54AM -0500, Adam Heath wrote: > > > > > You also need to ensure that adduser and anything that it depends on to > > > function are always available at all times just like libc6. > > > > You're confusing pre-depends and essential

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-04 Thread Herbert Xu
On Mon, Aug 04, 2003 at 11:05:54AM -0500, Adam Heath wrote: > > > You also need to ensure that adduser and anything that it depends on to > > function are always available at all times just like libc6. > > You're confusing pre-depends and essentialness. What about the case if adduser needs a new

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-04 Thread Colin Watson
On Mon, Aug 04, 2003 at 11:05:54AM -0500, Adam Heath wrote: > On Sat, 2 Aug 2003, Herbert Xu wrote: > > A single pre-dependency is not enough. You will need to convert all > > of adduser's dependencies into pre-dependencies, and probably most > > of the things it depends on as well. > > No. addu

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-04 Thread Adam Heath
On Sat, 2 Aug 2003, Herbert Xu wrote: > Adam Heath <[EMAIL PROTECTED]> wrote: > > > >> Objection. There is no way to create any user in preinst as the tool > >> to do so is not in an essential package. > > > > This is what pre-depends are for. > > A single pre-dependency is not enough. You will

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-04 Thread Matt Zimmerman
On Sun, Aug 03, 2003 at 11:49:43AM +0100, Julian Gilbey wrote: > Then change the line in the postinst: > > + if [ "$1" = configure ] > + then > for i in /usr/bin/foo /usr/sbin/bar > do > - if ! dpkg-statoverride --list $i >/dev/null > + if [ dpkg --compare-versions "$2" lt "2.3.4-

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-04 Thread Bob Hilliard
Jakob Bohm <[EMAIL PROTECTED]> writes: >dictdOops, no dependency on adduser dictd has depended on adduser since 1.7.1-1, which was uploaded 9 July 2002 . Regards, Bob -- _ |_) _ |_Robert D. Hilliard<[EMAIL PROTECTED]> |_) (_) |_) 1294 S.W. Seagull Way

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-04 Thread Jakob Bohm
On Mon, Aug 04, 2003 at 07:20:51AM +1000, Herbert Xu wrote: > On Sun, Aug 03, 2003 at 10:23:10PM +0200, Jakob Bohm wrote: > > > > Also, careful examination of the adduser implementation in > > woody indicates that the package really only needs its > > dependencies to be unpacked, at least to add s

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-04 Thread Jakob Bohm
On Sun, Aug 03, 2003 at 07:05:44PM -0400, Joey Hess wrote: > Jakob Bohm wrote: > > Note that only a few packages will need these dependencies, > > unlike libc6. Specifically, these packages will be needed by a > > subset of the packages that currently Depends: adduser . > > You have to depend on

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-03 Thread Joey Hess
Jakob Bohm wrote: > Note that only a few packages will need these dependencies, > unlike libc6. Specifically, these packages will be needed by a > subset of the packages that currently Depends: adduser . You have to depend on adduser? Oops. Adjust your numers accordingly. :-) -- see shy jo

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-03 Thread Herbert Xu
On Sun, Aug 03, 2003 at 10:23:10PM +0200, Jakob Bohm wrote: > > Also, careful examination of the adduser implementation in > woody indicates that the package really only needs its > dependencies to be unpacked, at least to add system users and > groups. The configure steps of adduser, passwd, and

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-03 Thread Colin Watson
On Sun, Aug 03, 2003 at 10:23:10PM +0200, Jakob Bohm wrote: > On Sat, Aug 02, 2003 at 09:59:13AM +1000, Herbert Xu wrote: > > A single pre-dependency is not enough. You will need to convert all > > of adduser's dependencies into pre-dependencies, and probably most of > > the things it depends on a

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-03 Thread Jakob Bohm
On Sat, Aug 02, 2003 at 09:59:13AM +1000, Herbert Xu wrote: > Adam Heath <[EMAIL PROTECTED]> wrote: > > > >> Objection. There is no way to create any user in preinst as the tool > >> to do so is not in an essential package. > > > > This is what pre-depends are for. > > A single pre-dependency is

Re: Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-03 Thread Manoj Srivastava
On Sat, 02 Aug 2003 09:59:13 +1000, Herbert Xu <[EMAIL PROTECTED]> said: > Adam Heath <[EMAIL PROTECTED]> wrote: >> >>> Objection. There is no way to create any user in preinst as the >>> tool to do so is not in an essential package. >> >> This is what pre-depends are for. > A single pre-depend

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-03 Thread Julian Gilbey
On Thu, Jul 31, 2003 at 06:24:18PM +0100, Andrew Suffield wrote: > for i in /usr/bin/foo /usr/sbin/bar > do >if ! dpkg-statoverride --list $i >/dev/null >then > dpkg-statoverride --update --add sysuser root 4755 $i >fi > done > > The corresponding dp

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-01 Thread Herbert Xu
Adam Heath <[EMAIL PROTECTED]> wrote: > >> Objection. There is no way to create any user in preinst as the tool >> to do so is not in an essential package. > > This is what pre-depends are for. A single pre-dependency is not enough. You will need to convert all of adduser's dependencies into pr

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-01 Thread Adam Heath
On Fri, 1 Aug 2003, Herbert Xu wrote: > Andrew Suffield <[EMAIL PROTECTED]> wrote: > > > > And appending this text to section 10.9: > > > > > > If you want files in a package to be owned by a dynamically allocated > > user or group, then you should create the user or group in preinst,

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-01 Thread Joey Hess
Andrew Suffield wrote: > Hold that thought. We hashed out a few ideas on IRC; more in a few > days. Meanwhile, let's assume it will be solved... anything else? I missed that discussion, but the obvious approach in fakeroot is user autovivification (to bottow a term from perl) on chown. -- see sh

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-08-01 Thread Herbert Xu
Andrew Suffield <[EMAIL PROTECTED]> wrote: > > And appending this text to section 10.9: > > > If you want files in a package to be owned by a dynamically allocated > user or group, then you should create the user or group in preinst, so > that it is present when the package is unpack

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-07-31 Thread Colin Watson
On Thu, Jul 31, 2003 at 01:16:35PM -0500, Adam Heath wrote: > However, perhaps having fakeroot divert adduser, and when adduser is then run > under fakeroot, a fakeroot-specific version would be used, that would > communicate with faked, would be better. That's problematic too. You imply that buil

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-07-31 Thread Andrew Suffield
On Thu, Jul 31, 2003 at 06:39:38PM +0100, Colin Watson wrote: > On Thu, Jul 31, 2003 at 06:24:18PM +0100, Andrew Suffield wrote: > > So, let's break down what happens a bit: > > > > - dpkg unpacks the files, with their original permissions > > - postinst creates a user > > - postinst adds a sta

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-07-31 Thread Carl Witty
On Thu, 2003-07-31 at 10:39, Colin Watson wrote: > On Thu, Jul 31, 2003 at 06:24:18PM +0100, Andrew Suffield wrote: > > So, let's break down what happens a bit: > > > > - dpkg unpacks the files, with their original permissions > > - postinst creates a user > > - postinst adds a statoverride to

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-07-31 Thread Adam Heath
On Thu, 31 Jul 2003, Andrew Suffield wrote: > Here's the current text of the latter part of section 10.9.1: > > > Given the above, dpkg-statoverride is essentially a tool for system > administrators and would not normally be needed in the maintainer > scripts. There is one type of sit

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-07-31 Thread Colin Watson
On Thu, Jul 31, 2003 at 06:24:18PM +0100, Andrew Suffield wrote: > So, let's break down what happens a bit: > > - dpkg unpacks the files, with their original permissions > - postinst creates a user > - postinst adds a statoverride to change the permissions > > The "problem" is that the user do

Bug#203650: Poor recommendation in dpkg-statoverride section

2003-07-31 Thread Andrew Suffield
Package: debian-policy Here's the current text of the latter part of section 10.9.1: Given the above, dpkg-statoverride is essentially a tool for system administrators and would not normally be needed in the maintainer scripts. There is one type of situation, though, where calls to d