Skip Menu |
 

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

Report information
The Basics
Id: 65100
Status: resolved
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors: zlo [...] zlo.nu
Cc:
AdminCc:

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



Subject: Supplied inc/Perl/OSType.pm is not in INC path
Download (untitled) / with headers
text/plain 319b
The Perl::OSType is not installed, according to the README, the Build should use the supplied inc/Perl/OSType.pm As 'inc' is not in the @INC array, it is not found automatically. Adding it to the @INC array fixed this of course. I am not sure whether this is intentional or not. If so, please ignore. ;-) Marc Olzheim
Download (untitled) / with headers
text/plain 603b
I don't understand your bug report. The only place the supplied inc/Perl/OSType.pm is needed is when Build.PL is first run and Build.PL has special-case code for using the supplied inc/Perl/OSType.pm. After that, normal dependency resolution (e.g by a CPAN client or manual) should ensure that Perl::OSType is installed. I also don't understand your reference to README. Could you please post the commands you're running to trigger the error along with the output and error message you're seeing? Also, please post the output of 'perl -V' for the perl you are using to trigger the bug. Thank you.
CC: Marc Olzheim <zlo [...] zlo.nu>
Subject: Re: [rt.cpan.org #65100] Supplied inc/Perl/OSType.pm is not in INC path
Date: Tue, 25 Jan 2011 13:00:58 +0100
To: David Golden via RT <bug-Module-Build [...] rt.cpan.org>
From: Marc Olzheim <zlo [...] zlo.nu>
Download (untitled) / with headers
text/plain 3.2k
iphone:~/src/p5/Module-Build-0.3622>perl Build.PL Creating new 'MYMETA.yml' with configuration results Creating new 'Build' script for 'Module-Build' version '0.3622' iphone:~/src/p5/Module-Build-0.3622>./Build Can't locate Perl/OSType.pm in @INC (@INC contains: t/lib t/bundled lib /usr/local/lib/perl5/5.10.0/arm-iphoneos /usr/local/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/arm-iphoneos /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/5.10.0/arm-iphoneos /usr/local/lib/perl5/5.10.0 . .) at lib/Module/Build.pm line 13. BEGIN failed--compilation aborted at lib/Module/Build.pm line 13. Compilation failed in require at ./Build line 42. BEGIN failed--compilation aborted at ./Build line 42. (2) iphone:~/src/p5/Module-Build-0.3622>perl -V Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=iphoneos, osvers=9.4.1, archname=arm-iphoneos uname='darwin zlo 9.4.1 darwin kernel version 9.4.1: sun aug 10 21:23:40 pdt 2008; root:xnu-1228.7.27~12release_arm_s5l8900x iphone1,2 arm n82ap darwin ' config_args='-ders' hint=previous, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-I/var/include -I/var/include.orig -fno-strict-aliasing -I/usr/local/include', optimize='-Os', cppflags='-I/var/include -I/var/include.orig -fno-strict-aliasing -I/usr/local/include -I/var/include -I/var/include.orig -fno-strict-aliasing -I/usr/local/include -I/var/include -I/var/include.orig -fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='4.2.1 (Based on Apple Inc. build 5555)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='ld', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-ldbm -ldb -ldl -lm -lutil -lc perllibs=-ldl -lm -lutil -lc libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=dylib, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-fPIC', lddlflags='-bundle -undefined dynamic_lookup -L/usr/local/lib -lbundle1.o' Characteristics of this binary (from libperl): Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO Built under iphoneos Compiled at Oct 29 2008 08:59:20 @INC: /usr/local/lib/perl5/5.10.0/arm-iphoneos /usr/local/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/arm-iphoneos /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/5.10.0/arm-iphoneos /usr/local/lib/perl5/5.10.0 . . iphone:~/src/p5/Module-Build-0.3622> From Changes (not README, sorry): 0.36_19 - Tue Dec 7 13:43:42 EST 2010 Bug fixes: - Perl::OSType is declared as a 'configure_requires' dependency, but is also bundled in inc (and loaded if needed) [David Golden]
CC: Marc Olzheim <zlo [...] zlo.nu>
Subject: Re: [rt.cpan.org #65100] Supplied inc/Perl/OSType.pm is not in INC path
Date: Tue, 25 Jan 2011 13:34:48 +0100
To: David Golden via RT <bug-Module-Build [...] rt.cpan.org>
From: Marc Olzheim <zlo [...] zlo.nu>
Hmm, after installing Perl::OSType, the same happens for Module::Metadata: iphone:~/src/p5/Module-Build-0.3622>perl Build.PL Creating new 'MYMETA.yml' with configuration results Creating new 'Build' script for 'Module-Build' version '0.3622' iphone:~/src/p5/Module-Build-0.3622>./Build Can't locate Module/Metadata.pm in @INC (@INC contains: t/lib t/bundled lib /usr/local/lib/perl5/5.10.0/arm-iphoneos /usr/local/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/arm-iphoneos /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/5.10.0/arm-iphoneos /usr/local/lib/perl5/5.10.0 . .) at lib/Module/Build/ModuleInfo.pm line 10. Compilation failed in require at lib/Module/Build/Base.pm line 23. BEGIN failed--compilation aborted at lib/Module/Build/Base.pm line 23. Compilation failed in require at lib/Module/Build.pm line 15. BEGIN failed--compilation aborted at lib/Module/Build.pm line 15. Compilation failed in require at ./Build line 42. BEGIN failed--compilation aborted at ./Build line 42. (2) iphone:~/src/p5/Module-Build-0.3622> After installing Module::Metadata, ./Build works as expected. Marc
Download (untitled) / with headers
text/plain 425b
Ah. I think I see the issue. You're installing Module::Build by hand instead of using a CPAN installer. The prerequisite are being written correctly for an installer to pick up (e.g. in MYMETA.yml) but because they are provided in inc/ during the Build.PL process, no error about missing prerequisites is output to the screen from Build.PL. I'll fix that for the next release. Thank you for pointing that out. -- David
Patched in repo and will be part of the 0.37_XX dev release series
CC: zlo [...] zlo.nu
Subject: Re: [rt.cpan.org #65100] Supplied inc/Perl/OSType.pm is not in INC path
Date: Tue, 25 Jan 2011 17:34:32 +0100
To: David Golden via RT <bug-Module-Build [...] rt.cpan.org>
From: Marc Olzheim <zlo [...] zlo.nu>
Download (untitled) / with headers
text/plain 150b
Yeah, I do not have enough memory to run use cpan to build the modules. I build on my iPhone 3G which has only 128M. Thanks for your time. ;-) Marc
Subject: Re: [rt.cpan.org #65100] Supplied inc/Perl/OSType.pm is not in INC path
Date: Tue, 25 Jan 2011 11:43:00 -0500
To: bug-Module-Build [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
Download (untitled) / with headers
text/plain 468b
On Tue, Jan 25, 2011 at 11:34 AM, Marc Olzheim via RT <bug-Module-Build@rt.cpan.org> wrote: Show quoted text
>       Queue: Module-Build >  Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=65100 > > > Yeah, I do not have enough memory to run use cpan to build the modules. > I build on my iPhone 3G which has only 128M.
I think that's awesome that you're building perl on iPhone. Have you tried cpanm as a lightweight CPAN client? http://p3rl.org/App::cpanminus -- David
CC: zlo [...] zlo.nu
Subject: Re: [rt.cpan.org #65100] Supplied inc/Perl/OSType.pm is not in INC path
Date: Tue, 25 Jan 2011 17:45:38 +0100
To: David Golden via RT <bug-Module-Build [...] rt.cpan.org>
From: Marc Olzheim <zlo [...] zlo.nu>
Download (untitled) / with headers
text/plain 282b
On Tue, Jan 25, 2011 at 11:43:32AM -0500, David Golden via RT wrote: Show quoted text
> I think that's awesome that you're building perl on iPhone. Have you > tried cpanm as a lightweight CPAN client? > > http://p3rl.org/App::cpanminus
Hmmm, interesting, no, I haven't. Thanks for the tip! Marc
Download (untitled) / with headers
text/plain 108b
Fixed in 0.3623 -- in the sense that it flags these missing dependencies to users manually running Build.PL.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.