Subject: | INC-parameter ignored |
Date: | Tue, 15 Oct 2013 13:38:47 +0200 |
To: | bug-ExtUtils-MakeMaker [...] rt.cpan.org |
From: | Manuel Jeckelmann <mjeckelmann [...] gmail.com> |
Hi all,
Assume the following scenario:
- I unpack, make, test and install module A to a non-default directory e.g.
/opt/application (via INSTALL_BASE)
- Then I unpack, make and try to test module B that relies heavily upon
module B. However, that step fails, since the perl interpreter does not
find module A's sources.
The solution to that issue was, from my point of view, to add the
INC-parameter to module B's Makefile.PL. In the resulting Makefile,
however, INC does appear once in a comment and once at its definition, but
is never read (in terms of passing it to the interpreter or similar).
Here's the code I'm running from within my Makefile.PL for module B:
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'ModuleB',
VERSION_FROM => 'lib/ModuleB.pm',
AUTHOR => 'M. J. <some.email@address.com>',
INSTALL_BASE => '/opt/application',
INC => '/opt/application/lib/perl5',
);
After running the make-chain, "make test" fails, since it does not find
module A (pointed by the INC-parameter).
A fix would be appreciated. ;)
Thanks for enabling us to easily pack, deploy and build stuff! :)
Manuel