Skip Menu |

This queue is for tickets about the MPEG-MP3Play CPAN distribution.

Report information
The Basics
Id: 34532
Status: open
Priority: 0/
Queue: MPEG-MP3Play

People
Owner: Nobody in particular
Requestors: imacat [...] mail.imacat.idv.tw
Cc:
AdminCc:

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

Attachments


Subject: Use prompt() in Makefile.PL to Allow Automated Tests
Dear Jörn Reder, Hi. This is imacat from Taiwan. I'm currently helping to run smoke tests for CPAN modules. I found that the Makefile.PL of MPEG-MP3Play-0.15 goes into infinite loop if nothing is read from keyboard. I would suggest that you use prompt() instead of directly obtain input from the STDIN, as suggested in the ExtUtils::MakeMaker document, so that the it won't go into infinite loop. <<ExtUtils::MakeMaker>> Other Handy Functions http://search.cpan.org/perldoc?ExtUtils::MakeMaker#Other_Handy_Functions Also, I would suggest you to exit() with 0 from the Makefile.PL if Xaudio SDK fails, as suggested by this article: <<Notes For CPAN Authors> "How can I stop getting FAIL reports for missing libraries or other non-Perl dependencies?" http://cpantest.grango.org/wiki/CPANAuthorNotes I made a simple patch to MPEG-MP3Play-0.15, in the hope that it helps. Please tell me if you have any question, or if I could be of any help. Thank you.
Subject: MPEG-MP3Play-0.15-prompt.diff
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 diff -u -r MPEG-MP3Play-0.15.orig/Makefile.PL MPEG-MP3Play-0.15/Makefile.PL - --- MPEG-MP3Play-0.15.orig/Makefile.PL 2001-01-06 06:05:31.000000000 +0800 +++ MPEG-MP3Play-0.15/Makefile.PL 2008-03-30 01:02:36.000000000 +0800 @@ -94,12 +94,10 @@ $sdk_dir = $SDK_DIR; do { - - print "Xaudio SDK directory [$sdk_dir] : "; - - my $input; - - chomp ($input = <STDIN>); + my $input = prompt("Xaudio SDK directory [$sdk_dir] :"); $sdk_dir = $input if $input; - - $sdk_dir =~ s!/$!!; $ok = -d "$sdk_dir/include" and -d "$sdk_dir/lib"; + exit 0 if !$input && !$ok; print "\nHmm, the directory must contain include and lib subdirectories.\n". "Try again or press Ctrl+C to abort.\n\n" if not $ok; -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkfudrgACgkQi9gubzC5S1xeyACfZqmQIunFwOL7s2fXjYmm7a+l l6cAoK3wp+sZjxdp2ZELIzJcfosfFmGu =uiMt -----END PGP SIGNATURE-----
Subject: Re: [rt.cpan.org #34532] Use prompt() in Makefile.PL to Allow Automated Tests
Date: Sun, 30 Mar 2008 12:32:23 +0200
To: bug-MPEG-MP3Play [...] rt.cpan.org
From: Jörn Reder <joern [...] zyn.de>
"Yi Ma Mao via RT" wrote: Show quoted text
> I made a simple patch to MPEG-MP3Play-0.15, in the hope that it > helps. Please tell me if you have any question, or if I could be of any > help. Thank you.
Thanks. I applied the patch and make the other changes you suggested and uploaded the new version to CPAN. Regards, Jörn -- $a=$a[8][67][9][0][42][214][82][78][0][50][69][68][69][82][0][73][78][0] [65][0][20][16][0][68][73][77][69][78][83][73][79][78][65][76][0][65][82 ][82][65][89]=sub{sub _($){print$_[@z]}($z,$i)=@_;(++$i)while!$z->[$i];$ s+=$i;_ chr($i+32);$s!=2292&&&$a($z->[$i],$c>>$e)};&$a(\@a,$d<<$f);_"\n"
Download (untitled)
application/pgp-signature 189b

Message body not shown because it is not plain text.