rurban / perl-compiler

B::C - Moved over from googlecode
https://code.google.com/p/perl-compiler/
Other
63 stars 23 forks source link

test 44 in B, C, CC: Scalar::Util "weaken" not imported #59

Closed rurban closed 9 years ago

rurban commented 9 years ago

Original issue 57 created by rurban on 2010-12-28T17:58:03.000Z:

# perl #72922 (5.11.4 fails with magic_killbackrefs)
use Scalar::Util "weaken";my $re1=qr/foo/;my $re2=$re1;weaken($re2);print "ok" if $re3=qr/$re1/;
>>>
ok 

Problem:
Undefined subroutine &main::weaken called
weaken not imported correctly.
rurban commented 9 years ago

Comment #1 originally posted by rurban on 2011-03-03T12:29:18.000Z:

Hacked workaround with r918, which hardcodes Scalar::Util => &List::Util::bootstrap

bootstrapping did not detect List::Util, since it is not in its ISA, only required. require does not help. (fixed test 44)

Same workaround also needed for 'Sub::Exporter' => 'Params::Util' and probably many more.

TODO better strategy for compile-time added and required packages: loop savecv and check pkg cache for new pkgs. if so loop again with those new pkgs only, until the list of new pkgs is empty

rurban commented 9 years ago

Comment #2 originally posted by rurban on 2011-06-06T20:43:00.000Z:

Fixed for now, but need TODO better strategy for compile-time added and required packages: loop savecv and check pkg cache for new pkgs. if so loop again with those new pkgs only, until the list of new pkgs is empty