[tapx-dev] How to fix 20688

Eric Wilhelm scratchcomputing at gmail.com
Mon Mar 19 01:51:22 GMT 2007


# from Michael G Schwern
# on Sunday 18 March 2007 03:00 pm:

>TH always runs _filtered_inc().  The rationale is to strip out any
> redundant entries in @INC to avoid a series of -I's from overblowing
> the command line length on the more *ahem* senior operating systems.
>  That or if PERL5LIB is used to avoid overrunning the max size of an
> environment variable.  Since TH sets PERL5LIB (I forget why) this is
> necessary.  Since TAP::Parser does not set PERL5LIB then there's no
> worries... except in the taint case.

AFAIK, environment variables and command line length both have to fit in 
the same (shared) limit.  Thus, -I vs $PERL5LIB= should equate to a 
difference of (length('-I') - length($Config{pathsep}))*scalar(@INC) or 
so.  Just food for thought.

See the Module::Build archives for the (AFAIK) as-yet unresolved issue 
on redhat.  Is that what you meant by "senior"?  Having no red hats 
(just that black one) myself, I haven't tried to follow-up on it.  I 
think the concensus was that we would possibly end-up printing a 
tempfile of "push(@INC, blah, blah, blah)" and then -M'ing it.  Just 
dessert for thought.

--Eric
-- 
But as soon as you hear the Doppler shift dropping in pitch, you know
that they're probably going to miss your house, because if they were on
a collision course with your house, the pitch would stay the same until
impact. As I said, that's one's subtle.
--Larry Wall
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------


More information about the tapx-dev mailing list