problem running pkg_delete

Mel Flynn rflynn at acsalaska.net
Sun May 13 19:35:37 UTC 2012


On 13-5-2012 14:48, Robert Huff wrote:
> 
> Mel Flynn writes:
> 
>>  > pkg_delete: the package info for package "Source" is corrupt
>>  > 
>>  > 	Any ideas?
>>  
>>  Can you provide the output of:
>>  grep -E '@(unexec|exec).*Source' /var/db/pkg/*/+CONTENTS
> 
> 	Yes.

Well, I was hoping to see some exotic exec construct that would confuse
pkg_delete, but no such luck.

> 
> huff@> grep -E '@(unexec|exec).*Source' /var/db/pkg/*/+CONTENTS

> /var/db/pkg/p5-Test-Harness-3.23/+CONTENTS:@unexec rmdir "%D/lib/perl5/site_perl/5.14.2/TAP/Parser/Source" 2>/dev/null || true
> /var/db/pkg/p5-Test-Harness-3.23/+CONTENTS:@unexec rmdir "%D/lib/perl5/site_perl/5.14.2/TAP/Parser/SourceHandler" 2>/dev/null || true

This looks a bit suspicious, the quotes shouldn't really be there and it
actually installs something ending in "Source". However, it's probably
best to rule out the obvious:

if you have dir /var/db/pkg/Source/ does the +CONTENTS file in it look
sane? When in doubt, post it.
If you don't, any hits on:
grep '^@pkgdep Source' /var/db/pkg/*/+CONTENTS

-- 
Mel


More information about the freebsd-ports mailing list