From owner-freebsd-arch@FreeBSD.ORG Thu Oct 23 13:45:33 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C82C9F97 for ; Thu, 23 Oct 2014 13:45:33 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8EA0390E for ; Thu, 23 Oct 2014 13:45:33 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id at20so934900iec.25 for ; Thu, 23 Oct 2014 06:45:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=HG+RGxc/paz36afxE0hNNWscA75O7dwxPXRKQwRoo5Y=; b=UuHdWCcjLOoBlsVy0nW0ncFSex7Y1QO3yvT0OTYm5KDWmbyD/dZv4VS4TsI8WO29Tq GKzjlZLnWLn6+VRgqPLsWWnQa8wYdQ3RtP5CvWZONBxasoNAUcQF/qmYDXGbR+2CfadE Xm+9aNkBuQdR+kvjTn2qn4iAnxSpNV4vfVe6XtnDApvXs0alMcxnpZEMwpw0k8VBN0O0 ufUhNmsiJvwqY7AhvZRrZzwKO077bxjWows44tJ1F3WcPr5xyo+oPHpDAU3XxCJQJrkl MMXl5lONAjlwaH90A6GyjhREM+41wgYsdfOz9LxiIbkBbPO+94i8LbHhQVGgcHAd+3PH Xscg== X-Gm-Message-State: ALoCoQm8h5+HF4ulWkRqgToCR64YdnFVbSzKvIpnxRra0yvSKT4WYz7Eye5lRAxC5WmmHUPGSQZg X-Received: by 10.50.6.100 with SMTP id z4mr12472867igz.37.1414071932202; Thu, 23 Oct 2014 06:45:32 -0700 (PDT) Received: from netflix-mac.bsdimp.com ([50.253.99.174]) by mx.google.com with ESMTPSA id e5sm2213682igr.14.2014.10.23.06.45.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Oct 2014 06:45:31 -0700 (PDT) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_E0E7882C-4F02-457D-84FD-BF2151D2CB55"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Retiring WITH_INSTALL_AS_USER From: Warner Losh In-Reply-To: <21044.1414038558@chaos> Date: Thu, 23 Oct 2014 07:45:30 -0600 Message-Id: References: <96C0B2BE-0621-4162-BBB7-7D34AEAB5FD0@gmail.com> <21044.1414038558@chaos> To: "Simon J. Gerraty" X-Mailer: Apple Mail (2.1878.6) Cc: FreeBSD Arch X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2014 13:45:33 -0000 --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 wrote: > Warner Losh 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--