Date: Thu, 23 Oct 2014 07:45:30 -0600 From: Warner Losh <imp@bsdimp.com> To: "Simon J. Gerraty" <sjg@juniper.net> Cc: FreeBSD Arch <freebsd-arch@freebsd.org> Subject: Re: Retiring WITH_INSTALL_AS_USER Message-ID: <E40CAE9C-0C6B-4D7C-879E-53926D0A775E@bsdimp.com> In-Reply-To: <21044.1414038558@chaos> References: <96C0B2BE-0621-4162-BBB7-7D34AEAB5FD0@gmail.com> <21044.1414038558@chaos>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_E0E7882C-4F02-457D-84FD-BF2151D2CB55 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Oct 22, 2014, at 10:29 PM, Simon J. Gerraty <sjg@juniper.net> wrote: > Warner Losh <imp@bsdimp.com> wrote: >=20 >> I=92d like to retire WITH_INSTALL_AS_USER. Brooks=92 NO_ROOT (which = I=92m >> also converting to WITHOUT_ROOT) is much better. WITH_INSTALL_AS_USER >=20 > Hmm I don't see anything in share/mk for NO_ROOT. > I see some tweaks in src/Makefile.inc1 though. > Is there more somewhere? Makefile.inc1 and etc/Makefile. It will woo be in share/mk. >> is broken. First, it requites you also define NO_FSCHG. Second, any >> Makefile that overrides the owner and also has to include src.opts.mk >> early to check options fails. It has been broken for some time (even >> before my conversion to src.opts.mk, since bsd.own.mk included = earlier >=20 > Sorry I hadn't noticed - but I think the only place we seriously > exercise it is in src/include and etc for distrib-dirs. > Losing the ablity to do that would be a problem. If it is in the tree, it needs to work. It is broken in about a dozen = places now. Perhaps not the ones that you use. >> Comments? >=20 > My only concern would be if it somehow depends on top-level build it > won't work for those of us who do that or at least not using > Makefile.inc1 >=20 > What can I look at to better understand NO_ROOT ? Makefile.inc1 is the only place it is documented right now. NO_ROOT = creates a METADATA file for the attributes of the file and does simple = copies instead. This lets you build entirely as an unpriv=92d user, but = still use makefs to get a filesystem with the proper attributes. In many = ways it is what you want, and you could get what you want by specifying = /dev/null for that METADATA if it were more tightly coupled. Warner --Apple-Mail=_E0E7882C-4F02-457D-84FD-BF2151D2CB55 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJUSQZ6AAoJEGwc0Sh9sBEABKUP/1P2FE5v/ThQKJL3Q5bW6sgn gLL3x5KeAuQiHgolMmDs6ZjS1LFVn5d04l2LYabF+U/J2dnhoQMsncW9xVp+jpCs 1Kzx2byFGTcChOVJlS3i/wy4h6Ajj+dSY9uCJYrAiyqB/pbSBjvWlXmCb8/ImTqk ut21kYBaPQ1kLmNC0P+7hPQfLJz3PK2tlypQTczOil2U1L5X7pGKeJdGrNZEOX94 6eM8C9O7w1lPVQ8Q3RkGP1VaKmUA6hrF1kkm9MNNEnInDQpHEnUUVKpIdvi0aLc6 QWobNuA+Sh13vyAFtnJejK0rGr2V3w1oCdVKXH8qreGozklxjhWvcN+/gpc6e/p2 l2oFfvbpyZ1PUqxKTnuL2g1Nl9XYWucIrs1uPUBy1DDzWONmjF/mA10jnU7m0yWe yLghfi932ZO0HqwJUQEg0rtHBRA0dGkLLScwJKCYzLit7RQoKZyDfAm92QXakJZc Bt/fm6nMnJ0z8dKN6wlWLXX5YttV04Ip4/VhTmjuYdS9mZliAqQe0NNE9PjQBtsW 6noJSd5WooMC6QYtzrRO2BeGGEcFiEqdHEesX5fXi3jwNQg9PMKis45n77v5I4HN fGCP37j1WBHwcpyPHBNc4jSRjhiChRWk7UwCmRsStRI1VsHlz4fPHtaSXqRD2jwx iTyoVcbTr8da2BddPe5f =tp3b -----END PGP SIGNATURE----- --Apple-Mail=_E0E7882C-4F02-457D-84FD-BF2151D2CB55--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E40CAE9C-0C6B-4D7C-879E-53926D0A775E>