Bug 116908 - [patch] lang/perl5.8: pkg_create(1): pkg_create -b makes invalid packages for bsdpan-*
Summary: [patch] lang/perl5.8: pkg_create(1): pkg_create -b makes invalid packages for...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: skv
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-04 16:40 UTC by Steve Wills
Modified: 2010-07-14 18:30 UTC (History)
0 users

See Also:


Attachments
BSDPAN_package_creation.patch (683 bytes, patch)
2009-08-06 00:40 UTC, Andy Clayton
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Wills 2007-10-04 16:40:01 UTC
pkg_create -b makes packages which can't be installed for bsdpan-*
packages. An example error is below:

www14# pkg_add bsdpan-CGI-EncryptForm-1.02.tbz 
tar: /usr/local/lib/perl5/5.8.8/man/man3/CGI::EncryptForm.3: Cannot stat: No such file or directory
tar: Error opening archive: Empty input file: Inappropriate file type or format
pkg_add: extract_plist: can not invoke 108 byte tar pipeline: /usr/bin/tar cf - /usr/local/lib/perl5/5.8.8/man/man3/CGI\:\:EncryptForm.3|/usr/bin/tar --unlink -xpf - -C /

Fix: 

none known
How-To-Repeat: 1. Install perl

2. Use CPAN.pm (called /usr/local/bin/cpan) to install a package.

3. pkg_create -b bsdpan-whatever

4. pkg_delete the package

5. pkg_add the package via the package file.
Comment 1 Andy Clayton 2009-08-06 00:40:00 UTC
Here's a patch that fixes this issue, though I'm not sure if it is the 
right way to go about it. Anyways, the issue seems to simply be that the 
files listed in the packing list have an unexpected slash before them 
(when compared to other non-BSDPAN packages).

Andy Clayton
Comment 2 jasper 2009-11-17 12:44:51 UTC
This diff still gives me an error, but pointed me to a fix in /usr/ 
local/lib/perl5/5.8.9/BSDPAN/ExtUtils/Packlist.pm that works for me:

53c53
<               push @packinglist, "\@name $pkg_name\n", "\@cwd /\n";
---
 >               push @packinglist, "\@name $pkg_name\n", "\@cwd /usr/ 
local/\n";
59,60c59,63
<               push @packinglist, "$_\n"
<                   for @files;
---
 >               for (@files) {
 >                      s|^/usr/local/||;
 >                   push @packinglist, "$_\n";
 >               }
 >


Kind regards, Jasper Koolhaas
Comment 3 Gavin Atkinson freebsd_committer freebsd_triage 2010-01-18 22:58:34 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

This may actually be an issue with the perl5.8 port...  There are two patches 
within the PR, both of which suggest the issue lies with  
/usr/local/lib/perl5/5.8.9/BSDPAN/ExtUtils/Packlist.pm and not with pkg_create. 
If I'm wrong, feel free to let me know or bounce it back to me!
Comment 4 Edwin Groothuis freebsd_committer freebsd_triage 2010-01-18 23:09:34 UTC
Responsible Changed
From-To: freebsd-ports-bugs->skv

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 5 dfilter service freebsd_committer freebsd_triage 2010-07-14 18:24:35 UTC
skv         2010-07-14 17:24:21 UTC

  FreeBSD ports repository

  Modified files:
    lang/perl5.10        Makefile distinfo 
  Added files:
    lang/perl5.10/files  patch-Configure 
  Log:
  - Fix generation of '+CONTENTS' file for 'bsdpan-*' packages [1]
  
  - Don't remove '/usr/local/lib' from path $libpth
    if this dir does not exist [2]
  
  PR:             ports/116908 [1]
  Submitted by:   Steve Wills <steve@mouf.net> [1],
                  Kukushkin Konstantin <dark@ramtel.ru> [2]
  
  Revision  Changes    Path
  1.119     +3 -2      ports/lang/perl5.10/Makefile
  1.31      +3 -3      ports/lang/perl5.10/distinfo
  1.1       +11 -0     ports/lang/perl5.10/files/patch-Configure (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 skv freebsd_committer freebsd_triage 2010-07-14 18:25:00 UTC
State Changed
From-To: open->closed

Fixed, thanks!