From owner-freebsd-questions@freebsd.org Wed May 13 01:20:15 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D95C72E3259 for ; Wed, 13 May 2020 01:20:15 +0000 (UTC) (envelope-from bob@proulx.com) Received: from havoc.proulx.com (havoc.proulx.com [96.88.95.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49MH0Z65s0z4KQ8 for ; Wed, 13 May 2020 01:20:14 +0000 (UTC) (envelope-from bob@proulx.com) Received: from joseki.proulx.com (localhost [127.0.0.1]) by havoc.proulx.com (Postfix) with ESMTP id 1C0CD244 for ; Tue, 12 May 2020 19:20:04 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proulx.com; s=dkim2048; t=1589332804; bh=UooKp4huleuKFfC9hXxJJh90gbuA8APNyluIBA8gDMY=; h=Date:From:To:Subject:References:In-Reply-To:From; b=LG3OKF6SZKExN3BTV17jNKn1wgav7rlFRQoLTGyf1f4WEM/B7pEVNz/rQUrZYtS54 3ac6Qqc7tU/jV/r7QNvuP1AgruaWzQz2mJugxSYhGUPtiZo52kPT5dBEkC8vAkTpTV H6l8YwO2tyJEObbZjy1G8v+pEYfTX+VMdD1NfHJaI+9LeMJiIME5Lk3Fzkv9NvdSWH qWA8V/bOO9a2UeyM/AsP6OF8A2g5eVy9QZnLBoqDVaj9iV4ZPsQymWW0jfqY1StdMl Mtk4vzZ6cP0OEsY5GXDEKwHNCo6YVqTr1KHICdI4nUSwqCchFRFi0hMLtNIV0j+yc9 RgdKBsISWhOTg== Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id D78E3211D1 for ; Tue, 12 May 2020 19:20:03 -0600 (MDT) Received: by hysteria.proulx.com (Postfix, from userid 1000) id C37952DC93; Tue, 12 May 2020 19:20:03 -0600 (MDT) Date: Tue, 12 May 2020 19:20:03 -0600 From: Bob Proulx To: freebsd-questions@freebsd.org Subject: Re: On a serious note, what I'd change about FreeBSD hier(7) Message-ID: <20200512190812259650810@bob.proulx.com> References: <83788746a7d8a802d8af4b582e00827166febd1a.camel@tom.com> <20200506172115.cb3b572b.freebsd@edvax.de> <20200506214540.247500820cf8701968ac01c9@sohara.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200506214540.247500820cf8701968ac01c9@sohara.org> X-Rspamd-Queue-Id: 49MH0Z65s0z4KQ8 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=proulx.com header.s=dkim2048 header.b=LG3OKF6S; dmarc=none; spf=pass (mx1.freebsd.org: domain of bob@proulx.com designates 96.88.95.61 as permitted sender) smtp.mailfrom=bob@proulx.com X-Spamd-Result: default: False [-3.03 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[proulx.com:s=dkim2048]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[proulx.com]; DKIM_TRACE(0.00)[proulx.com:+]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:7922, ipnet:96.64.0.0/11, country:US]; IP_SCORE(-0.53)[ipnet: 96.64.0.0/11(-1.96), asn: 7922(-0.64), country: US(-0.05)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 May 2020 01:20:15 -0000 Steve O'Hara-Smith wrote: > Ottavio Caruso wrote: > > Polytropon wrote: > > > FreeBSD's general organisation keeps all non-OS stuff stored > > > in /usr/local; the directories owned by the OS have a specific > > > purpose which is reflected by their name and location > > > > I'd pretty much want to have all non-base stuff into somewhere else > > than /usr/local. > > Why ? /usr/local is explicitly for non-base stuff so what would go > in there ? What would go in /usr/local would be locally compiled applications that are outside of the base system, outside of the ports system, and are purely locally compiled from source programs. And anything else the local admin wanted to put there. > > I like NetBSD installing ports in /usr/pkg (or > > whenever you want set your $PREFIX to). I'd rather have /usr/local for > > my own personal software and avoid it messing up with official ports. > > Why fight the system when you could just have /usr/personal > or /site or /opt or something for your own stuff without changing existing > conventions. FreeBSD is the odd one out here in using /usr/local for system uses. In other systems, and I grew up on HP-UX, SunOS, old BSD, and so forth, have always reserved /usr/local for the local admin to populate. Using most from-source software the default install location is most typically /usr/local and therefore out of the box unless you fight with the upstream source locations (fighting with upstream really means overriding the default, I only said fighting because you did) then "make install" will typically install to /usr/local, potentially overwriting components from FreeBSD. Therefore on FreeBSD I use /local for those things. Which is defensible as perhaps being a better location. However to avoid potentially overwriting something in /usr/local I must reconfigure upstream source to avoid it each and every time. Bob