[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 11:20:31 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):
File::Temp and File:Spec actually work as expected. With an extended
version of the wrapper shell script `convert`
{{{
1 #!/bin/bash -x
2 # Time-stamp: <2024-12-07 18:44:02 pete>
3 #
4 # @(#) convert: Substitute for ImageMagick's convert
5 # Records convert's arguments in a file
6 # Because of problems with PDF-Builder's t/tiff.t
7 #
8 #if [ ! -e /tmp/ ]; then
9 # mkdir /tmp
10 #fi
11 Speicher=/tmp/Convert-Argumente
12 Datum="$(date "+%F %T")"
13 Trenner1="———————————"
14 Trenner2="==========="
15 #
16 printf "%25s – %2d args: %s\n" "$Datum" $# "$*" >> $Speicher
17 pstree -w -p $$ >> $Speicher
18 #
19 if [ $# -gt 1 ]; then
20 TempDir="$(echo "$@" | sed -e 's|^.* /|/|' -e 's|/[^/]*$||')"
21 Elter="$(dirname $TempDir)"
22 printf "%s\nThe parent directory .tmp %s has:\n"
$Trenner1 $Elter >> $Speicher
23 gls -Altr --time-style=full-iso $Elter >> $Speicher
24 printf "%s\nIts temporary sub-directory %s has *before*:\n"
$Trenner1 $TempDir >> $Speicher
25 gls -Altr --time-style=full-iso $TempDir >> $Speicher
26 fi
27 #
28 /opt/local/bin/convert.orig "$@"
29 #
30 if [ $# -gt 1 ]; then
31 printf "%s\nIts temporary sub-directory %s has *after*:\n"
$Trenner1 $TempDir >> $Speicher
32 gls -Altr --time-style=full-iso $TempDir >> $Speicher
33 printf "%s\n\n" $Trenner2 >> $Speicher
34 fi
}}}
it could be shown that a temporary sub-directory in ${workpath}/.tmp *is*
created on `PPC Tiger`. And that `convert.orig` fails to create a test
TIFF file therein, see attached file.
It also fails to run that convert test command manually from root's
account: `su macports -c convert.orig …`, with or without a shell after
`-c` or with or without the complete path name of convert.orig.
Interestingly Tiger is the only system that allows pstree to work and
"spy" after root's processes…
--
Ticket URL: <https://trac.macports.org/ticket/71473#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list