From owner-freebsd-current@FreeBSD.ORG Sun Nov 4 15:09:45 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 43AB97FE for ; Sun, 4 Nov 2012 15:09:45 +0000 (UTC) (envelope-from levitch@iglou.com) Received: from rdsmtp.iglou.com (rdsmtp.iglou.com [192.107.41.63]) by mx1.freebsd.org (Postfix) with ESMTP id EA9258FC14 for ; Sun, 4 Nov 2012 15:09:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=iglou.com; s=alpha; h=Content-Type:MIME-Version:References:Message-ID:In-Reply-To:Subject:cc:To:From:Date; bh=nwcmw50PRbhR4OIiT+uzOPgjhlrIYBysaBrPzBY6+Iw=; b=rsPrttZ/3SAd3TRAE+8DJ0h6MBE53KHeXyE/QK+tZpzxlf+yi4rP/u50WCL+ZKQB5NEeyHMvYHU/4XI25SxWXzr0FLZ/ZPFm5RNHT8dxPiVbujNcAUArJ+QnOiAWTnNcItD2P+hGHP53Tbhe8WLAY2L6ORP9oRsCC93uodiPCi4=; Received: from iglou4.iglou.com ([192.107.41.39]:48509 helo=mail.iglou.com) by rdsmtp.iglou.com with esmtpa (Exim MTA/8.19.3) (envelope-from ) id 1TV1pX-0006U4-D6 by authid with igloumta_auth for current@freebsd.org; Sun, 04 Nov 2012 10:09:43 -0500 Received: from shell1.iglou.com ([192.107.41.17]:38848 helo=shell1) by mail.iglou.com with esmtps (TLS cipher TLSv1:AES256-SHA:256) (Exim MTA/8.19.3) (envelope-from ) id 1TV1pX-0005UT-00; Sun, 04 Nov 2012 10:09:43 -0500 Date: Sun, 4 Nov 2012 10:09:42 -0500 (EST) From: Darrel X-X-Sender: levitch@shell1 To: Bryan Drewery Subject: Re: [solved]: r2421600 amd64 /var/db/pkg In-Reply-To: <50967473.8080808@shatow.net> Message-ID: References: <50967473.8080808@shatow.net> User-Agent: Alpine 2.00 (GSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Originating-IP: 192.107.41.17 X-IgLou-Customer: 3cb6f76205bd20f518810676a67a982b X-Mailman-Approved-At: Sun, 04 Nov 2012 16:47:52 +0000 Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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, 04 Nov 2012 15:09:45 -0000 >>> What you probably ran into is the common chicken and egg problem >>> where >>> if pkgng is upgraded ports, it blows up when it tries to deinstall the >>> package, or similarly, when portmaster is upgraded, it doesn't halt the >>> upgrade and restart it properly. >>> It's most likely still a problem; I'm going to doublecheck to make >>> sure >>> that's the case and file PRs if it is. >> >> Thanks, Garrett. For my current problem I am simply going to delete the >> errant portmaster-3.14 from /var/db/pkg and then run 'portmaster -a -f >> -D' with the hope that portmaster-3.14_7 can fix things. If not I will >> try reinstalling, the are only a few things installed- freeradius, >> postgresql, and about a dozen others. > > This is overkill. You either have a pkg_install database or a pkgng > database. Determining which will save you time. > > After you run pkg2ng, pkg_info will no longer work. It will complain > about corrupted packages, since all the data is gone, but portmaster has > stored additional information there, which confuses pkg_info. > > Check the output of 'pkg info'. If it lists all your packages, you are > done. Nothing more to do. > > If not, run pkg2ng. > > Also, you can see any packages that have not converted with: > find /var/db/pkg -name +CONTENTS > If nothing comes up, they are already all converted. > > Thanks, Bryan. Actually my fbsd10 machine already has portmaster reinstalling, which seems to be running alright. It has less than two dozen packages on it. I am looking at a fbsd9.1 machine right now, and it seems like a strange case considering your advice. If I run 'pkg info' or 'pkg_info' then all of the packages are listed. If I run 'find /var/db/pkg -name +CONTENTS' then all of the packages are found. Yet on that machine in /etc/make.conf exists 'WITH_PKGNG=yes' and I ran pkg2ng on the 15th of October. Darrel