WITH_INSTALL_AS_USER broken?

Bryan Drewery bdrewery at FreeBSD.org
Wed Aug 24 17:07:20 UTC 2016


On 8/24/16 9:48 AM, Brooks Davis wrote:
> On Wed, Aug 24, 2016 at 07:57:04AM -0700, Bryan Drewery wrote:
>> On 8/24/2016 12:55 AM, Randy Westlund wrote:
>>> Is WITH_INSTALL_AS_USER supposed to work, or is it known to be broken?
>>>
>>> I'm cross compiling -current (r304727) for arm, and trying to install world as
>>> a user.  Install is trying to set the schg file flag on some libraries, which
>>> is failing because I'm not root.
>>>
>>
>> Has this ever worked?  I recently changed stuff here but I would think
>> that it wouldn't work before my changes too.
> 
> WITH_INSTALL_AS_USER never worked except in select individual directories.
> Anything complicated caused it to break and it definitely never worked
> for installworld.  For installworld you want NO_ROOT.

Thanks for confirming.  In this case install needs -U, but even then it
would lack proper permissions in the final product.  The mtree produced
by NO_ROOT would definitely be needed over a -U hack.

> 
> NO_ROOT support should be migrated to share/mk/* rather than overriding
> things in Makefile.inc1 and WITH_INSTALL_AS_USER should be removed or
> made into a synonym for NO_ROOT.
> 
> -- Brooks
> 


-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20160824/8c095152/attachment.sig>


More information about the freebsd-current mailing list