tech-pkg archive

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

Re: install and metalog



Taylor R Campbell <riastradh%NetBSD.org@localhost> writes:

>> Date: Mon, 23 Nov 2026 10:59:54 -0500
>> From: Greg Troxel <gdt%lexort.com@localhost>
>> 
>>   If I'm wrong, how does 'make package' as non-root end up with a
>>   correct package?  Do we really have to set SPECIAL_PERMS on every
>>   file that isn't supposed to be root/wheel, or is supposed to have any
>>   mode bits other than ugo?
>
> I think that is correct.  There is also NOT_FOR_UNPRIVILEGED for
> builds that simply don't work unprivileged.  (It is a boolean yes/no
> but I think maybe it should be a string instead to explain why, so
> it's easier for the next person to come along and fix it.)

Thanks - it makes sense that metalog support was never there and I'm
just wrongly expecting it.

> Is there a particular package or issue you are trying to make work
> that prompted this question?

I am helping someone new offlist with a package, and was thinking that
what felt like overly complicated SPECIAL_PERMS was unnecessary because
the upstream mkefile should have done it right and that should have
worked via metalog.  It's not really a problem now that I know that
SPECIAL_PERMS is actually necessary.

(I do think that it would perhaps be better if metalog worked, but I can
see the point that anything possibly setuid should be manfest in the
pkgsrc makefile, and I don't expect it to change anyway.)


Home | Main Index | Thread Index | Old Index