From owner-freebsd-questions@FreeBSD.ORG Wed Apr 7 09:13:22 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BB11106564A for ; Wed, 7 Apr 2010 09:13:22 +0000 (UTC) (envelope-from fbsd1@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id 47A568FC08 for ; Wed, 7 Apr 2010 09:13:22 +0000 (UTC) Received: from [10.0.10.3] ([202.69.174.226]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 7 Apr 2010 02:13:22 -0700 Message-ID: <4BBC4CA9.6090807@a1poweruser.com> Date: Wed, 07 Apr 2010 17:13:13 +0800 From: Fbsd1 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Polytropon References: <4BBC3343.8070703@a1poweruser.com> <20100407093536.cab35b04.freebsd@edvax.de> In-Reply-To: <20100407093536.cab35b04.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 07 Apr 2010 09:13:22.0245 (UTC) FILETIME=[922A8750:01CAD632] X-Sender: fbsd1@a1poweruser.com Cc: FreeBSD Questions Subject: Re: usage of /usr/bin X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2010 09:13:22 -0000 Polytropon wrote: > On Wed, 07 Apr 2010 15:24:51 +0800, Fbsd1 wrote: >> Why are there RELEASE base files in /usr/bin. I thought /usr was to only >> contain binaries installed from ports or packages. > > No. The /usr/local subtree (LOCAL) is for local additions (ports > and packages), while things outside this structure usually belong > to the system itself; I'm excluding mounted filesystem and other > things here for a moment. > > /usr/ contains the majority of user utilities and applications > > bin/ common utilities, programming tools, and applica- > tions > > But: > > local/ local executables, libraries, etc. Also used as the > default destination for the FreeBSD ports framework. > Within local/, the general layout sketched out by > hier for /usr should be used. Exceptions are the > man directory (directly under local/ rather than > under local/share/), ports documentation (in > share/doc//), and /usr/local/etc (mimics > /etc). > > Because we are on FreeBSD, there's excellent documentation > that shows how and why the system tree has a well intended > layout. :-) > > The command > > % man hier > > will explain everything in detail. > > > > But that is not true. The postfix port populates /usr/bin. And I am sure postfix is not the only port to do this also. This intermingling of RELEASE binaries and port binaries in /usr/bin is a really big problem when trying to build jails. Any past ports which have been included into the base release should not be in /usr period. Saying system user utilizes are in /user/bin then why is fdisk or sysinstall not there also. That don't make sense. It time to modernize the directory layout keeping all RELEASE binaries out of /usr. I would think moving the /usr RELEASE binaries by the RELEASE development team is a far smaller task then reviewing all 21,500 ports for the bad ones that don't target /usr/local/bin and then correcting their make files. Before jails this problem was not a problem, But with the growing usage of jails this is becoming a major incentive to not use jails at all.