How to disable staging support in ports tree universally?
Matthew Seaman
matthew at FreeBSD.org
Sat Oct 12 15:47:55 UTC 2013
On 12/10/2013 14:44, Alexey Dokuchaev wrote:
> On Sat, Oct 12, 2013 at 09:15:25AM +0100, Matthew Seaman wrote:
>> Yes, there are a lot of changes happening at the moment. We're trying
>> to catch up with ten or more years of progress in a year or so. The
>> technical reasoning behind our implementing these changes has been
>> discussed elsewhere so I'll not rehash it further here other than to say
>> that the vast majority of ports users and developers are behind where
>> we're going with this.
>
> One of the most annoying things about staging (for me) is that it broke
> many ports "make install" from regular user. E.g. audio/faad and misc/mc
> are affected, just to name a few.
>
> At a glance, it happens because they first install files with 444 perms,
> and then try to do something on them. Previously it was done after su(1)
> had asked for root, but with staging, it's done as user, and thus fails.
That's what NEED_ROOT is intended for. If a port changes ownership or
does privileged things with permissions on files then you can't 'make
stage' as an ordinary user. Adding NEED_ROOT=yes to the port will cause
it to try and obtain rootly powers via su(1) in order to do that sort of
thing.
Looks like audio/faad has been stageified -- in which case a missing
NEED_ROOT is a bug, while misc/mc is still NO_STAGE=yes so shouldn't
have been affected at all yet.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1036 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20131012/aa47cca5/attachment.sig>
More information about the freebsd-ports
mailing list