toddr / Crypt-RIPEMD160

Release history of Crypt-RIPEMD160
https://metacpan.org/pod/Crypt::RIPEMD160
6 stars 2 forks source link

Can't locate auto/Crypt/RIPEMD160/MAC/autosplit.ix #2

Open mtelka opened 1 year ago

mtelka commented 1 year ago

I'm trying to package Crypt-RIPEMD160 for OpenIndiana and during testing I found this error:

Can't locate auto/Crypt/RIPEMD160/MAC/autosplit.ix in @INC (@INC entries checked: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.38/i86pc-solaris-thread-multi-64 /usr/perl5/site_perl/5.38 /usr/perl5/vendor_perl/5.38/i86pc-solaris-thread-multi-64 /usr/perl5/vendor_perl/5.38 /usr/perl5/5.38/lib/i86pc-solaris-thread-multi-64 /usr/perl5/5.38/lib .) at /usr/perl5/5.38/lib/AutoLoader.pm line 181.
 at $(@D)/blib/lib/Crypt/RIPEMD160/MAC.pm line 3.

There is no auto/Crypt/RIPEMD160/MAC/autosplit.ix file, but there is auto/Crypt/RIPEMD160/autosplit.ix.

This fails with Perl 5.34, 5.36, and 5.38.

ballapete commented 4 months ago

The same with Perl 5.34 and Crypt-RIPEMD160-0.08 on macOS.

mtelka commented 4 months ago

FYI, I use this as a workaround:

mkdir blib/lib/auto/Crypt/RIPEMD160/MAC
echo "1;" > blib/lib/auto/Crypt/RIPEMD160/MAC/autosplit.ix
ballapete commented 3 months ago

The file actually exists, only, it's in the wrong directory:

  .../Crypt-RIPEMD160-0.08/blib/lib/auto/Crypt/RIPEMD160:
  insgesamt 4
  drwxr-xr-x 2 macports macports 136 14. Dez 15:19 .
  drwxr-xr-x 3 macports macports 102 14. Dez 15:19 ..
  -rw-r--r-- 1 macports macports   0 14. Dez 15:19 .exists
  -rw-r--r-- 1 macports macports  94 14. Dez 15:19 autosplit.ix

The MAC subdirectory is omitted…

ballapete commented 3 months ago

In the MacPorts package manager's "Portfile" (recipe to handle the software in stages or phases) I put

pre-test {
    system "ln -s . ${worksrcpath}/blib/lib/auto/Crypt/RIPEMD160/MAC"
}

which is simpler than creating a new sub-directory ("MAC") and then echoing something into a file. The directory Crypt-RIPEMD160-/blib/lib/auto/Crypt/RIPEMD160 now simply contains:

  insgesamt 8
  drwxr-xr-x 2 macports macports 170 15. Dez 20:50 .
  drwxr-xr-x 3 macports macports 102 15. Dez 20:50 ..
  -rw-r--r-- 1 macports macports   0 15. Dez 20:50 .exists
  lrwxr-xr-x 1 macports macports   1 15. Dez 20:50 MAC -> .
  -rw-r--r-- 1 macports macports  94 15. Dez 20:50 autosplit.ix

and all seems to be well:

--->  Testing p5.34-crypt-ripemd160
Executing:  cd "/opt/local/var/macports/build/_Users_alpha_ports_perll_p5-crypt-ripemd160/p5.34-crypt-ripemd160/work/Crypt-RIPEMD160-0.08" && /usr/bin/make test 
"/opt/local/bin/perl5.34" -MExtUtils::Command::MM -e 'cp_nonempty' -- RIPEMD160.bs blib/arch/auto/Crypt/RIPEMD160/RIPEMD160.bs 644
PERL_DL_NONLAZY=1 "/opt/local/bin/perl5.34" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01test.t .. ok
All tests successful.
Files=1, Tests=26,  0 wallclock secs ( 0.03 usr  0.00 sys +  0.34 cusr  0.01 csys =  0.38 CPU)
Result: PASS

Next week I'll be able to test on older Macs with Mac OS X versions…

-- Greetings

Pete

"Old age and treachery will overcome youth and skill."