Re: Getting a lot of - pkg_version: corrupted record (pkgdep line without argument), ignoring

2009-08-04 Thread Doug Barton
eculp wrote:

 I rebuilt the packages and all is well.

Glad to hear that it worked out for you. :)

 Thanks again for the explanation, the script and especially for
 Postmaster that I have been using almost exclusively since the first
 version and has been improving .with each subsequent release.

Thank you for the kind words, they are appreciated.

Doug

-- 

This .signature sanitized for your protection

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Getting a lot of - pkg_version: corrupted record (pkgdep line without argument), ignoring

2009-08-03 Thread Doug Barton
eculp wrote:
 I'm getting a lot of the following messages and have no idea how to find
 which package is causing the problem. 

This is one of those times that opening up the files and having a look
for yourself might be a good way to start. :)

 pkg_version: corrupted record (pkgdep line without argument), ignoring

egrep '(pkgdep$|pkgdep $)' /var/db/pkg/*/+CONTENTS

However, you indicate below that you are using 'portmaster
--check-depends' which should be fixing those for you. So try this:

cd /var/db/
cp -Rp pkg pkg-before
portmaster --check-depends
diff -ur pkg-before pkg  ~/pkg-dir.diff1
cp -Rp pkg pkg-after
portmaster --check-depends
diff -ur pkg-after pkg  ~/pkg-dir.diff2
cd pkg
egrep -l '(pkgdep$|pkgdep $)' */+CONTENTS  ~/pkg-dir.egrep

Ideally pkg-dir.diff2 pkg-dir.egrep should both be empty there. If
not, you will need to rebuild all of the ports listed in the egrep
file. One easy way to do that would be to use vi to strip everything
but the directory name out of that file then do this:

portmaster `cat ~/pkg-dir.egrep`

 While I'm bothering you, could someone give me some tips on the best
 ways to find corrupted files in /var/db/pkgs, /var/db/ports and any
 other places that they might be hiding.  I run
  portmaster --check-depends
  portmaster --check-port-dbdir

Those are both good examples from my perspective. :)  One thing
though, --check-port-dbdir won't find anything that is corrupt, it
will only find things that don't apply to your currently installed ports.


hth,

Doug

-- 

This .signature sanitized for your protection

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org