From owner-freebsd-ports@FreeBSD.ORG Fri Aug 24 08:15:47 2012 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 847371065678; Fri, 24 Aug 2012 08:15:47 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4E0C78FC0C; Fri, 24 Aug 2012 08:15:47 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q7O8FlOo070774; Fri, 24 Aug 2012 08:15:47 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q7O8FkTG070773; Fri, 24 Aug 2012 08:15:46 GMT (envelope-from bapt@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f Date: Fri, 24 Aug 2012 10:15:43 +0200 From: Baptiste Daroussin To: Steve Wills Message-ID: <20120824081543.GB2998@ithaqua.etoilebsd.net> References: <97612B57-1255-4BB3-A6D3-FC74324C6D67@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RASg3xLB4tUQ4RcS" Content-Disposition: inline In-Reply-To: <97612B57-1255-4BB3-A6D3-FC74324C6D67@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: ports@FreeBSD.org, current@FreeBSD.org Subject: Re: pkgng suggestion: renaming /usr/sbin/pkg to /usr/sbin/pkg-bootstrap X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2012 08:15:47 -0000 --RASg3xLB4tUQ4RcS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 23, 2012 at 06:19:57PM -0400, Steve Wills wrote: > Hi, >=20 > 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 th= at 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 w= hat they said it would. Now I run it again, and it does do what it is supp= osed to." Also, it would enable setting up a pkg-bootstrap man page separat= e from the pkg man page, without confusion about which one you're looking a= t. >=20 > So, opinions? There may still be time to fix it for 9.1 if we can decide = quickly. >=20 > Thanks, > Steve >=20 BTW for people who haven't tested and want to share their opinion, here is = how work /usr/sbin/pkg: it first checks if ${LOCALBASE}/sbin/pkg is there - if yes it directly execute ${LOCALBASE}/sbin/pkg with arguments passed t= o /usr/sbin/pkg - if no then it will determine you ABI (or take the one in environnement variable), and fetch the last available pkgng version from http://pkgbet= a... it will extract pkg-static and use it to install pkgng with itself. on installation is done: it executes ${LOCALBASE}/sbin/pkg with argumen= ts passed to /usr/sbin/pkg. Lots of people having ask in the early days of pkgng for a transparent boot= strap I have done it that way. On of the thing I forgot and kan@ has added is a prompt for the user in cas= e it is going to bootstrap. So that mean that for a normal user, on a fresh vanilla FreeBSD "pkg install vim-lite" will prompt the user asking if he wants to bootstrap pkgng, and once bootstraped proceed to the installation of vim-lite if pkgng is already there then it will just install vim-lite. It was just to clarify, so that anyone understand was this is about. I tend to like the bootstrap like it is now (I find it transparent, and str= aight forward) but as I said earlier I have no strong opinion on this, so it most people prefers a separate pkg-bootstrap tools then I'll do it :) regards, Bapt --RASg3xLB4tUQ4RcS Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlA3OC8ACgkQ8kTtMUmk6EwKfQCgkaBvYeH3mgmoyiOCXtaj/WFX G6sAn13g8uE8QbLYzFuHu7gvP513zEwJ =ezgl -----END PGP SIGNATURE----- --RASg3xLB4tUQ4RcS--