Skip Menu |

This queue is for tickets about the ExtUtils-MakeMaker CPAN distribution.

Report information
The Basics
Id: 89524
Status: resolved
Priority: 0/
Queue: ExtUtils-MakeMaker

People
Owner: Nobody in particular
Requestors: mjeckelmann [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
On Tue Oct 15 07:39:04 2013, mjeckelmann@gmail.com wrote: Show quoted text
> 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
Hi, The INC attribute is for specifying include directories for building XS extensions. You possibly would want the PERL5LIB environment variable, documented in perlrun Or local::lib. Many thanks.