From owner-freebsd-ports@FreeBSD.ORG Wed Jan 28 19:30:32 2009 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 A0F6E106566B for ; Wed, 28 Jan 2009 19:30:32 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 005248FC0C for ; Wed, 28 Jan 2009 19:30:31 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so2825561ywe.13 for ; Wed, 28 Jan 2009 11:30:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=xiLYVgH3LSUKq7zk0BOnYpdzWal+owRxO1ihBVg3N4s=; b=q37mg7y7z6FEvO2tiM9fmyb4dVVeR+WAozwMbCTZzgISBH5XKS4ISfoD2zWeWsN6qH aBv6esN3EhKxBW1tAdZ72SQOfx9dKmfjvJfyV1b1p0menNY628KMKCPrMjbdxOFYDcRp uXeo6HOYQ0S0Lh0UbZRe+VSSgbFYQ8JrRyWUU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=d061bkyLq6KlzHSUxVU9SriW/ve55wjNI90dsDQhlxxh7tmvMvZt4BBqysUwuTsggI 6LIfZXDDfyRSR1Yd4nZwvLPVmVlUqF/eZMXPRzNm57ZeQ0ljpQd8XDQFCwlugYXmf/BF BWVNwk/PEhKJKMr25dAVJJpMDQtxdWtmjiHps= MIME-Version: 1.0 Received: by 10.90.113.11 with SMTP id l11mr1865214agc.92.1233171031124; Wed, 28 Jan 2009 11:30:31 -0800 (PST) In-Reply-To: <498088F7.5000800@eskk.nu> References: <498088F7.5000800@eskk.nu> Date: Wed, 28 Jan 2009 13:30:31 -0600 Message-ID: <790a9fff0901281130l31a35ba9pc4bde54f54ed1fec@mail.gmail.com> From: Scot Hetzel To: Leslie Jensen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Message when updating ports 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: Wed, 28 Jan 2009 19:30:33 -0000 On Wed, Jan 28, 2009 at 10:33 AM, Leslie Jensen 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:" and the path to a file. Example: @pkgdep libXmu-1.0.4,1 @comment DEPORIGIN:x11-toolkits/libXmu bin/xwd @comment MD5: 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:" lines this way due to corruption/empty +CONTENTS files.