App-perlbrew
App-perlbrew copied to clipboard
`--force` flag does not work on MacBook
$ perlbrew --force install perl-5.40.2
Installing /Users/ek-mac/perl5/perlbrew/build/perl-5.40.2/perl-5.40.2 into ~/perl5/perlbrew/perls/perl-5.40.2
This could take a while. You can run the following command on another shell to track the status:
tail -f ~/perl5/perlbrew/build.perl-5.40.2.log
Installation process failed. To spot any issues, check
/Users/ek-mac/perl5/perlbrew/build.perl-5.40.2.log
If some perl tests failed and you still want to install this distribution anyway,
do:
(cd /Users/ek-mac/perl5/perlbrew/build/perl-5.40.2/perl-5.40.2; make install)
You might also want to try upgrading patchperl before trying again:
perlbrew install-patchperl
Generally, if you need to install a perl distribution known to have minor test
failures, do one of these commands to avoid seeing this message:
perlbrew --notest install perl-5.40.2
perlbrew --force install perl-5.40.2
$ perlbrew list
* perl-5.40.0
$ perlbrew use perl-5.40.2
ERROR: The installation "perl-5.40.2" is unknown.
https://github.com/Perl/perl5/issues/23368
What does the log file show after this failure?
build.perl-5.40.2.log Last lines:
...
../lib/Internals.t ................................................... ok
../lib/less.t ........................................................ ok
Assertion failed: (p->val == key), function lookup_substsearch, file collate.c, line 596.
../lib/locale.t ......................................................
All 382 subtests passed
../lib/locale_threads.t .............................................. skipped: no ithreads
../lib/meta_notation.t ............................................... ok
...
../lib/utf8.t ........................................................ ok
../lib/vars.t ........................................................ ok
../lib/vars_carp.t ................................................... ok
../lib/vmsish.t ...................................................... ok
../lib/warnings.t .................................................... ok
../dist/threads-shared/t/waithires.t ................................. skipped: Perl not compiled with 'useithreads'
Test Summary Report
-------------------
../lib/locale.t (Wstat: 6 (Signal: ABRT) Tests: 382 Failed: 0)
Non-zero wait status: 6
Parse errors: No plan found in TAP output
Files=2892, Tests=1185291, 558 wallclock secs (21.50 usr 4.64 sys + 209.68 cusr 31.68 csys = 267.50 CPU)
Result: FAIL
Finished test run at Tue Jun 17 18:43:32 2025.
make: *** [test_harness] Error 1
##### Brew Failed #####
The --force option doesn't seem to cause it to continue after a test failure. This has been the case since 4ee1149b9af29187aac7ef983caaf5f83108d9d8, but seems unintentional.
Thanks for the investigation @haarg -- that does looks unintentional to me.