From owner-freebsd-ports@FreeBSD.ORG Sat Apr 5 04:33:23 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7C8FE9CA for ; Sat, 5 Apr 2014 04:33:23 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F15F2C27 for ; Sat, 5 Apr 2014 04:33:22 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.8/8.14.8) with ESMTP id s3549oMr042793 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 4 Apr 2014 22:09:50 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.8/8.14.8/Submit) with ESMTP id s3549nMS042790; Fri, 4 Apr 2014 22:09:50 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 4 Apr 2014 22:09:48 -0600 (MDT) From: Warren Block To: sindrome Subject: RE: pkgng vs. portupgrade reporting ports outdated In-Reply-To: <001501cf5083$8dc109d0$a9431d70$@gmail.com> Message-ID: References: <533F36F0.8020803@rcn.com> <000601cf505e$d3b6bc70$7b243550$@gmail.com> <001501cf5083$8dc109d0$a9431d70$@gmail.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Fri, 04 Apr 2014 22:09:50 -0600 (MDT) Cc: ports@freebsd.org, 'Robert Huff' X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2014 04:33:23 -0000 On Fri, 4 Apr 2014, sindrome wrote: > From: Warren Block [mailto:wblock@wonkity.com] > Sent: Friday, April 04, 2014 9:23 PM > To: sindrome > Cc: 'Robert Huff'; ports@freebsd.org > Subject: RE: pkgng vs. portupgrade reporting ports outdated > > On Fri, 4 Apr 2014, sindrome wrote: > >> There is a major inconsistency with what pkg_version -v says is >> outdated and what pkgng says. > > Of course. pkg_version looks at the text files in /var/db/pkg, while pkg > looks at the database local.sqlite in that directory. The first step in > using pkg is running pkg2ng, which imports the old information from the text > files into the sqlite table. After that, pkg_version should not be used. > It's getting information from an outdated database. > > > So now the way to keep ports up-to-date is to execute 'pkg update' and 'pkg > upgrade'? > > Are you saying I shouldn't svn update the ports tree anymore? No, I did not say that. By switching from the old pkg_* tools to pkg, all you have done is changed which database is being used to track what is installed. Nothing else needs to change.