Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2009 13:30:31 -0600
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Leslie Jensen <leslie@eskk.nu>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Message when updating ports
Message-ID:  <790a9fff0901281130l31a35ba9pc4bde54f54ed1fec@mail.gmail.com>
In-Reply-To: <498088F7.5000800@eskk.nu>
References:  <498088F7.5000800@eskk.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 28, 2009 at 10:33 AM, Leslie Jensen <leslie@eskk.nu> wrote:
>
> This message has been on my screen almost every time I update a port for the
> last week.
>
>
> ===>>> Updating package dependency entry for each dependent port
>        ===>>> @comment MD5:e417e49fb3570516da077756fc1e7df9 is listed as a
> dependency
>        ===>>> but there is no installed version
>
> I have done checks like pkgdb -F, portsclean and so on.
>
> Can anyone tell me whats wrong?
>
You have a corrupted /var/db/pkg/*/+CONTENTS files.

Use the following to findout which package has the error:

grep -l "@comment MD5:e417e49fb3570516da077756fc1e7df9" /var/db/pkg/*/+CONTENTS

Then use your editor to verify/repair the corrupted +CONTENTS file.

There should be two lines above "@comment
MD5:e417e49fb3570516da077756fc1e7df9", this line should be an
"@comment DEPORIGIN:<portcategory/portname>" and the path to a file.

Example:

@pkgdep  libXmu-1.0.4,1
@comment DEPORIGIN:x11-toolkits/libXmu
bin/xwd
@comment MD5:<MD5 signature for bin/xwd>

Just use the pkgdep line to determine which port in /usr/ports/ this
pkgdep is, and add its path on a @comment DEPORIGIN line.

Then use your portmanager/portupgrade tool to reinstall the broken package.

Scot

P.S. I had to fix a couple of missing "@comment
ORIGIN:<category/portname>" lines this way due to corruption/empty
+CONTENTS files.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0901281130l31a35ba9pc4bde54f54ed1fec>