Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Feb 2011 22:50:26 +0100
From:      David Demelier <demelier.david@gmail.com>
To:        Sergio de Almeida Lenzi <lenzi.sergio@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Find a corrupt port
Message-ID:  <4D6975A2.4040905@gmail.com>
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 26/02/2011 17: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
>
> ==============================================
>
>
>
>
>
> Em Sáb, 2011-02-26 às 15:22 +0100, David Demelier escreveu:
>> Hello,
>>
>> It seems I have a corrupted port on my system :
>>
>> $ pkg_info
>> [...]
>> dmxproto-2.3        DMX extension headers
>> pkg_info: corrupted record (pkgdep line without argument), ignoring
>> pkg_info: corrupted record (pkgdep line without argument), ignoring
>> pkg_info: corrupted record (pkgdep line without argument), ignoring
>> pkg_info: corrupted record (pkgdep line without argument), ignoring
>> docproj-1.17_4      The"meta-port"  for the FreeBSD Documentation Project
>> [...]
>>
>> Because it happens after dmxproto O tought it was this one, but after a
>> make deinstall reinstall in x11/dmxproto the corrupt message is still
>> there so I'm guessing if it's the corrupted port.
>>
>> How can I easily find?
>>
>> Cheers,
>>
>

There is something absolutely easier :

egrep '^@pkgdep $' /var/db/pkg/*/+CONTENTS

Cheers,

-- 
David Demelier



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