From owner-freebsd-current@FreeBSD.ORG Sun Aug 26 20:31:29 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E41D61065670 for ; Sun, 26 Aug 2012 20:31:29 +0000 (UTC) (envelope-from namor@hemio.de) Received: from narnia.blumen-schwarz.de (narnia.blumen-schwarz.de [80.190.195.21]) by mx1.freebsd.org (Postfix) with ESMTP id 99AA08FC0C for ; Sun, 26 Aug 2012 20:31:29 +0000 (UTC) Received: from brln-4d0c294b.pool.mediaways.net ([77.12.41.75] helo=grinsebacke.dyndns.org) by narnia.blumen-schwarz.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1T5j2i-0001fE-2d for freebsd-current@freebsd.org; Sun, 26 Aug 2012 22:02:57 +0200 Date: Sun, 26 Aug 2012 22:02:46 +0200 From: namor To: freebsd-current@freebsd.org Message-ID: <20120826200246.GC3535@grinsebacke.dyndns.org> References: <97612B57-1255-4BB3-A6D3-FC74324C6D67@FreeBSD.org> <5036AE8B.9030807@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5036AE8B.9030807@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam_score: -1.0 X-Spam_score_int: -9 X-Spam_bar: - X-Spam_report: ------------- Start der SpamAssassin Auswertung --------------- Bei Fragen dazu bitte das Forum life.d.cvmx verwenden! Details der Inhaltsanalyse: (-1.0 Punkte, 5.0 benoetigt) -1.0 ALL_TRUSTED Nachricht wurde nur über vertrauenswürdige Rechner weitergeleitet ---------------- Ende der SpamAssassin Auswertung ----------------- Subject: Re: pkgng suggestion: renaming /usr/sbin/pkg to /usr/sbin/pkg-bootstrap X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Aug 2012 20:31:30 -0000 On Thu, Aug 23, 2012 at 03:28:27PM -0700, Doug Barton wrote: > On 8/23/2012 3:19 PM, Steve Wills wrote: > > Hi, > > > > It seems to me that renaming the pkg binary in /usr/sbin/pkg to /usr/sbin/pkg-bootstrap would make sense. From a user standpoint, it is confusing that running the command gets different results the second time it is run vs. the first time. I can imagine a user saying "I ran pkg, but it didn't do what they said it would. Now I run it again, and it does do what it is supposed to." Also, it would enable setting up a pkg-bootstrap man page separate from the pkg man page, without confusion about which one you're looking at. > > > > So, opinions? There may still be time to fix it for 9.1 if we can decide quickly. > > Yes please. > > Every time in the past that we have talked about moving the pkg_* tools > to the ports the corresponding change for the base was to have a > pkg_bootstrap tool that was a use once and forget kind of thing. I was > quite surprised when sbin/pkg was added, but since people tell me I > already comment on too much, I decided to wait and see what others thought. If I understand correctly, the main concern of the "pkg"-name fraction is to not confuse newbies. All you write is "pkg install foo" and pkg will bootstrap itself if not installed. You don't have to call "pkg-bootstrap" first (how would you know about it anyways? read pkg(8)?) - How about his: stick with /usr/sbin/pkg-boostrap - cat > /usr/sbin/pkg << EOF #!/bin/sh echo "To use pkg you have to bootstrap the pkgng installation first, please call /usr/sbin/pkg-bootstrap" EOF - pkg-debootstrap replaces/removes /usr/sbin/pkg messenger (above) after successful installation Alternatively, just call pkg-bootstrap (but this might leave the issue of one command doing two different things..) Regards