Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Feb 2011 19:43:49 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        Sergio de Almeida Lenzi <lenzi.sergio@gmail.com>
Cc:        David Demelier <demelier.david@gmail.com>, freebsd-ports@freebsd.org
Subject:   Re: Find a corrupt port
Message-ID:  <4D69C875.4010304@FreeBSD.org>
In-Reply-To: <1298738086.92768.3.camel@z6000.lenzicasa>
References:  <4D690CA4.9090008@gmail.com> <1298738086.92768.3.camel@z6000.lenzicasa>

next in thread | previous in thread | raw e-mail | index | archive | help
On 02/26/2011 08:34, Sergio de Almeida Lenzi wrote:
> I use this script to get rid of the problem
> the script detects @pkgdep record without argument
> and deletes it from the +CONTENTS file in the /var/db/pkg/* directory
> ===========================================
>
> for i in /var/db/pkg/*/+CONTENTS
> do
> 	if grep -q "@pkgdep $" $i
> 	then
> 		sed -i "" -e "/@pkgdep $/d" $i
> 		echo nullpkg in $i
> 	fi
> done

The problem with this is that dependencies are actually recorded as a 
pair. For example:

@pkgdep pkg-config-0.25_1
@comment DEPORIGIN:devel/pkg-config

Someone else already was kind enough to mention 'portmaster 
--check-depends' which will prompt you to do the right thing and/or 
notify you about ports that you need to reinstall.


hth,

Doug

-- 

	Nothin' ever doesn't change, but nothin' changes much.
			-- OK Go

	Breadth of IT experience, and depth of knowledge in the DNS.
	Yours for the right price.  :)  http://SupersetSolutions.com/




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