# New Ticket Created by [EMAIL PROTECTED]
# Please include the string: [perl #52894]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=52894 >
config/auto/perldoc.pm uses a hardcoded, local path for a temp file to
output perldoc -d to write to. perldoc also seems to use suid. So, if that
file or the local fs is not writeable, the test fails even if perldoc is
available. By changing the path to use "/tmp", at least, the test will
succeed. On *nix. Hmm .... Okay, I guess I need to find the OS agnostic
version of this.
Failure:
Testing
snprintf......................................................done.
Determining whether perldoc is
installed................................no.
Determining whether python is installed.........................yes,
2.5.1.
Determining whether GNU m4 is
installed................................yes.
Determining whether (exuberant) ctags is
installed.....................yes.
Determining Parrot's
revision.......................................r26971.
Determining whether ICU is
installed....................................no.
Generating C
headers..................................................done.
Generating core pmc
list..............................................done.
Generating
runtime/parrot/include.....................................done.
Configuring
languages.................................................done.
Generating makefiles and other build files...
No Perldoc, not generating a docs makefile.
.........................done.
Moving platform files into
place......................................done.
Recording configuration data for later
retrieval......................done.
Okay, we're done!
Succeeding:
Testing
snprintf......................................................done.
Determining whether perldoc is
installed...............................yes.
Determining whether python is installed.........................yes,
2.5.1.
Determining whether GNU m4 is
installed................................yes.
Determining whether (exuberant) ctags is
installed.....................yes.
Determining Parrot's
revision.......................................r26971.
Determining whether ICU is
installed....................................no.
Generating C
headers..................................................done.
Generating core pmc
list..............................................done.
Generating
runtime/parrot/include.....................................done.
Configuring
languages.................................................done.
Generating makefiles and other build
files............................done.
Moving platform files into
place......................................done.
Recording configuration data for later
retrieval......................done.
Okay, we're done!
Index: config/auto/perldoc.pm
===================================================================
--- config/auto/perldoc.pm (revision 26971)
+++ config/auto/perldoc.pm (working copy)
@@ -37,7 +37,7 @@
my ( $self, $conf ) = @_;
my $cmd = $conf->data->get_p5('scriptdirexp') . q{/perldoc};
- my $tmpfile = q{c99da7c4.tmp};
+ my $tmpfile = q{/tmp/c99da7c4.tmp};
my $content = capture_output("$cmd -ud $tmpfile perldoc") || undef;
return 1 unless defined( $self->_initial_content_check($conf,
$content) );
-------------------
Andy Bach
Systems Mangler
Internet: [EMAIL PROTECTED]
Voice: (608) 261-5738 Fax: 264-5932
"When angry, count to four; when very angry, swear."
Mark Twain