[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#178251: slang: don't do a dh_testroot in clean



On Sun, Mar 16, 2003 at 10:53:00PM -0500, Anthony DeRobertis wrote:
> 	Must clean be invoked as root?
> 
> Packages putting dh_testroot in the clean target assert so; current
> policy isn't so clear.
> 
> My personal opinion (subject to change with good arguments against it,
> of course) is that clean must not require root unless another target has
> been invoked as root. This means that for most packages, clean will
> never need root, because fakeroot isn't actually root.
> 
> Further, while we're at it, we may want to make clear the use of
> fakeroot for the binary target.

Since the binary target is invoked as root (be it fakeroot or su or
whatever, it doesn't matter), and the clean rule needs to clean out the
debian/tmp or equivalent directories, it needs root as well.

fakeroot dh_testroot works like a charm...

-- 
     2. That which causes joy or happiness.



Reply to: