Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Feb 2011 16:29:57 +0200
From:      Peter Pentchev <roam@ringlet.net>
To:        David Demelier <demelier.david@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Find a corrupt port
Message-ID:  <20110226142957.GA3670@straylight.ringlet.net>
In-Reply-To: <4D690CA4.9090008@gmail.com>
References:  <4D690CA4.9090008@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--wac7ysb48OaltWcw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Feb 26, 2011 at 03:22:28PM +0100, David Demelier wrote:
> Hello,
>=20
> It seems I have a corrupted port on my system :
>=20
> $ 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
> [...]
>=20
> 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.
>=20
> How can I easily find?

Well, one way is to look for pkgdep lines without arguments:

  cd /var/db/pkg
  find . -mindepth 2 -maxdepth 2 -type f -print0 | xargs -0 egrep -e 'pkgde=
p[[:space:]]*$'

If this doesn't work, you can always run pkg_info for all your packages:

  cd /var/db/pkg
  for i in */; do pkg_info "$i" 2>&1 >/dev/null | sed -e "s@^@$i "; done

Hope that helps.

G'luck,
Peter

--=20
Peter Pentchev	roam@ringlet.net roam@FreeBSD.org peter@packetscale.com
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
If this sentence were in Chinese, it would say something else.

--wac7ysb48OaltWcw
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCAAGBQJNaQ5gAAoJEGUe77AlJ98TG74QAMIyDMhgZ3zZmecRvvGTPWCn
KZjn0iBKLjLzhvXgnGNlVjG7TMUELlxLB181T7pYvavwD6E1c1BV+XGy2qqZ4+Ln
9WxTVpugTs5ybpm7oppkkl5xcjWH2+GmFRiwrusCbZlNJ/cV95aMSkToUDD5xc0f
IBq1kheXnOMsW15lfEdMrCSeR0NBz1CrqZVDZhiCDGd+9qY0CX++OxoBpddjK53p
iNGAqDbbrgzxZgwTefUyXgy3KBnQW8t8lvtaNc2aQ3vuToKGHlQ0LSGoghzt1Cvr
WhbY2II3wAPZM98lGZSsjEyqWGjWvTsbFYktv9ENKo5dg8M8qOT+x1n6LtWM4W7P
h42Frge271FDLmqba5pCvinsOh3l+6lO6Q9ZAsAZvcKT27CER5M1n7MKQwVvM7OU
Vejs0YCVFnvhYtFkShIQUqgXhDcvxF6nizaUYihMT+OAwzQU0k2dG6knA7c6sXLS
jZc/NzLSHTYo2+cM78Da0FfmXIiKHOTQe33ftNk05HHPkBb64n/h9fpEj3FF/1xK
i6hdErK5/TgTYQY2RicwbEyv2jaDuDzeg18WLDqa2W5Ri1qXan4MN0/nCEQejjLH
DSL6uQ6J8XHcXFKm+KWJBMF7fgj12nmT+psBVapxpXnzT3MXQWhMlnegBY/sP7gm
Z5IddUdelTKzOMumVX/e
=MZji
-----END PGP SIGNATURE-----

--wac7ysb48OaltWcw--



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