From owner-freebsd-arch@FreeBSD.ORG Thu Nov 10 18:25:32 2011 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D59F1065670 for ; Thu, 10 Nov 2011 18:25:32 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 13FA58FC0A for ; Thu, 10 Nov 2011 18:25:32 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id 7EEE32A28CC9; Thu, 10 Nov 2011 19:25:31 +0100 (CET) Date: Thu, 10 Nov 2011 19:25:31 +0100 From: Ed Schouten To: Warner Losh Message-ID: <20111110182531.GL2164@hoeg.nl> References: <20111110123919.GF2164@hoeg.nl> <20111110171605.GI2164@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4ybNbZnZ8tziJ7D6" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: arch@freebsd.org Subject: Re: The strangeness called `sbin' X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2011 18:25:32 -0000 --4ybNbZnZ8tziJ7D6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Warner, * Warner Losh , 20111110 18:38: > I'd honestly start small here with (1) move the ones that are > obviously wrong (and aren't specified by posix to be wrong). (2) make > it an option to just make one or two binaries directories with compat > symlinks (because there's a ton of scripts that just know where > binaries life). POSIX doesn't care about specific pathnames that much. According to the spec, only /, /dev, /dev/{console,null,tty} and /tmp are reserved. The rest can be arranged the way you like. The problem is that both proposals (being mine vs. the first option you mentioned) have regressions in some way or another: - Merging sbin with bin may potentially make stuff slower, because of redundant PATH lookups, under the assumption that people don't update their PATH. - Moving utilities from /usr/sbin to /usr/bin and vice versa can potentially cause even more breakage, since 3rd party applications may depend on their location. Even worse: if people don't properly run `make delete-old', they end up having multiple versions of the binary installed on their system. A few symlinks here and there isn't that bad. If we just make sure our base system can eventually work without them, most embedded systems can do so as well. --=20 Ed Schouten WWW: http://80386.nl/ --4ybNbZnZ8tziJ7D6 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQIcBAEBAgAGBQJOvBcbAAoJEG5e2P40kaK73wMP/27Ff8L0uv9Jhu+2jRmpuOit S4edQrtzE6MauKvYU4yrygXFERj5AClkYMOYiDKM0+ecxMJQ848VkHcAXkZz8aii wDA+jpoaGdu185CixTedNmY05WhoB6RzZg1jFWfikxd0OaLgBHJkNYcmr3t1r6er 2oeFZuCaj/Rt9ZbKd5Z2cc9zSzyoJnDGjKaT8U9sG7UiBTFK3w1+HSIDzoucT+su g87OJIx+abwDl4XANUsWXjHjiwg4w9EzpL+v1VH6hnvpErmNVF09sXoKM30sSVMT IBnVm+6GKa1IE+mflX5EIYow2oRLdomHFXZRZ8uCzUgD/SiAYBJdqKupQCw+NHat EtQV2GU6TgY6TKkuTMpSClbyWiyIgK5Bm804crC7laVdZDukDtX9xcUSlTZSmoEd tYsiuQzmzsmxOIld4MhwdL7HgkAECufgWu+a1Enq6bQubtIbbzCqFzy6izv5HRpf vigGBr5sqgcZRcynx4aa6920ahL10cPWTglBq7jMj302D8xga5B8f6TPVJ+iCqML YRSSu2aD3pPwJ2Vf1W9ifqRVEP9NH2cLI9J2MLF0Bhvc0I5SaOuI3PkCKCIl4vJT FIIi7yvG0If/xGxTq8wOAtvbo/K2NzAruCms97LX1CxADGjVYCCXYT2kiC6pVH4n rRuyzFyVce/gAZvKFBmy =fLQr -----END PGP SIGNATURE----- --4ybNbZnZ8tziJ7D6--