Skip Menu |

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 121766
Status: new
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors: int [...] arcor.de
Cc:
AdminCc:

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



Subject: local variable PERL_MB_OPT interferes with ./Build install
Date: Thu, 18 May 2017 12:11:02 +0200 (CEST)
To: bug-Module-Build [...] rt.cpan.org
From: int [...] arcor.de
Hello, I think I found a bug. I have the environment-variable PERL_MB_OPT set to point to my home-directory (--install_base "/home/int/perl5") like CPAN told me to do. Now I get the perl-module Class::Mix (which uses Module::Build) via the CPAN-shell Show quoted text
> get Class::Mix
and change to its source-directory and generate the Build-File the following way: Show quoted text
> ( PERL_MB_OPT="--installdirs vendor --destdir '/home/int/perl6'"; > perl Build.PL; ./Build; > )
when I launch Show quoted text
> ./Build install
I get the following messages: Show quoted text
> Building Class-Mix > Installing /home/int/perl6/home/int/perl5/lib/perl5/Class/Mix.pm > Installing /home/int/perl6/home/int/perl5/man/man3/Class::Mix.3pm
I think my environment-variable PERL_MB_OPT (pointing to/home/int/perl5) gets appended, which is wrong IHMO. MakeMaker behaves differently. PERL_MM_OPT again points to my home-directory (INSTALL_BASE=/home/int/perl5). I get the perl-module Probe::Perl (which uses ExtUtils::MakeMaker) via the CPAN-shell Show quoted text
> get Probe::Perl
and change to its source-directory and generate the Makefile the following way: Show quoted text
> ( PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='/home/int/perl6'"; > perl Makefile.PL; make; > )
when I launch Show quoted text
> make install
I get the following messages: Show quoted text
> Manifying 1 pod document > Installing /home/int/perl6/usr/share/perl5/vendor_perl/Probe/Perl.pm > Installing /home/int/perl6/usr/share/man/man3/Probe::Perl.3pm > Appending installation info to /home/int/perl6/usr/lib/perl5/core_perl/perllocal.pod
which is correct, I think. This issue, that my local variable PERL_MB_OPT gets in the way, appeared when I build packages for ArchLinux. Suddently the path in the package was wrong. Greetings, int