Re: problem running pkg_delete

2012-05-13 Thread Mel Flynn
On 12-5-2012 20:24, Robert Huff wrote:
 
   Suddenly I'm getting:
 
 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

-- 
Mel
___
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: problem running pkg_delete

2012-05-13 Thread Robert Huff

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.

huff@ grep -E '@(unexec|exec).*Source' /var/db/pkg/*/+CONTENTS
/var/db/pkg/open-motif-2.3.3/+CONTENTS:@unexec rm -f 
%D/man/cat3/XmTextGetSource.3.gz %D/man/cat3/XmTextGetSource.3 
%D/man/cat3/XmTextGetSource.3.gz %D/man/cat3/XmTextGetSource.3.gz.gz 
%D/man/cat3/XmTextGetSource.3.gz.bz2
/var/db/pkg/open-motif-2.3.3/+CONTENTS:@unexec rm -f 
%D/man/cat3/XmTextSetSource.3.gz %D/man/cat3/XmTextSetSource.3 
%D/man/cat3/XmTextSetSource.3.gz %D/man/cat3/XmTextSetSource.3.gz.gz 
%D/man/cat3/XmTextSetSource.3.gz.bz2
/var/db/pkg/p5-Test-Harness-3.23/+CONTENTS:@unexec rm -f 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::Source.3.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::Source.3 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::Source.3.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::Source.3.gz.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::Source.3.gz.bz2
/var/db/pkg/p5-Test-Harness-3.23/+CONTENTS:@unexec rm -f 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler.3.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler.3 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler.3.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler.3.gz.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler.3.gz.bz2
/var/db/pkg/p5-Test-Harness-3.23/+CONTENTS:@unexec rm -f 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::Executable.3.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::Executable.3 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::Executable.3.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::Executable.3.gz.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::Executable.3.gz.bz2
/var/db/pkg/p5-Test-Harness-3.23/+CONTENTS:@unexec rm -f 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::File.3.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::File.3 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::File.3.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::File.3.gz.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::File.3.gz.bz2
/var/db/pkg/p5-Test-Harness-3.23/+CONTENTS:@unexec rm -f 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::Handle.3.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::Handle.3 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::Handle.3.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::Handle.3.gz.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::Handle.3.gz.bz2
/var/db/pkg/p5-Test-Harness-3.23/+CONTENTS:@unexec rm -f 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::Perl.3.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::Perl.3 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::Perl.3.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::Perl.3.gz.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::Perl.3.gz.bz2
/var/db/pkg/p5-Test-Harness-3.23/+CONTENTS:@unexec rm -f 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::RawTAP.3.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::RawTAP.3 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::RawTAP.3.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::RawTAP.3.gz.gz 
%D/lib/perl5/5.14.2/man/cat3/TAP::Parser::SourceHandler::RawTAP.3.gz.bz2
/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
/var/db/pkg/perl-threaded-5.14.2_2/+CONTENTS:@unexec rm -f 
%D/lib/perl5/5.14.2/perl/man/cat3/CPANPLUS::Internals::Source.3.gz 
%D/lib/perl5/5.14.2/perl/man/cat3/CPANPLUS::Internals::Source.3 
%D/lib/perl5/5.14.2/perl/man/cat3/CPANPLUS::Internals::Source.3.gz 
%D/lib/perl5/5.14.2/perl/man/cat3/CPANPLUS::Internals::Source.3.gz.gz 
%D/lib/perl5/5.14.2/perl/man/cat3/CPANPLUS::Internals::Source.3.gz.bz2
/var/db/pkg/perl-threaded-5.14.2_2/+CONTENTS:@unexec rm -f 
%D/lib/perl5/5.14.2/perl/man/cat3/CPANPLUS::Internals::Source::Memory.3.gz 
%D/lib/perl5/5.14.2/perl/man/cat3/CPANPLUS::Internals::Source::Memory.3 
%D/lib/perl5/5.14.2/perl/man/cat3/CPANPLUS::Internals::Source::Memory.3.gz 
%D/lib/perl5/5.14.2/perl/man/cat3/CPANPLUS::Internals::Source::Memory.3.gz.gz 
%D/lib/perl5/5.14.2/perl/man/cat3/CPANPLUS::Internals::Source::Memory.3.gz.bz2
/var/db/pkg/perl-threaded-5.14.2_2/+CONTENTS:@unexec rm -f 
%D/lib/perl5/5.14.2/perl/man/cat3/CPANPLUS::Internals::Source::SQLite.3.gz 
%D/lib/perl5/5.14.2/perl/man/cat3/CPANPLUS::Internals::Source::SQLite.3 
%D/lib/perl5/5.14.2/perl/man/cat3/CPANPLUS::Internals::Source::SQLite.3.gz 
%D/lib/perl5/5.14.2/perl/man/cat3/CPANPLUS::Internals::Source::SQLite.3.gz.gz 

Re: problem running pkg_delete

2012-05-13 Thread Mel Flynn
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
___
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: problem running pkg_delete

2012-05-13 Thread Chris Rees
On 13 May 2012 20:35, Mel Flynn rfl...@acsalaska.net wrote:
 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

The quotes are from @dirrmtry, so inserted by bsd.port.mk.

Chris
___
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: problem running pkg_delete

2012-05-13 Thread Mel Flynn
On 13-5-2012 21:51, Chris Rees wrote:

 The quotes are from @dirrmtry, so inserted by bsd.port.mk.

Ah, shows how rusty I am. Also, why aren't they single quotes? Do we
actually support shell expansion dirrmtry?
-- 
Mel
___
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


problem running pkg_delete

2012-05-12 Thread Robert Huff

Suddenly I'm getting:

pkg_delete: the package info for package Source is corrupt

Any ideas?

Respectfully,


Robert Huff

___
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: problem running pkg_delete

2012-05-12 Thread Matthias Apitz
El día Saturday, May 12, 2012 a las 02:24:16PM -0400, Robert Huff escribió:

 
   Suddenly I'm getting:
 
 pkg_delete: the package info for package Source is corrupt
 
   Any ideas?

Check the content of /var/db/pkg/Source

HIH

matthias
-- 
Matthias Apitz
e g...@unixarea.de - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
___
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: problem running pkg_delete

2012-05-12 Thread Jason Hellenthal


On Sat, May 12, 2012 at 02:24:16PM -0400, Robert Huff wrote:
 
   Suddenly I'm getting:
 
 pkg_delete: the package info for package Source is corrupt
 
   Any ideas?
 

I would inspect the contents of the package directory in question.

/var/db/pkg/Source/???


Does it differ from any of the other directories...

If so rm -rf /var/db/pkg/Source and then reinstall the same version you
had installed before and you should be fine to do whatever it is you are
doing... There is not much info here... which leads to guessing.

-- 

 - (2^(N-1))
___
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: problem running pkg_delete

2012-05-12 Thread Jerry
On Sat, 12 May 2012 14:24:16 -0400
Robert Huff articulated:

pkg_delete: the package info for package Source is corrupt

I had a similar experience about a year ago with a port I was trying to
remove. I eventually did a force installation of the port and then
deleted it normally. I have no idea if that would work for you or not.

-- 
Jerry ♔

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__
The Wright Brothers weren't the first to fly, they were just the first
not to crash.
___
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: problem running pkg_delete

2012-05-12 Thread Chris Rees
On 12 May 2012 20:58, Jerry je...@seibercom.net wrote:
 On Sat, 12 May 2012 14:24:16 -0400
 Robert Huff articulated:

pkg_delete: the package info for package Source is corrupt

 I had a similar experience about a year ago with a port I was trying to
 remove. I eventually did a force installation of the port and then
 deleted it normally. I have no idea if that would work for you or not.

Almost certainly would help in this case, if /var/db/pkg/Source* were
overwritten.

Chris
___
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: problem running pkg_delete

2012-05-12 Thread RW
On Sat, 12 May 2012 14:24:16 -0400
Robert Huff wrote:

 
   Suddenly I'm getting:
 
 pkg_delete: the package info for package Source is corrupt
 
   Any ideas?


Do you mean that you get that specific message, or that you are getting
it for multiple packages and Source is a placeholder?
___
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: problem running pkg_delete

2012-05-12 Thread Robert Huff

RW writes:

   pkg_delete: the package info for package Source is corrupt
  
  Do you mean that you get that specific message, or that you are getting
  it for multiple packages and Source is a placeholder?

That specific message.


Robert Huff

___
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: problem running pkg_delete

2012-05-12 Thread Stephen Montgomery-Smith

On 05/12/2012 01:24 PM, Robert Huff wrote:


Suddenly I'm getting:

pkg_delete: the package info for package Source is corrupt

Any ideas?


Is it possible that you created a directory by accident inside 
/var/db/pkg called Source?

___
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: problem running pkg_delete

2012-05-12 Thread Stephen Montgomery-Smith

On 05/12/2012 06:25 PM, Stephen Montgomery-Smith wrote:

On 05/12/2012 01:24 PM, Robert Huff wrote:


Suddenly I'm getting:

pkg_delete: the package info for package Source is corrupt

Any ideas?


Is it possible that you created a directory by accident inside
/var/db/pkg called Source?


Also, I am trying to look through the source code in pkg_delete to see 
what could have created this message.  As best as I can tell, this 
message must have been created by the function matchallbyorigin in 
/usr/src/usr.sbin/pkg_install/lib/match.c which was called by the 
function pkg_do in /usr/src/usr.sbin/pkg_install/delete/perform.c.  The 
source code for pkg_do contains the disclaimer This is seriously ugly 
code following.  Written very fast!


Do you remember at all the command you typed that created this message?

___
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: problem running pkg_delete

2012-05-12 Thread Jason Hellenthal


On Sat, May 12, 2012 at 06:31:44PM -0500, Stephen Montgomery-Smith wrote:
 On 05/12/2012 06:25 PM, Stephen Montgomery-Smith wrote:
  On 05/12/2012 01:24 PM, Robert Huff wrote:
 
  Suddenly I'm getting:
 
  pkg_delete: the package info for package Source is corrupt
 
  Any ideas?
 
  Is it possible that you created a directory by accident inside
  /var/db/pkg called Source?
 
 Also, I am trying to look through the source code in pkg_delete to see 
 what could have created this message.  As best as I can tell, this 
 message must have been created by the function matchallbyorigin in 
 /usr/src/usr.sbin/pkg_install/lib/match.c which was called by the 
 function pkg_do in /usr/src/usr.sbin/pkg_install/delete/perform.c.  The 
 source code for pkg_do contains the disclaimer This is seriously ugly 
 code following.  Written very fast!
 
 Do you remember at all the command you typed that created this message?
 

You would probably get the same message from:
mkdir /var/db/pkg/Source
pkg_delete Source

Try it out!

-- 

 - (2^(N-1))
___
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: problem running pkg_delete

2012-05-12 Thread Stephen Montgomery-Smith

On 05/12/2012 08:06 PM, Jason Hellenthal wrote:



On Sat, May 12, 2012 at 06:31:44PM -0500, Stephen Montgomery-Smith wrote:

On 05/12/2012 06:25 PM, Stephen Montgomery-Smith wrote:

On 05/12/2012 01:24 PM, Robert Huff wrote:


Suddenly I'm getting:

pkg_delete: the package info for package Source is corrupt

Any ideas?


Is it possible that you created a directory by accident inside
/var/db/pkg called Source?


Also, I am trying to look through the source code in pkg_delete to see
what could have created this message.  As best as I can tell, this
message must have been created by the function matchallbyorigin in
/usr/src/usr.sbin/pkg_install/lib/match.c which was called by the
function pkg_do in /usr/src/usr.sbin/pkg_install/delete/perform.c.  The
source code for pkg_do contains the disclaimer This is seriously ugly
code following.  Written very fast!

Do you remember at all the command you typed that created this message?



You would probably get the same message from:
mkdir /var/db/pkg/Source
pkg_delete Source

Try it out!


I did think of this.  But this creates the error message:

pkg_delete: the package info for package 'Source' is corrupt (use -f to 
force removal)


and is generated from within pkg_do in 
/usr/src/usr.sbin/pkg_install/delete/perform.c


This has the additional part to the message (use -f to force removal) 
which the OP did not report.  And if you look at the source, you will 
see that it has to have some kind of additional message, the other 
possibility being (but I'll delete it anyway).  But maybe the OP 
forgot to report this.


___
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: problem running pkg_delete

2012-05-12 Thread Robert Huff

Stephen Montgomery-Smith writes:
   You would probably get the same message from:
   mkdir /var/db/pkg/Source
   pkg_delete Source
  
   Try it out!
  
  I did think of this.  But this creates the error message:
  
  pkg_delete: the package info for package 'Source' is corrupt (use -f to 
  force removal)
  
  and is generated from within pkg_do in 
  /usr/src/usr.sbin/pkg_install/delete/perform.c
  
  This has the additional part to the message (use -f to force
  removal) which the OP did not report.  And if you look at the
  source, you will see that it has to have some kind of additional
  message, the other possibility being (but I'll delete it
  anyway).  But maybe the OP forgot to report this.

No, they didn't.


Robert Huff

___
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