Re: WITH_INSTALL_AS_USER broken?

From: Bryan Drewery <bdrewery_at_FreeBSD.org>
Date: Wed, 24 Aug 2016 10:06:53 -0700
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


Received on Wed Aug 24 2016 - 15:07:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:07 UTC