From owner-freebsd-current@FreeBSD.ORG Fri Aug 31 22:21:55 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08EAA106566B; Fri, 31 Aug 2012 22:21:55 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id A05848FC19; Fri, 31 Aug 2012 22:21:54 +0000 (UTC) Received: by obbun3 with SMTP id un3so8436948obb.13 for ; Fri, 31 Aug 2012 15:21:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=AnaRzjaaPY/rFgU3Z6mSOsl7ZIm+bhntzXNAB1JQdKs=; b=A/g4/0uhwmtiuofjKozJQ1mSha3JLevUZOMKwLvYcXTZT0uafBfDzEVIo7NqnYKEfl zhmK1QuRY4C3P77ezXhqLS8NbZege21YwuIqq14uRoEasfXyNkFyhhLmjcXCuS3y8P88 NtCEKgiiC+D0fV0D9uAUyXEVWqDWJo80I8J/jt1rtiauHjjgp7Didl4tdr01vkYonKH3 2jov7YPXAa3546BSzeY5dOb8Occ41pZNR+Xs4KlpR7xwMeteJBy2cMPOp35i833fy1J+ u37e0yvsOT65M9ab4PDKqttcmwO3eidKee+oF64mxHYNL6M4C1saiDqG9s5pUhRNQA0Q eq4A== MIME-Version: 1.0 Received: by 10.60.11.136 with SMTP id q8mr8982330oeb.132.1346451713969; Fri, 31 Aug 2012 15:21:53 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.182.208.70 with HTTP; Fri, 31 Aug 2012 15:21:53 -0700 (PDT) In-Reply-To: References: <97612B57-1255-4BB3-A6D3-FC74324C6D67@FreeBSD.org> <20120824081543.GB2998@ithaqua.etoilebsd.net> <50380269.6020003@FreeBSD.org> <20120825000148.GF37867@ithaqua.etoilebsd.net> <50396113.3080607@cyberleo.net> <20120826122649.GA8995@stack.nl> <20120826125846.GD37534@ithaqua.etoilebsd.net> <503A6D4B.9070606@FreeBSD.org> <20120826185810.GB42842@ithaqua.etoilebsd.net> <1346008112.1140.76.camel@revolution.hippie.lan> <503A8C17.8050006@FreeBSD.org> Date: Fri, 31 Aug 2012 15:21:53 -0700 X-Google-Sender-Auth: EyC9w91KmeD6OFOGZxt0HkVSLyo Message-ID: From: Craig Rodrigues To: Garrett Cooper Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: ports@freebsd.org, current@freebsd.org 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: Fri, 31 Aug 2012 22:21:55 -0000 Hi, I think the details of the patch would need to be worked out a bit, but I think you are on the right track. I think it would be nice to: (1) Have deprecation warnings in the legacy pkg_* tools. If someone types "pkg_add", maybe warn them that it is deprecated, and they should read UPDATING and type "pkg help add". (2) If $PKG_DBDIR/local.sqlite exists (usually /var/db/pkgs/local.sqlite), and someone types a legacy pkg_* command, then error out and warn them to use the new "pkg " equivalent. When I was playing with pkgng, I ran into some confusion when I typed the old commands after I had migrated my package database to the new system, so I have seen how this can be confusing for first-time users. Any *sensible* anti-foot shooting measures and useful diagnostics/warnings that we can put into the tools would help a lot. -- Craig Rodrigues rodrigc@crodrigues.org On Sun, Aug 26, 2012 at 4:09 PM, Garrett Cooper wrote: > > Rather than providing a solution for that problem because that's a > bigger architectural issue (and not my job to solve), I offer this patch I > quickly hacked up instead as my 2 cents for the discussion on how to make > users aware that pkg_install is dying/dead, as this is one case that needs > to be better handled. > Thanks, > -Garrett > >