From owner-freebsd-ports@FreeBSD.ORG Thu May 29 15:22:02 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F45A1065680; Thu, 29 May 2008 15:22:02 +0000 (UTC) (envelope-from dan@langille.org) Received: from nyi.unixathome.org (nyi.unixathome.org [64.147.113.42]) by mx1.freebsd.org (Postfix) with ESMTP id 556E38FC0C; Thu, 29 May 2008 15:22:01 +0000 (UTC) (envelope-from dan@langille.org) Received: from localhost (localhost [127.0.0.1]) by nyi.unixathome.org (Postfix) with ESMTP id 12D0D508F3; Thu, 29 May 2008 16:21:54 +0100 (BST) X-Virus-Scanned: amavisd-new at unixathome.org Received: from nyi.unixathome.org ([127.0.0.1]) by localhost (nyi.unixathome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oQ1ApmZ6RS1F; Thu, 29 May 2008 16:21:48 +0100 (BST) Received: from [192.168.2.5] (phl-nat.afilias.info [67.200.48.3]) by nyi.unixathome.org (Postfix) with ESMTPSA id 17AE35089D; Thu, 29 May 2008 16:21:46 +0100 (BST) In-Reply-To: <20080528140010.GA49092@it.ca> References: <85B3D23B-90E4-467F-B1CA-F2C17A4F3589@langille.org> <20080528101008.GX92161@amilo.cenkes.org> <0EA7D07A-93A5-4D79-82EA-1F041D9DB89F@langille.org> <20080528140010.GA49092@it.ca> Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3BF383A3-CDEC-4900-837D-B72D9660C248@langille.org> Content-Transfer-Encoding: 7bit From: Dan Langille Date: Thu, 29 May 2008 11:21:22 -0400 To: freebsd-ports@freebsd.org X-Mailer: Apple Mail (2.753) Cc: ports@freebsd.org Subject: Re: pkg_delete: package 'libvorbis-1.2.0,3' doesn't have a prefix 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: Thu, 29 May 2008 15:22:02 -0000 On May 28, 2008, at 10:00 AM, Paul Chvostek wrote: > On Wed, May 28, 2008 at 07:46:05AM -0400, Dan Langille wrote: >> >> On May 28, 2008, at 6:10 AM, Andrew Pantyukhin wrote: >> >>> On Tue, May 27, 2008 at 10:23:51PM -0400, Dan Langille wrote: >>>> Can you tell me why this portupgrade fails? >>>> >>>> creating seeking_example >>>> Making all in vq >>>> ---> Backing up the old version >>>> tar: +COMMENT: Cannot stat: No such file or directory >>>> tar: +DESC: Cannot stat: No such file or directory >>>> tar: Error exit delayed from previous errors. >>> >>> Because you lost a couple of files in /var/db/pkg? >> >> A poor question on my part. >> >> How can I make this portupgrade succeed? > > If the problem is only that those two files are missing from > /var/db/pkg/*/, you can likely just touch(1) them and be on your way. > > If other files are missing, you're in a little more trouble, but I've > gotten out of this simply by installing the port manually with a > FORCE_PKG_REGISTER. That is, force a reinstall without using > portupgrade: > > # cd /usr/ports/foo/bar > # make all install clean FORCE_PKG_REGISTER=1 > # pkgdb -F The install went well. Then the pkgdb -F was: [dan@ngaio:/usr/ports/audio/libvorbis] $ sudo pkgdb -F ---> Checking the package registry database [Updating th.. done] in /var/db/pkg ... - 653 packages found (-1 +2) (...) Duplicated origin: audio/libvorbis - libvorbis-1.2.0,3 libvorbis-1.2.0_2,3 Unregister any of them? [no] yes Unregister libvorbis-1.2.0,3 keeping the installed files intact? [no] yes -> libvorbis-1.2.0_2,3 is kept. --> Saving the libvorbis-1.2.0,3's +CONTENTS file as /var/db/pkg/ libvorbis-1.2.0_2,3/+CONTENTS.libvorbis-1.2.0,3 --> Unregistering libvorbis-1.2.0,3 --> Done. [Updating the pkgdb in /var/db/pkg ... - 652 packages found (-1 +0) (...) done] [dan@ngaio:/usr/ports/audio/libvorbis] $ > # portupgrade -fRr bar-0.0 > > The last step is to clean up dependencies, and may not be required. I did this. It's still running. Key point: libvorbis has been upgraded Thank you -- Dan Langille -- http://www.langille.org/