On Fri, May 22, 2009 at 10:07 AM, Roderich Schupp <[email protected]> wrote: > On Fri, May 22, 2009 at 1:57 PM, Dusty Wilson [Megagram] > <[email protected]> wrote: >> Is there an existing method to prevent using any local perl and local >> perl modules from being used at any point in execution? If not, would >> you accept a patch to make it so? > > Does your problem go away withe th following patch? > > --- libpar-packer-perl-0.991-ORIG/script/par.pl 2009-03-21 > 11:56:51.000000000 +0100 > +++ libpar-packer-perl-0.991/script/par.pl 2009-04-28 > 18:14:34.000000000 +0200 > @@ -337,7 +337,7 @@ > } > > die "Bootstrapping failed: cannot find $module!\n"; > - }, @INC); > + }, %require_list ? () : @INC); > > # Now load all bundled files {{{
With that change to my /usr/local/bin/par.pl (the only par.pl "find / -iname 'par.pl'" found), it still gives me this: Can't locate List/Util/PP.pm in @INC (@INC contains: CODE(0x1d205b0) /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/local/lib/perl/5.10.0/List/Util.pm line 38. Added info: I am testing with this build command: pp -e 'print 123' and then running it on a different box (the one with the seemingly local-perl-related weirdness). (Roderich, sorry for direct reply. My mistake in replying.)
