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:

[EMAIL PROTECTED]:/usr/ports/audio/libvorbis] $ sudo pkgdb -F
--->  Checking the package registry database
[Updating th.. done]<format:bdb_btree> 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 <format:bdb_btree> in /var/db/pkg ... - 652 packages found (-1 +0) (...) done]
[EMAIL PROTECTED]:/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/





_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to