Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 50738
Status: open
Worked: 30 min
Priority: 0/
Queue: CPANPLUS

People
Owner: BINGOS [...] cpan.org
Requestors:
Cc:
AdminCc:

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



Subject: prompted despite set PERL_MM_USE_DEFAULT=1
In my Config/User.pm I do have $conf->set_conf( prereqs => 2 ); but shouldn't setting PERL_MM_USE_DEFAULT stop cpanp from prompting? $ cpanp v CPANPLUS::Shell::Default -- CPAN exploration and module installation (v0.89_03) *** Please report bugs to <bug-cpanplus@rt.cpan.org>. *** Using CPANPLUS::Backend v0.89_03. ReadLine support disabled. $ set PERL_MM_USE_DEFAULT=1 $ echo %PERL_MM_USE_DEFAULT% 1 $ cpanp i ADAMK/Test-XT-0.03_01 [MSG] [Thu Oct 22 00:38:44 2009] Using cached file '*snip*CPANPL~1\authors\id\A\AD\ADAMK\CHECKSUMS' on disk; ttl (3600s) is not exceeded [MSG] [Thu Oct 22 00:38:44 2009] Checksum matches for 'Test-XT-0.03_01.tar.gz' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/LICENSE' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/Makefile.PL' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/README' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/lib/' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/lib/Test/' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/lib/Test/XT.pm' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/META.yml' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/MANIFEST' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/Changes' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/inc/' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/inc/Module/' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/inc/Module/Install/' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/inc/Module/Install/DSL.pm' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/inc/Module/Install/Can.pm' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/inc/Module/Install/Base.pm' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/inc/Module/Install/Fetch.pm' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/inc/Module/Install/Win32.pm' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/inc/Module/Install/WriteAll.pm' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/inc/Module/Install/Metadata.pm' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/inc/Module/Install/Makefile.pm' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/inc/Module/Install.pm' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/t/' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/t/03_meta.t' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/t/34_minimumversion.t' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/t/24_minimumversion.t' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/t/02_pod.t' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/t/12_pod.t' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/t/32_pod.t' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/t/23_meta.t' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/t/14_minimumversion.t' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/t/33_meta.t' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/t/13_meta.t' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/t/97_meta.t' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/t/01_compile.t' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/t/98_pod.t' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/t/22_pod.t' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/t/99_pmv.t' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test-XT-0.03_01/t/04_minimumversion.t' [MSG] [Thu Oct 22 00:38:44 2009] Extracted 'Test::XT' to '*snip*CPANPL~1\5.11.1\build\Test-XT-0.03_01' [MSG] [Thu Oct 22 00:38:47 2009] Warning: prerequisite Perl::MinimumVersion 1.20 not found. Warning: prerequisite Test::CPAN::Meta 0.12 not found. Warning: prerequisite Test::MinimumVersion 0.008 not found. Writing Makefile for Test::XT [MSG] [Thu Oct 22 00:38:47 2009] DEFAULT 'filter_prereqs' HANDLER RETURNING 'sub return value' [MSG] [Thu Oct 22 00:38:47 2009] Module 'Test::XT' requires 'Perl::MinimumVersion' version '1.20' to be installed [MSG] [Thu Oct 22 00:38:48 2009] Module 'Test::XT' requires 'Test::CPAN::Meta' version '0.12' to be installed [MSG] [Thu Oct 22 00:38:48 2009] Module 'Test::XT' requires 'Test::MinimumVersion' version '0.008' to be installed [HISTORY] [Thu Oct 22 00:38:48 2009] Show quoted text
1> Yes
Show quoted text
2> No
Show quoted text
3> Yes to all (for this module)
Show quoted text
4> No to all (for this module)
[HISTORY] [Thu Oct 22 00:39:01 2009] Should I install this module? [1]: $ perl -V Summary of my perl5 (revision 5 version 11 subversion 1) configuration: Commit id: fb35b2c24f8da5fb8fa1a50fbab1868d072191db Platform: osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags =' -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -DPERL_MSVCRT_READFIX', optimize='-s -O2', cppflags='-DWIN32' ccversion='', gccversion='3.4.5', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='long long', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='g++', ldflags ='-s -L"c:\perl\5.11.1\lib\MSWin32-x86-multi-thread\CORE" -L"C:\MinGW\lib"' libpth=C:\MinGW\lib libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 libc=, so=dll, useshrplib=true, libperl=libperl511.a gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-mdll -s -L"c:\perl\5.11.1\lib\MSWin32-x86-multi-thread\CORE" -L"C:\MinGW\lib"' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PL_OP_SLAB_ALLOC USE_ITHREADS USE_LARGE_FILES USE_PERLIO Built under MSWin32 Compiled at Oct 21 2009 05:00:51 @INC: C:/perl/site/5.11.1/lib/MSWin32-x86-multi-thread C:/perl/site/5.11.1/lib C:/perl/5.11.1/lib/MSWin32-x86-multi-thread C:/perl/5.11.1/lib .
Subject: Re: [rt.cpan.org #50738] prompted despite set PERL_MM_USE_DEFAULT=1
Date: Thu, 22 Oct 2009 10:22:03 +0200
To: bug-CPANPLUS [...] rt.cpan.org
From: "Jos I. Boumans" <jos [...] dwim.org>
On Oct 22, 2009, at 9:58 AM, noreply via RT wrote: Show quoted text
> Thu Oct 22 03:58:08 2009: Request 50738 was acted upon. > Transaction: Ticket created by noreply > Queue: CPANPLUS > Subject: prompted despite set PERL_MM_USE_DEFAULT=1 > Broken in: 0.89_03 > Severity: Normal > Owner: Nobody > Requestors: > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=50738 > > > > In my Config/User.pm I do have > $conf->set_conf( prereqs => 2 ); > but shouldn't setting PERL_MM_USE_DEFAULT stop cpanp from prompting?
you want prereqs => 1 for straight installation. CPAN Terminal> s conf prereqs 1; s save Will do the trick for you -- Jos Boumans "Whenever you find you are on the side of the majority, it is time to pause and reflect." - Mark Twain
Show quoted text
> > In my Config/User.pm I do have > > $conf->set_conf( prereqs => 2 ); > > but shouldn't setting PERL_MM_USE_DEFAULT stop cpanp from prompting?
> > you want prereqs => 1 for straight installation. > > CPAN Terminal> s conf prereqs 1; s save > > Will do the trick for you
Thank you, but I knew that :) I did not want to edit my config. I prefer 2, and wanted no prompts only for that one module. The traditional way to accomplish this is to set PERL_MM_USE_DEFAULT cpan respects this tradition , i think cpanp should also
On Tue Oct 27 09:30:40 2009, noreply wrote: Show quoted text
> Thank you, but I knew that :) I did not want to edit my config. > I prefer 2, and wanted no prompts only for that one module. > The traditional way to accomplish this is to set PERL_MM_USE_DEFAULT > cpan respects this tradition , i think cpanp should also
The PERL_MM_USE_DEFAULT environment variable is a ExtUtils::MakeMaker setting to take the default answer in response to its prompt() function. Module::Build also honours this convention. The reason that CPAN.pm 'respects this tradition' is through action at a distance. CPAN.pm's prompting is basically a wrapper around EUMM's prompt() function. It is less of a tradition and more of a side-effect. Also setting PERL_MM_USE_DEFAULT does not bypass all prompting, as Module::AutoInstall does not honour this env var and uses its own env var. Anyways, I have looked at how this behaviour could be implemented and on reflection it would have massive knock-on implications for things like CPAN Testing. Automated testers set PERL_MM_USE_DEFAULT, but rely on the fact that $conf->{prereqs} is set to 2, so that the necessary install prereqs callback code is executed.
On Thu Oct 29 06:48:59 2009, BINGOS wrote: Show quoted text
> On Tue Oct 27 09:30:40 2009, noreply wrote:
> > Thank you, but I knew that :) I did not want to edit my config. > > I prefer 2, and wanted no prompts only for that one module. > > The traditional way to accomplish this is to set PERL_MM_USE_DEFAULT > > cpan respects this tradition , i think cpanp should also
> > The PERL_MM_USE_DEFAULT environment variable is a ExtUtils::MakeMaker > setting to take the default answer in response to its prompt() function. > > Module::Build also honours this convention. > > The reason that CPAN.pm 'respects this tradition' is through action at a > distance. CPAN.pm's prompting is basically a wrapper around EUMM's > prompt() function. It is less of a tradition and more of a side-effect. > > Also setting PERL_MM_USE_DEFAULT does not bypass all prompting, as > Module::AutoInstall does not honour this env var and uses its own env var. > > Anyways, I have looked at how this behaviour could be implemented and on > reflection it would have massive knock-on implications for things like > CPAN Testing. Automated testers set PERL_MM_USE_DEFAULT, but rely on the > fact that $conf->{prereqs} is set to 2, so that the necessary install > prereqs callback code is executed. >
I see. Maybe some kind of --noninteractive / --noprompt option might make sense.