From owner-freebsd-ports@FreeBSD.ORG Sat Feb 26 21:51:10 2011 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 E0026106564A for ; Sat, 26 Feb 2011 21:51:09 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 70CC28FC18 for ; Sat, 26 Feb 2011 21:51:09 +0000 (UTC) Received: by wwb31 with SMTP id 31so3606503wwb.31 for ; Sat, 26 Feb 2011 13:51:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=Q3yS/uQp66ZS/IJjuZAkuW5NJIW7PwFN/KUMWHhkfwc=; b=Kp1PqSzY3cJb+nVQF+TWMCAMU0+nOKapNu0BuXi3JHd+GrkieWNH3tCC2IjDBb2jf9 oEMqJlnqB9iuH3neYkO5QYmHnzF/yLevuYm+aB33lsULlgwau0vpoo+yzBCJFWpTiVy+ gAViAz8fifRihv+gDHxVrPxD8AvC7fXqqXvWg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=ke86HCqIrB/mSf46PzL3OoZiw3SXZIvnjEXSzlOoxOYfV8umQaebWt+v+GNgA/aXuN JNWI4//N6UWoe64F4gcMOTbsXFH3WsM78ouu1shB351XUOu/ehPrmylVeDCnTCghJTc6 J5q8bA363lGlxxA2EVilmgEOoKNeK2c/mzIV0= Received: by 10.227.30.133 with SMTP id u5mr3491763wbc.82.1298757068146; Sat, 26 Feb 2011 13:51:08 -0800 (PST) Received: from Melon.malikania.fr (65.21.102-84.rev.gaoland.net [84.102.21.65]) by mx.google.com with ESMTPS id y29sm1830820wbd.16.2011.02.26.13.51.06 (version=SSLv3 cipher=OTHER); Sat, 26 Feb 2011 13:51:07 -0800 (PST) Message-ID: <4D6975A2.4040905@gmail.com> Date: Sat, 26 Feb 2011 22:50:26 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20110125 Thunderbird/3.1.7 MIME-Version: 1.0 To: Sergio de Almeida Lenzi References: <4D690CA4.9090008@gmail.com> <1298738086.92768.3.camel@z6000.lenzicasa> In-Reply-To: <1298738086.92768.3.camel@z6000.lenzicasa> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-ports@freebsd.org Subject: Re: Find a corrupt port 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: Sat, 26 Feb 2011 21:51:10 -0000 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