Re: WITH_INSTALL_AS_USER broken?
On Wed, Aug 24, 2016 at 04:48:54PM +, Brooks Davis wrote: > 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. > > 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 Defining NO_ROOT in src.conf worked, thanks. Although it doesn't seem to be documented in src.conf(5) or anywhere else I can find. signature.asc Description: PGP signature
Re: WITH_INSTALL_AS_USER broken?
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 signature.asc Description: OpenPGP digital signature
Re: WITH_INSTALL_AS_USER broken?
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. 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 signature.asc Description: PGP signature
Re: WITH_INSTALL_AS_USER broken?
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. >> -- > Installing everything >> -- >> cd /usr/home/randy/tegra/freebsd; make -f Makefile.inc1 install >> ===> lib (install) >> ===> lib/csu (install) >> ===> lib/csu/arm (install) >> install -o randy -g 1001 -m 444 crt1.o crti.o crtn.o Scrt1.o gcrt1.o >> /usr/home/randy/tegra/freebsd-root/usr/lib/ >> ===> lib/libc (install) >> install -C -o randy -g 1001 -m 444 libc.a >> /usr/home/randy/tegra/freebsd-root/usr/lib/ >> install -C -o randy -g 1001 -m 444 libc_p.a >> /usr/home/randy/tegra/freebsd-root/usr/lib/ >> install -s -o randy -g 1001 -m 444 -fschg -S libc.so.7 >> /usr/home/randy/tegra/freebsd-root/lib/ >> install: /usr/home/randy/tegra/freebsd-root/lib/libc.so.7: chflags: >> Operation not permitted >> *** Error code 71 >> >> Stop. >> make[5]: stopped in /usr/home/randy/tegra/freebsd/lib/libc >> *** Error code 1 -- Regards, Bryan Drewery signature.asc Description: OpenPGP digital signature