Harlan Stenn <st...@ntp.org> writes:

> As part of the build and check process I want to run a generated perl
> script that needs a module that I'll also be installing.  This means
> that the module we want to use might not be installed, or the installed
> copy might be an old copy.  We'll need to run the script in the build
> tree and have it pick up the module we'll be installing.

> I could use the PERL5LIB envariable and export that in the buld
> Makefiles.  I'm not sure this will always work, but I just have an
> intuitive concern about this.

> I don't think I can use -I parameters to fix this because it would
> require modifying the generated scripts.

I would try first to run the script explicitly with perl -I parameters,
and if the mechanisms are such that this doesn't work, I'd use PERL5LIB.
In other words, I think you've found the best solutions that are available
at the moment.

-- 
Russ Allbery (ea...@eyrie.org)              <http://www.eyrie.org/~eagle/>

Reply via email to