[gentoo-dev] Re: Remaining PMS todo list etc

2008-03-21 Thread Ryan Hill
Ciaran McCreesh wrote: On Thu, 20 Mar 2008 18:02:31 -0600 Ryan Hill <[EMAIL PROTECTED]> wrote: How about just checking EUID == 0 in src_test and skip the tests (with a ewarn message) if it doesn't match your needs? I thought I remembered someone raising a stink about checking permissions being

Re: [gentoo-dev] Re: Remaining PMS todo list etc

2008-03-21 Thread Ciaran McCreesh
On Fri, 21 Mar 2008 12:47:37 +0100 Christian Faulhammer <[EMAIL PROTECTED]> wrote: > Great, I accept that it is wrong, but can you tell me how to actually > rewrite it? Test for capabilities (read/write) on files or is there a > sane way to tell? Uh, test the condition that you actually want to

[gentoo-dev] Re: Remaining PMS todo list etc

2008-03-21 Thread Christian Faulhammer
Hi, Ciaran McCreesh <[EMAIL PROTECTED]>: > On Thu, 20 Mar 2008 08:52:40 +0100 > Christian Faulhammer <[EMAIL PROTECTED]> wrote: > > if has userpriv ${FEATURES} && ! has usersandbox ${FEATURES};then > > make check-local || die "test suite failed" > > else > > ewarn "Activate FEATURES=userp

Re: [gentoo-dev] Re: Remaining PMS todo list etc

2008-03-21 Thread Ciaran McCreesh
On Thu, 20 Mar 2008 18:02:31 -0600 Ryan Hill <[EMAIL PROTECTED]> wrote: > > How about just checking EUID == 0 in src_test and skip the tests > > (with a ewarn message) if it doesn't match your needs? > > I thought I remembered someone raising a stink about checking > permissions being a race condi

[gentoo-dev] Re: Remaining PMS todo list etc

2008-03-20 Thread Ryan Hill
Marius Mauch wrote: On Wed, 19 Mar 2008 18:32:41 -0600 Ryan Hill <[EMAIL PROTECTED]> wrote: We seriously need a PM-independent way of saying "run the testsuite", "run the testsuite with user privledges", and "run the testsuite with root privledges if you can, otherwise forget it". Also requi

Re: [gentoo-dev] Re: Remaining PMS todo list etc

2008-03-20 Thread Ciaran McCreesh
On Thu, 20 Mar 2008 08:52:40 +0100 Christian Faulhammer <[EMAIL PROTECTED]> wrote: > if has userpriv ${FEATURES} && ! has usersandbox ${FEATURES};then > make check-local || die "test suite failed" > else > ewarn "Activate FEATURES=userpriv and deactivate \ > FEATURES=users

[gentoo-dev] Re: Remaining PMS todo list etc

2008-03-20 Thread Christian Faulhammer
Hi, Ciaran McCreesh <[EMAIL PROTECTED]>: > On Wed, 19 Mar 2008 18:32:41 -0600 > Ryan Hill <[EMAIL PROTECTED]> wrote: > > > * 174335: Some ebuild use FEATURES. Can we get them to stop doing > > > that, or do we have to force package managers to emulate it? > > > > We seriously need a PM-independe

Re: [gentoo-dev] Re: Remaining PMS todo list etc

2008-03-20 Thread Ciaran McCreesh
On Wed, 19 Mar 2008 18:32:41 -0600 Ryan Hill <[EMAIL PROTECTED]> wrote: > > * 174335: Some ebuild use FEATURES. Can we get them to stop doing > > that, or do we have to force package managers to emulate it? > > We seriously need a PM-independent way of saying "run the testsuite", > "run the testsu

Re: [gentoo-dev] Re: Remaining PMS todo list etc

2008-03-19 Thread Marius Mauch
On Wed, 19 Mar 2008 18:32:41 -0600 Ryan Hill <[EMAIL PROTECTED]> wrote: > Ciaran McCreesh wrote: > > There's an updated, pre-built copy of current PMS at: > > > > http://dev.gentoo.org/~spb/pms.pdf > > Thanks for keeping up with this. > > > * 174335: Some ebuild use FEATURES. Can we get the

[gentoo-dev] Re: Remaining PMS todo list etc

2008-03-19 Thread Ryan Hill
Ciaran McCreesh wrote: There's an updated, pre-built copy of current PMS at: http://dev.gentoo.org/~spb/pms.pdf Thanks for keeping up with this. * 174335: Some ebuild use FEATURES. Can we get them to stop doing that, or do we have to force package managers to emulate it? We seriously