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.
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
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
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!
Responsible Changed From-To: freebsd-ports-bugs->skv Over to maintainer (via the GNATS Auto Assign Tool)
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"
State Changed From-To: open->closed Fixed, thanks!