Re: [rt.cpan.org #92402] Inline asks interactive question -- but doesn't have keyboard

2014-01-23 Thread Xiao Yafeng
I've tried reinstall Inline via cpan and seems work fine:

xyf@AndyHome:~$ cpan -f -i Inline
CPAN: Storable loaded ok (v2.34)
Reading '/home/xyf/.cpan/Metadata'
  Database was generated on Thu, 23 Jan 2014 10:17:02 GMT
CPAN: Module::CoreList loaded ok (v2.76)
Running install for module 'Inline'
Running make for S/SI/SISYPHUS/Inline-0.53.tar.gz
CPAN: LWP::UserAgent loaded ok (v6.05)
CPAN: Time::HiRes loaded ok (v1.9725)
Fetching with LWP:
http://mirrors.btte.net/CPAN/authors/id/S/SI/SISYPHUS/Inline-0.53.tar.gz
CPAN: YAML loaded ok (v0.88)
CPAN: Digest::SHA loaded ok (v5.71)
Fetching with LWP:
http://mirrors.btte.net/CPAN/authors/id/S/SI/SISYPHUS/CHECKSUMS
CPAN: Compress::Zlib loaded ok (v2.048)
Checksum for /home/xyf/.cpan/sources/authors/id/S/SI/SISYPHUS/Inline-0.53.tar.gz
ok
CPAN: File::Temp loaded ok (v0.22)
CPAN: CPAN::Meta loaded ok (v2.130880)

  CPAN.pm: Building S/SI/SISYPHUS/Inline-0.53.tar.gz

Checking if your kit is complete...
Looks good

Inline::C is packaged with Inline.pm because it is the most commonly used
Inline Language Support Module (ILSM).

See also: Inline::ASM, ::Awk, ::BC, ::Basic, ::Befunge, ::CPP (C++), ::CPR,
  ::Foo, ::Guile, ::Java, ::Octave, ::PERL, ::Python, ::Ruby, ::TT,
  ::Tcl and ::WebChat.

Config.pm indicates that your version of Perl was built with this C compiler:

cc

I have located this compiler on your system.

Do you want to install Inline::C? [y] y
Writing Makefile for Inline::C
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Inline
Writing MYMETA.yml and MYMETA.json
cp Inline.pod blib/lib/Inline.pod
cp lib/Inline/MakeMaker/Changes blib/lib/Inline/MakeMaker/Changes
cp lib/Inline/denter.pm blib/lib/Inline/denter.pm


SISYPHUS/Inline-0.53.tar.gz
  /usr/bin/make install  -- OK


uname -a
Linux AndyHome 3.2.0-4-686-pae #1 SMP Debian 3.2.51-1 i686 GNU/Linux

On Thu, Jan 23, 2014 at 3:00 PM, sisyph...@optusnet.com.au via RT
bug-inl...@rt.cpan.org wrote:
 Thu Jan 23 02:00:31 2014: Request 92402 was acted upon.
 Transaction: Correspondence added by sisyph...@optusnet.com.au
Queue: Inline
  Subject: Re: [rt.cpan.org #92402] Inline asks interactive question -- 
 but doesn't have keyboard
Broken in: (no value)
 Severity: Important
Owner: Nobody
   Requestors: pa...@tlinx.org
   Status: open
  Ticket URL: https://rt.cpan.org/Ticket/Display.html?id=92402 




 -Original Message-
 From: Linda A Walsh via RT

 Do you want to install Inline::C? [y] y
 (/home/perl/perl-5.16.3/bin/perl Makefile.PL exited with 9)

 Very frustrating -- I tried to type 'y', bt it was ignored, as STDIN seems
 to be taken over by CPAN.

 Yes, I would find that very annoying.
 I don't use any of the CPAN family of modules very much - I avoid them
 unless there's a very long dependency chain.
 Consequently, I don't know much about the options they provide, or about the
 details of the way in which they're supposed to work.

 Did David's reply help ?

 The only thing I can think of adding to what David provided is that, if
 you're happy to accept the default, then setting the PERL_MM_USE_DEFAULT
 environment variable to 1 should enable that. (The default will be 'y' if a
 compiler is found, and 'n' if a compiler is not found.)

 Cheers,
 Rob




Re: [rt.cpan.org #92402] Inline asks interactive question -- but doesn't have keyboard

2014-01-23 Thread Xiao Yafeng via RT
Thu Jan 23 08:29:39 2014: Request 92402 was acted upon.
Transaction: Correspondence added by xyf.x...@gmail.com
   Queue: Inline
 Subject: Re: [rt.cpan.org #92402] Inline asks interactive question -- but 
doesn't have keyboard
   Broken in: (no value)
Severity: Important
   Owner: Nobody
  Requestors: pa...@tlinx.org
  Status: open
 Ticket URL: https://rt.cpan.org/Ticket/Display.html?id=92402 


I've tried reinstall Inline via cpan and seems work fine:

xyf@AndyHome:~$ cpan -f -i Inline
CPAN: Storable loaded ok (v2.34)
Reading '/home/xyf/.cpan/Metadata'
  Database was generated on Thu, 23 Jan 2014 10:17:02 GMT
CPAN: Module::CoreList loaded ok (v2.76)
Running install for module 'Inline'
Running make for S/SI/SISYPHUS/Inline-0.53.tar.gz
CPAN: LWP::UserAgent loaded ok (v6.05)
CPAN: Time::HiRes loaded ok (v1.9725)
Fetching with LWP:
http://mirrors.btte.net/CPAN/authors/id/S/SI/SISYPHUS/Inline-0.53.tar.gz
CPAN: YAML loaded ok (v0.88)
CPAN: Digest::SHA loaded ok (v5.71)
Fetching with LWP:
http://mirrors.btte.net/CPAN/authors/id/S/SI/SISYPHUS/CHECKSUMS
CPAN: Compress::Zlib loaded ok (v2.048)
Checksum for /home/xyf/.cpan/sources/authors/id/S/SI/SISYPHUS/Inline-0.53.tar.gz
ok
CPAN: File::Temp loaded ok (v0.22)
CPAN: CPAN::Meta loaded ok (v2.130880)

  CPAN.pm: Building S/SI/SISYPHUS/Inline-0.53.tar.gz

Checking if your kit is complete...
Looks good

Inline::C is packaged with Inline.pm because it is the most commonly used
Inline Language Support Module (ILSM).

See also: Inline::ASM, ::Awk, ::BC, ::Basic, ::Befunge, ::CPP (C++), ::CPR,
  ::Foo, ::Guile, ::Java, ::Octave, ::PERL, ::Python, ::Ruby, ::TT,
  ::Tcl and ::WebChat.

Config.pm indicates that your version of Perl was built with this C compiler:

cc

I have located this compiler on your system.

Do you want to install Inline::C? [y] y
Writing Makefile for Inline::C
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Inline
Writing MYMETA.yml and MYMETA.json
cp Inline.pod blib/lib/Inline.pod
cp lib/Inline/MakeMaker/Changes blib/lib/Inline/MakeMaker/Changes
cp lib/Inline/denter.pm blib/lib/Inline/denter.pm


SISYPHUS/Inline-0.53.tar.gz
  /usr/bin/make install  -- OK


uname -a
Linux AndyHome 3.2.0-4-686-pae #1 SMP Debian 3.2.51-1 i686 GNU/Linux

On Thu, Jan 23, 2014 at 3:00 PM, sisyph...@optusnet.com.au via RT
bug-inl...@rt.cpan.org wrote:
 Thu Jan 23 02:00:31 2014: Request 92402 was acted upon.
 Transaction: Correspondence added by sisyph...@optusnet.com.au
Queue: Inline
  Subject: Re: [rt.cpan.org #92402] Inline asks interactive question -- 
 but doesn't have keyboard
Broken in: (no value)
 Severity: Important
Owner: Nobody
   Requestors: pa...@tlinx.org
   Status: open
  Ticket URL: https://rt.cpan.org/Ticket/Display.html?id=92402 




 -Original Message-
 From: Linda A Walsh via RT

 Do you want to install Inline::C? [y] y
 (/home/perl/perl-5.16.3/bin/perl Makefile.PL exited with 9)

 Very frustrating -- I tried to type 'y', bt it was ignored, as STDIN seems
 to be taken over by CPAN.

 Yes, I would find that very annoying.
 I don't use any of the CPAN family of modules very much - I avoid them
 unless there's a very long dependency chain.
 Consequently, I don't know much about the options they provide, or about the
 details of the way in which they're supposed to work.

 Did David's reply help ?

 The only thing I can think of adding to what David provided is that, if
 you're happy to accept the default, then setting the PERL_MM_USE_DEFAULT
 environment variable to 1 should enable that. (The default will be 'y' if a
 compiler is found, and 'n' if a compiler is not found.)

 Cheers,
 Rob





Re: [rt.cpan.org #92402] Inline asks interactive question -- but doesn't have keyboard

2014-01-23 Thread Linda A Walsh via RT
Thu Jan 23 23:40:23 2014: Request 92402 was acted upon.
Transaction: Correspondence added by LAWALSH
   Queue: Inline
 Subject: Re: [rt.cpan.org #92402] Inline asks interactive question -- but 
doesn't have keyboard
   Broken in: (no value)
Severity: Important
   Owner: Nobody
  Requestors: pa...@tlinx.org
  Status: open
 Ticket URL: https://rt.cpan.org/Ticket/Display.html?id=92402 




David J. Oswald via RT wrote:
 if ($ENV{PERL_MM_USE_DEFAULT} || (!$isa_tty  eof STDIN)) {

Why is it testing eof on STDIN?  That seems wrong.

my setup is in regenerating modules that need to be reinstalled/upgraded or
whatever...

usually something like:

cat /tmp/outdatedmodules|(either a while look if I want to do them 1 at
a time, or .. lately been trying xargs -- the blockages happen either way).

in xarg case:
cat /tmp/mods|xargs -n1 -P8 cpan -i

would be a sample line... I'm not sure what xargs does...but a similar
cat /tmp/mods|while read mod;do
cpan -i $mod
done

will create the same type of error (Inline hasn't been the only mod I've
seen this on -- wasn't until I looked into it to try to see why.

I don't see a CPAN option to take the default in the config  or in cpan's
o config options.  Is it documented somewhere?

 Is it possible that you've got something waiting on STDIN, so the eof STDIN 
 test fails?
---
Given there is stdin supplying the list of mods to be built, it is
not impossible -- but I wouldn't think stdin from the input file would be
passed unaltered directly into cpan...


   



Re: [rt.cpan.org #92402] Inline asks interactive question -- but doesn't have keyboard

2014-01-22 Thread sisyphus1



-Original Message- 
From: Linda A Walsh via RT



Do you want to install Inline::C? [y] y
(/home/perl/perl-5.16.3/bin/perl Makefile.PL exited with 9)



Very frustrating -- I tried to type 'y', bt it was ignored, as STDIN seems
to be taken over by CPAN.


Yes, I would find that very annoying.
I don't use any of the CPAN family of modules very much - I avoid them
unless there's a very long dependency chain.
Consequently, I don't know much about the options they provide, or about the
details of the way in which they're supposed to work.

Did David's reply help ?

The only thing I can think of adding to what David provided is that, if
you're happy to accept the default, then setting the PERL_MM_USE_DEFAULT
environment variable to 1 should enable that. (The default will be 'y' if a
compiler is found, and 'n' if a compiler is not found.)

Cheers,
Rob 



Re: [rt.cpan.org #92402] Inline asks interactive question -- but doesn't have keyboard

2014-01-22 Thread sisyph...@optusnet.com.au via RT
Thu Jan 23 02:00:31 2014: Request 92402 was acted upon.
Transaction: Correspondence added by sisyph...@optusnet.com.au
   Queue: Inline
 Subject: Re: [rt.cpan.org #92402] Inline asks interactive question -- but 
doesn't have keyboard
   Broken in: (no value)
Severity: Important
   Owner: Nobody
  Requestors: pa...@tlinx.org
  Status: open
 Ticket URL: https://rt.cpan.org/Ticket/Display.html?id=92402 




-Original Message- 
From: Linda A Walsh via RT

 Do you want to install Inline::C? [y] y
 (/home/perl/perl-5.16.3/bin/perl Makefile.PL exited with 9)

 Very frustrating -- I tried to type 'y', bt it was ignored, as STDIN seems
 to be taken over by CPAN.

Yes, I would find that very annoying.
I don't use any of the CPAN family of modules very much - I avoid them
unless there's a very long dependency chain.
Consequently, I don't know much about the options they provide, or about the
details of the way in which they're supposed to work.

Did David's reply help ?

The only thing I can think of adding to what David provided is that, if
you're happy to accept the default, then setting the PERL_MM_USE_DEFAULT
environment variable to 1 should enable that. (The default will be 'y' if a
compiler is found, and 'n' if a compiler is not found.)

Cheers,
Rob