Re: some perl5 modules with .xs components fail to install/package

2013-11-03 Thread Michael Gmelin
On Fri, 25 Oct 2013 10:39:22 -0700
Patrick Powell papow...@astart.com wrote:

 I also submitted this as a PR.
 
 I installed a FreeBSD 8.4-Release.
 Installed perl5:
 root@test84:/install/INSTALL_FreeBSD_84 # perl -v
 
 This is perl 5, version 14, subversion 4 (v5.14.4) built for
 amd64-freebsd
 
 I then compiled and tried to install a laundry list of perl modules.
 
 Some modules need to compile and install .so and .bs files. Some,
 but not all,
 of these modules had the following error.  It appears that the .bs
 file is listed in the PLIST
 
 
 XX ===  Building package for p5-Bit-Vector-7.3
 XX tar: lib/perl5/site_perl/5.14/mach/auto/Bit/Vector/Vector.bs:
 Cannot stat: No such file or directory
 XX tar: Error exit delayed from previous errors.
 
 But there is no Vector.bs file:
 
 # find work -name '*.bs'(no output - no file found)
 
 I also did:
 
 test84: {60} # cd work/Bit-Vector-7.3/
 test84: {61} # make test
 PERL_DL_NONLAZY=1 /usr/local/bin/perl5.14.4 -MExtUtils::Command::MM 
 -MTest::Harness -e undef *Test::Harness::Switches;
 test_harness(0, 'blib/lib', 'blib/arch') t/*.t
 t/00_version.t .. ok
 t/01_new.t .. ok
 t/02_destroy.t .. ok
 t/03__operations.t .. ok
 t/04___functions.t .. ok
 t/05__primes.t .. ok
 t/06__subset.t .. ok
 t/07_compare.t .. ok
 t/08__resize.t .. ok
 t/09__parameters.t .. ok
 t/10___intervals.t .. ok
 t/11___shift.t .. ok
 t/12__string.t .. ok
 t/13___increment.t .. ok
 t/14___empty.t .. ok
 t/15_add.t .. ok
 t/16subtract.t .. ok
 t/17_gcd.t .. ok
 t/28___chunklist.t .. ok
 t/30__overloaded.t .. ok
 t/40___auxiliary.t .. ok
 t/50_freeze_thaw.t .. ok
 t/51_file_nstore.t .. ok
 All tests successful.
 Files=23, Tests=91963,  9 wallclock secs ( 7.84 usr  0.09 sys + 1.54 
 cusr  0.18 csys =  9.65 CPU)
 Result: PASS
 
 So it appears that the .bs file is not generated or required.
 
 I patched the pkg-plist file:
 test84: {64} # diff -bc pkg-plist*
 *** pkg-plist   Fri Oct 25 10:23:07 2013
 --- pkg-plist.orig  Fri Oct 25 10:22:50 2013
 ***
 *** 5,10 
 --- 5,11 
%%SITE_PERL%%/%%PERL_ARCH%%/Bit/Vector/String.pm
%%SITE_PERL%%/%%PERL_ARCH%%/Bit/Vector/String.pod
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Bit/Vector/.packlist
 + %%SITE_PERL%%/%%PERL_ARCH%%/auto/Bit/Vector/Vector.bs
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Bit/Vector/Vector.so
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Bit/Vector
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Bit/Vector
 
 And did:
 make all install package
 
 
 test84: {71} # make all install package
 ===  Installing for p5-Bit-Vector-7.3
 ===   p5-Bit-Vector-7.3 depends on package: p5-Carp-Clan=0 - found
 ===   p5-Bit-Vector-7.3 depends on file: /usr/local/bin/perl5.14.4 -
 found ===   Generating temporary packing list
 ===  Checking if math/p5-Bit-Vector already installed
 Files found in blib/arch: installing files in blib/lib into
 architecture dependent library tree
 Installing 
 /usr/local/lib/perl5/site_perl/5.14/mach/auto/Bit/Vector/Vector.so
 Installing /usr/local/lib/perl5/site_perl/5.14/mach/Bit/Vector.pm
 Installing /usr/local/lib/perl5/site_perl/5.14/mach/Bit/Vector.pod
 Installing /usr/local/lib/perl5/site_perl/5.14/mach/Bit/Vector/Overload.pm
 Installing /usr/local/lib/perl5/site_perl/5.14/mach/Bit/Vector/String.pod
 Installing /usr/local/lib/perl5/site_perl/5.14/mach/Bit/Vector/Overload.pod
 Installing /usr/local/lib/perl5/site_perl/5.14/mach/Bit/Vector/String.pm
 Installing /usr/local/lib/perl5/5.14/man/man3/Bit::Vector.3
 Installing /usr/local/lib/perl5/5.14/man/man3/Bit::Vector::Overload.3
 Installing /usr/local/lib/perl5/5.14/man/man3/Bit::Vector::String.3
 ===   Compressing manual pages for p5-Bit-Vector-7.3
 ===   Registering installation for p5-Bit-Vector-7.3
 ===  Building package for p5-Bit-Vector-7.3
 
 I suspect that the pkg-plist entries for the indicated *.bs files are 
 not needed.
 
 --
 
 XX ===  Building package for p5-B-Utils-0.21
 XX tar: lib/perl5/site_perl/5.14/mach/auto/B/Utils/Utils.bs: Cannot 
 stat: No such file or directory
 XX tar: Error exit delayed from previous errors.
 
 XX ===  Building package for p5-Bit-Vector-7.3
 XX tar: lib/perl5/site_perl/5.14/mach/auto/Bit/Vector/Vector.bs:
 Cannot stat: No such file or directory
 XX tar: Error exit delayed from previous errors.
 
 XX ===  Building package for p5-HTML-Parser-3.71
 XX tar: lib/perl5/site_perl/5.14/mach/auto/HTML/Parser/Parser.bs:
 Cannot stat: No such file or directory
 XX tar: Error exit delayed from previous errors.
 
 XX ===  Building package for p5-Params-Util-1.07
 XX tar: lib/perl5/site_perl/5.14/mach/auto/Params/Util/Util.bs:
 Cannot stat: No such file or directory
 XX tar: Error exit delayed from previous errors.
 
 XX ===  Building package for p5-Socket-2.012
 XX tar: lib/perl5/site_perl/5.14/mach/auto/Socket/Socket.bs: Cannot 
 stat: No such file or directory
 XX tar: Error exit delayed from previous errors.
 
 XX ===  

some perl5 modules with .xs components fail to install/package

2013-10-25 Thread Patrick Powell

I also submitted this as a PR.

I installed a FreeBSD 8.4-Release.
Installed perl5:
root@test84:/install/INSTALL_FreeBSD_84 # perl -v

This is perl 5, version 14, subversion 4 (v5.14.4) built for amd64-freebsd

I then compiled and tried to install a laundry list of perl modules.

Some modules need to compile and install .so and .bs files. Some,  but 
not all,
of these modules had the following error.  It appears that the .bs file 
is listed in the PLIST



XX ===  Building package for p5-Bit-Vector-7.3
XX tar: lib/perl5/site_perl/5.14/mach/auto/Bit/Vector/Vector.bs: Cannot 
stat: No such file or directory

XX tar: Error exit delayed from previous errors.

But there is no Vector.bs file:

# find work -name '*.bs'(no output - no file found)

I also did:

test84: {60} # cd work/Bit-Vector-7.3/
test84: {61} # make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl5.14.4 -MExtUtils::Command::MM 
-MTest::Harness -e undef *Test::Harness::Switches; test_harness(0, 
'blib/lib', 'blib/arch') t/*.t

t/00_version.t .. ok
t/01_new.t .. ok
t/02_destroy.t .. ok
t/03__operations.t .. ok
t/04___functions.t .. ok
t/05__primes.t .. ok
t/06__subset.t .. ok
t/07_compare.t .. ok
t/08__resize.t .. ok
t/09__parameters.t .. ok
t/10___intervals.t .. ok
t/11___shift.t .. ok
t/12__string.t .. ok
t/13___increment.t .. ok
t/14___empty.t .. ok
t/15_add.t .. ok
t/16subtract.t .. ok
t/17_gcd.t .. ok
t/28___chunklist.t .. ok
t/30__overloaded.t .. ok
t/40___auxiliary.t .. ok
t/50_freeze_thaw.t .. ok
t/51_file_nstore.t .. ok
All tests successful.
Files=23, Tests=91963,  9 wallclock secs ( 7.84 usr  0.09 sys + 1.54 
cusr  0.18 csys =  9.65 CPU)

Result: PASS

So it appears that the .bs file is not generated or required.

I patched the pkg-plist file:
test84: {64} # diff -bc pkg-plist*
*** pkg-plist   Fri Oct 25 10:23:07 2013
--- pkg-plist.orig  Fri Oct 25 10:22:50 2013
***
*** 5,10 
--- 5,11 
  %%SITE_PERL%%/%%PERL_ARCH%%/Bit/Vector/String.pm
  %%SITE_PERL%%/%%PERL_ARCH%%/Bit/Vector/String.pod
  %%SITE_PERL%%/%%PERL_ARCH%%/auto/Bit/Vector/.packlist
+ %%SITE_PERL%%/%%PERL_ARCH%%/auto/Bit/Vector/Vector.bs
  %%SITE_PERL%%/%%PERL_ARCH%%/auto/Bit/Vector/Vector.so
  @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Bit/Vector
  @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Bit/Vector

And did:
make all install package


test84: {71} # make all install package
===  Installing for p5-Bit-Vector-7.3
===   p5-Bit-Vector-7.3 depends on package: p5-Carp-Clan=0 - found
===   p5-Bit-Vector-7.3 depends on file: /usr/local/bin/perl5.14.4 - found
===   Generating temporary packing list
===  Checking if math/p5-Bit-Vector already installed
Files found in blib/arch: installing files in blib/lib into architecture 
dependent library tree
Installing 
/usr/local/lib/perl5/site_perl/5.14/mach/auto/Bit/Vector/Vector.so

Installing /usr/local/lib/perl5/site_perl/5.14/mach/Bit/Vector.pm
Installing /usr/local/lib/perl5/site_perl/5.14/mach/Bit/Vector.pod
Installing /usr/local/lib/perl5/site_perl/5.14/mach/Bit/Vector/Overload.pm
Installing /usr/local/lib/perl5/site_perl/5.14/mach/Bit/Vector/String.pod
Installing /usr/local/lib/perl5/site_perl/5.14/mach/Bit/Vector/Overload.pod
Installing /usr/local/lib/perl5/site_perl/5.14/mach/Bit/Vector/String.pm
Installing /usr/local/lib/perl5/5.14/man/man3/Bit::Vector.3
Installing /usr/local/lib/perl5/5.14/man/man3/Bit::Vector::Overload.3
Installing /usr/local/lib/perl5/5.14/man/man3/Bit::Vector::String.3
===   Compressing manual pages for p5-Bit-Vector-7.3
===   Registering installation for p5-Bit-Vector-7.3
===  Building package for p5-Bit-Vector-7.3

I suspect that the pkg-plist entries for the indicated *.bs files are 
not needed.


--

XX ===  Building package for p5-B-Utils-0.21
XX tar: lib/perl5/site_perl/5.14/mach/auto/B/Utils/Utils.bs: Cannot 
stat: No such file or directory

XX tar: Error exit delayed from previous errors.

XX ===  Building package for p5-Bit-Vector-7.3
XX tar: lib/perl5/site_perl/5.14/mach/auto/Bit/Vector/Vector.bs: Cannot 
stat: No such file or directory

XX tar: Error exit delayed from previous errors.

XX ===  Building package for p5-HTML-Parser-3.71
XX tar: lib/perl5/site_perl/5.14/mach/auto/HTML/Parser/Parser.bs: Cannot 
stat: No such file or directory

XX tar: Error exit delayed from previous errors.

XX ===  Building package for p5-Params-Util-1.07
XX tar: lib/perl5/site_perl/5.14/mach/auto/Params/Util/Util.bs: Cannot 
stat: No such file or directory

XX tar: Error exit delayed from previous errors.

XX ===  Building package for p5-Socket-2.012
XX tar: lib/perl5/site_perl/5.14/mach/auto/Socket/Socket.bs: Cannot 
stat: No such file or directory

XX tar: Error exit delayed from previous errors.

XX ===  Building package for p5-Storable-2.45
XX tar: lib/perl5/site_perl/5.14/mach/auto/Storable/Storable.bs: Cannot 
stat: No such file or directory

XX tar: Error exit delayed from previous errors.

XX ===