From owner-freebsd-current@FreeBSD.ORG Sun Nov 4 13:58:21 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 365C6AFD for ; Sun, 4 Nov 2012 13:58:21 +0000 (UTC) (envelope-from bryan@shatow.net) Received: from secure.xzibition.com (secure.xzibition.com [173.160.118.92]) by mx1.freebsd.org (Postfix) with ESMTP id CA7E18FC1A for ; Sun, 4 Nov 2012 13:58:20 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=shatow.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sweb; b=flGonC UMqYJqUqKlyTfjb7fYz29OJN32Xn7EyP4f2cVCm1anvIlmEnckuZRmiItguZXmPj TYDHks7lITLaIRmnHvgaof8wKT1n71GFwF1va7GSsweZF34Eh0QMEnOf+Z0ZVQL1 SRyFUDq86bD68es8K4CadAbEWyryrgdXAHlAw= DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=shatow.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sweb; bh=xs5ddHGjrTqT 5LxbBGKmCI8aBBTQwuZzYIa/YdI6eOk=; b=I0KBAtvKNm+q71UQEL6dkLRXI6uH k2kVyEcvlu5BUU5sDHvY5BQYHZuGY+dLnJC83OPwU7iDS6Oy0EV+TJhFGvZGgf1c WdKNsS/qPOiXBQhdvr2MHGSjduVaaOhCW4YDTwTtKDD44UNk0SBvANr9l3tMzPzS v2UjkV9ZsUzOab0= Received: (qmail 28302 invoked from network); 4 Nov 2012 07:58:12 -0600 Received: from unknown (HELO ?10.10.0.115?) (bryan@shatow.net@10.10.0.115) by sweb.xzibition.com with ESMTPA; 4 Nov 2012 07:58:12 -0600 Message-ID: <50967473.8080808@shatow.net> Date: Sun, 04 Nov 2012 07:58:11 -0600 From: Bryan Drewery User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: Darrel Subject: Re: [solved]: r2421600 amd64 /var/db/pkg References: In-Reply-To: X-Enigmail-Version: 1.4.5 OpenPGP: id=3C9B0CF9; url=http://www.shatow.net/bryan/bryan.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 04 Nov 2012 15:12:05 +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 13:58:21 -0000 On 11/4/2012 5:06 AM, Darrel wrote: > > On Sat, 3 Nov 2012, Garrett Cooper wrote: > >> On Sat, Nov 3, 2012 at 6:15 PM, Darrel wrote: >> >> ... >> >> Yes, the existing man 8 pkg does not seem to match all of the facts. >> >> >> 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. Bryan