From owner-freebsd-ports@FreeBSD.ORG Sun Feb 27 02:40:43 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 AC2B2106566B for ; Sun, 27 Feb 2011 02:40:43 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5DF898FC0A for ; Sun, 27 Feb 2011 02:40:43 +0000 (UTC) Received: by vws16 with SMTP id 16so2731318vws.13 for ; Sat, 26 Feb 2011 18:40:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:in-reply-to :message-id:references:user-agent:x-openpgp-key-id :x-openpgp-key-fingerprint:mime-version:content-type :content-transfer-encoding; bh=t27I+cspVJM6naRMn8z/jOUwKCZ7nxOjTOmdWkxIif4=; b=hlC3H8xVu3StaDyjYx8ZG3wmYidfAz7i4Ys/OxcRaro4R7hHH0JiKo0be8gNlnOjdV g/qoZrTdlqoPxHulZF/bDvN9QecPW/lwNFosyDkIWrJYwOLZwwTgXkIBqx9JTAwk/59q WUOEnpzYKOyknN8uSgMMJf1Q1+VwQuSru0vqo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type:content-transfer-encoding; b=u8t0uztVwNwRXb7ByUIyrDACal0+PdnGo1aGSMXo/rM3xGml1ALdV6YDQgOWJHY4Td UGlMnI69D9uF05p9iP8AtO/Vo8aSZvgZv7PzzeDQQl0AjF+jd3ux31BSyt5RYkpANK0h Ie00On/SzyvAKlpJrIrAg2Fq226jBfB92qfIo= Received: by 10.52.168.104 with SMTP id zv8mr6747616vdb.111.1298774442525; Sat, 26 Feb 2011 18:40:42 -0800 (PST) Received: from disbatch.dataix.local (adsl-99-181-159-74.dsl.klmzmi.sbcglobal.net [99.181.159.74]) by mx.google.com with ESMTPS id k8sm327424vdv.15.2011.02.26.18.40.40 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 26 Feb 2011 18:40:41 -0800 (PST) Sender: "J. Hellenthal" Date: Sat, 26 Feb 2011 21:40:19 -0500 From: jhell To: David Demelier In-Reply-To: <4D6975A2.4040905@gmail.com> Message-ID: References: <4D690CA4.9090008@gmail.com> <1298738086.92768.3.camel@z6000.lenzicasa> <4D6975A2.4040905@gmail.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT Cc: Sergio de Almeida Lenzi , 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: Sun, 27 Feb 2011 02:40:43 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Content-Transfer-Encoding: QUOTED-PRINTABLE These are all very good suggestions but a simpler solution that someone dearly known as Doug Barton (dougb@) has already put a lot of work into. So instead of hacking it up and throwing a bunch of script at a user... lets give credit where credit is due! portmaster --check-depends If you do not have it already you can get it from (ports-mgmt/portmaster) On Sat, 26 Feb 2011 16:50, demelier.david@ wrote: > 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, > > Regards, - -- jhell -----BEGIN PGP SIGNATURE----- Comment: THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND Comment: ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE Comment: IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE Comment: ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE Comment: FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL Comment: DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS Comment: OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) Comment: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT Comment: LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY Comment: OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF Comment: SUCH DAMAGE. iQEcBAEBAgAGBQJNabmfAAoJEJBXh4mJ2FR+W+cH/2jYtFxPZHFHba+0s9y2LSWy 6awmtUgNFDFG+ZxPnDvrWLAmAaNbhSBVdLNxNtOa+1uXsN6+QqPcE/qwUK/PigZ2 xfUkhoLhGbjgtRfX45Ko+aN01tGiCL9lz6+mE5YwNTwT8rirlQiA2HXHsq9tF8eX prQYrtGzzfwd8z9vYC5IOUbEI7cAobe4UD2pizA3ZLk+JsbD654P6Mf+wrwztDO7 3qiOs/4krTjoaXj344mjfe55c4y1mBTJTX4PVKWAcCFgCC8czGZzXB/ad3PlxKl7 GpqI1F6hysvDWxkEMz/bmILf1hNIskt3okCm1ZNyOSywkR45vtCc06edTctBHn0= =Wam5 -----END PGP SIGNATURE-----