[MacPorts] #71473: p5.34-pdf-builder @3.26.0 cannot be tested with Perl 5.34 on PPC Mac OS X 10.4.11, Tiger, because File::Temp in Perl's core fails to create directory
MacPorts
noreply at macports.org
Mon Dec 9 10:59:46 UTC 2024
#71473: p5.34-pdf-builder @3.26.0 cannot be tested with Perl 5.34 on PPC Mac OS X
10.4.11, Tiger, because File::Temp in Perl's core fails to create directory
-------------------------------------------+-----------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords: tiger ppc
Port: p5-pdf-builder, p5-file-temp |
-------------------------------------------+-----------------------
Comment (by ballapete):
PDF::Builder has 44 tests, only one of them is the repeatedly failig
t/tiff.t. How can I code in MacPorts testing only this one? Start would
be, starting with how Perl starts its tests:
{{{
test.run yes
test.env-append PERL_DL_NONLAZY=1
test.cmd ${prefix}/bin/perl${perl5.major}
test.target t/tiff.t
test.args "-MExtUtils::Command::MM" "-MTest::Harness" "-e"
"undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')"
}}}
which leads to problems in two ways: target and args change positions, and
none of the double quotes is saved. So Perl does not understand ("-e" =
execute what follows) that it first should undef and then dress in what's
provided in sub-directories blib/lib and blib/arch – possibly the single
quotes mean something to Perl…
The positions can be corrected by making the target its args and the args
making the target. Some double quotes can safely be deleted, but how can I
make the instructions for Perl be preserved as one?
They can be separated via:
{{{
test.run yes
test.env-append PERL_DL_NONLAZY=1
test.cmd ${prefix}/bin/perl${perl5.major}
-MExtUtils::Command::MM -MTest::Harness -e
test.target "undef *Test::Harness::Switches; test_harness(0,
blib/lib, blib/arch)"
test.args t/tiff.t
}}}
but are not accepted:
{{{
DEBUG: Environment:
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/rsync.macports.org_macports_release_tarballs_ports_perl_p5
-pdf-builder/p5.34-pdf-builder/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
DEVELOPER_DIR='/Library/Developer/CommandLineTools'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='14.0'
PERL_DL_NONLAZY='1'
SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk'
SOURCE_DATE_EPOCH='1733741724'
Executing: cd
"/opt/local/var/macports/build/rsync.macports.org_macports_release_tarballs_ports_perl_p5
-pdf-builder/p5.34-pdf-builder/work/PDF-Builder-3.026" &&
/opt/local/bin/perl5.34 -MExtUtils::Command::MM -MTest::Harness -e undef
*Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')
t/tiff.t
DEBUG: system: cd
"/opt/local/var/macports/build/rsync.macports.org_macports_release_tarballs_ports_perl_p5
-pdf-builder/p5.34-pdf-builder/work/PDF-Builder-3.026" &&
/opt/local/bin/perl5.34 -MExtUtils::Command::MM -MTest::Harness -e undef
*Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')
t/tiff.t
sh: -c: line 0: syntax error near unexpected token `0,'
sh: -c: line 0: ` cd
"/opt/local/var/macports/build/rsync.macports.org_macports_release_tarballs_ports_perl_p5
-pdf-builder/p5.34-pdf-builder/work/PDF-Builder-3.026" &&
/opt/local/bin/perl5.34 -MExtUtils::Command::MM -MTest::Harness -e undef
*Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')
t/tiff.t '
Command failed: cd
"/opt/local/var/macports/build/rsync.macports.org_macports_release_tarballs_ports_perl_p5
-pdf-builder/p5.34-pdf-builder/work/PDF-Builder-3.026" &&
/opt/local/bin/perl5.34 -MExtUtils::Command::MM -MTest::Harness -e undef
*Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')
t/tiff.t
Exit code: 2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/71473#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list