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.

It does not seem to be the files:

[EMAIL PROTECTED]:/var/db/pkg/libvorbis-1.2.0,3] $ ls -l
total 4
-rw-r--r--  1 root  wheel   32 May 28 03:11 +CONTENTS
-rw-r--r--  1 root  wheel  137 May 28 03:02 +REQUIRED_BY
[EMAIL PROTECTED]:/var/db/pkg/libvorbis-1.2.0,3] $

[EMAIL PROTECTED]:/var/db/pkg/libvorbis-1.2.0,3] $ sudo touch +COMMENT +DESC
Password:
[EMAIL PROTECTED]:/var/db/pkg/libvorbis-1.2.0,3] $ ls -l
total 4
-rw-r--r--  1 root  wheel    0 May 28 16:15 +COMMENT
-rw-r--r--  1 root  wheel   32 May 28 03:11 +CONTENTS
-rw-r--r--  1 root  wheel    0 May 28 16:15 +DESC
-rw-r--r--  1 root  wheel  137 May 28 03:02 +REQUIRED_BY
[EMAIL PROTECTED]:/var/db/pkg/libvorbis-1.2.0,3] $



--->  Backing up the old version
--->  Uninstalling the old version
--->  Deinstalling 'libvorbis-1.2.0,3'
pkg_delete: package 'libvorbis-1.2.0,3' is required by these other packages
and may not be deinstalled (but I'll delete it anyway):
arts-1.5.6_2,1
cdrdao-1.2.1
gwenview-1.4.1_2
kdebase-kompmgr-3.5.7
kdelibs-3.5.7
libkipi-0.1.5_1
tpb-0.6.4_2
xmms-1.2.10_9
xosd-2.2.12_2
pkg_delete: package 'libvorbis-1.2.0,3' doesn't have a prefix
** Listing the failed packages (*:skipped / !:failed)
        ! libvorbis-1.2.0,3     (pkg_delete failed)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
** Listing the failed packages (*:skipped / !:failed)
        ! audio/libvorbis (libvorbis-1.2.0,3)   (uninstall error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
** Could not clean up temporary directory: Directory not empty - /var/ tmp/portupgradeO2aF5f0C
[EMAIL PROTECTED]:~] $


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
# portupgrade -fRr bar-0.0

The last step is to clean up dependencies, and may not be required.


In the interests of discovering what is causing the problem, I will keep
FORCE_PKG_REGISTER in reserve.

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