From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 997A81384B4 for ; Thu, 26 Nov 2015 15:12:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC3F321C043; Thu, 26 Nov 2015 15:12:08 +0000 (UTC) Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BC35A21C00C for ; Thu, 26 Nov 2015 15:12:07 +0000 (UTC) Received: by wmec201 with SMTP id c201so35411208wme.0 for ; Thu, 26 Nov 2015 07:12:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=0MLV/LPoIXwWB1ElfPszUl+V5jfnZeTYaBkU2jjHbv8=; b=m9bISQeuOJAB1PttHuoQdAbOA5BWE4P0H4qPwbWYZYJGnE02Bw+ZQENGmvTqh2DGgR +ijfESha/SNDQWl4UXbRkn3U+E+EH/g3044b4EsoK73VrcTJstq/Komc/V5wtI1CEwbO 3ph3yCqP3NdB9sVYR6Y3svsAQdMFC/FzowBZSeiYm8GsiP//dZwS0R/4PRipsSlThr8L VYbqZHoRui+eg5lFXvNyvbvKp2ynv9sV6v2pERmty88LotjDW0WRFvnURkVPCL7oeXb0 cpYaK18r3xpY8Z+kdWKZaPKbVI6JdOsbeQLi3XLXvvavkp3TTzSJ2nwtNxXFEFeTZZqu AcYQ== X-Received: by 10.194.92.229 with SMTP id cp5mr49801392wjb.163.1448550726594; Thu, 26 Nov 2015 07:12:06 -0800 (PST) Received: from [172.20.0.40] ([165.255.112.248]) by smtp.googlemail.com with ESMTPSA id s189sm3151626wmf.16.2015.11.26.07.12.04 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Nov 2015 07:12:05 -0800 (PST) Subject: Re: [gentoo-dev] Re: rfc: adding sbin directories to PATH for all users To: gentoo-dev@lists.gentoo.org References: <20151125171011.GA8731@whubbs1.ad.gaikai.biz> <5655F183.70102@gentoo.org> <22101.63577.329581.418529@a1i15.kph.uni-mainz.de> <20151125191738.205f8375.mgorny@gentoo.org> <5656098A.5040100@gentoo.org> <20151125202355.744e8366.mgorny@gentoo.org> <565616E9.9070501@gentoo.org> From: Alan McKinnon X-Enigmail-Draft-Status: N1110 Message-ID: <56572102.3080404@gmail.com> Date: Thu, 26 Nov 2015 17:10:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: dd8e6ac6-2f8e-4d5c-b1e4-39356295063c X-Archives-Hash: 92b9349667a887e92cfaf49b6731b60e On 26/11/2015 17:03, Duncan wrote: > Kristian Fiskerstrand posted on Wed, 25 Nov 2015 21:15:37 +0100 as > excerpted: > >> On 11/25/2015 09:16 PM, Mike Gilbert wrote: >>> On Wed, Nov 25, 2015 at 2:23 PM, Michał Górny >>> wrote: >>>> On Wed, 25 Nov 2015 11:18:34 -0800 Daniel Campbell >>>> wrote: >>>>> Maybe I'm missing something, but `df` is in /bin. Do you use >>>>> something else to determine free space? >>>> >>>> btrfs fi df >>> >>> In thins case, upstream's build system installs everything in bindir, >>> which I override to /sbin. I think that's where the ebuild was >>> installing things when I inherited it from the previous maintainer. >>> >>> If William's PATH proposal is not implemented, I would be happy to move >>> it all to /bin if so desired. Just file a bug. >> >> If moving it in the first place, wouldn't it go to /usr/bin as not being >> essential to system? > > It's essential to system, as btrfs device scan is needed before mounting > a multi-device btrfs, and btrfs check is a an fsck that may be needed to > fix a broken btrfs /usr/ mount. > > Else reiserfsck, e2fsck, fsck itself, and others, should be in /usr/sbin, > not in /sbin/. > > btrfs is the general userspace binary. Subcommands such as check and > device scan require device privs and don't normally work when run as > ordinary users, but some subcommands such as filesystem df don't need > device privs and work just fine when run as ordinary users. > > (Not that I particularly care about the topic of the thread in general, > as here: /sbin -> bin, /usr -> ., so all four locations, /bin, /sbin, > /usr/bin, /usr/sbin, point to the same single /bin, and I no longer have > to worry about which dir something's in, unless I'm checking the > canonical path as installed by the package, for which equery belongs > works nicely. But I'm a btrs user and upstream btrfs list regular so I > care about that angle, thus this reply. =:^) Picking a random (i.e. most recent) post to reply to. I don't really care what the default PATH is, I always set it to my liking anyway. I understand all the historical arguments but I don't think they matter too much these days anymore as times and OSes do change. I feel that the / vs /usr split is rather pointless on modern systems, but I do like the bin vs sbin split because it makes my life easier (which is the entire point of any env var when you think about it). When working as a user I'd rather not have my tab completion results cluttered with apps I have to be root to use properly. I vote to leave things as they are, and I also vote for showing people who don;t like it how to change $PATH -- Alan McKinnon alan.mckinnon@gmail.com