Subject: Re: bug#78509: Coreutils' mv and cp 9.5 do not work properly on old PPC Mac OS X 10.4.11, Tiger

From: Pádraig Brady <[email-masked]>
Date: Wed, 21 May 2025 21:46:37 +0100

On 21/05/2025 20:13, Peter Dyballa via GNU coreutils Bug Reports wrote:
> 
>> Am 20.Mai.2025 um 19:10 schrieb Paul Eggert <[email-masked]>:
>>
>> First, please build and run coreutils 9.7
> 
> The tests stop in
> 
> 	PASS: tests/cp/dir-vs-file.sh
> 	PASS: tests/cp/existing-perm-dir.sh
> 
> at
> 
> 	+ mkfifo_or_skip_ fifo
> 	+ test 1 = 1
> 	+ mkfifo fifo
> 	+ touch fifo-copy
> 	+ chgrp 502 fifo
> 	+ chgrp 262 fifo-copy
> 	+ chmod g+r fifo-copy
> 	+ cp -p --copy-contents fifo fifo-copy
> 	+ pid=10841
> 	cp: cannot stat 'fifo-copy/fifo': Not a directory
> 
> After waiting 40 min I had, at around 19:00 h:
> 
>    -rw-r--r--   1 macports admin  6677 21. Mai 18:25 existing-perm-race.log
>    -rw-r--r--   1 macports admin  6194 21. Mai 18:25 existing-perm-dir.log
>    -rw-r--r--   1 macports admin    82 21. Mai 18:25 existing-perm-dir.trs
> 
> Then, two hours ago, I killed 'make check'…

I've not looked at the main issue at hand,
but the tests shouldn't hang. We already protect some
fifo interactions with `timeout 60`, so I've pushed this change
to avoid such hangs similarly in future:
https://git.sv.gnu.org/cgit/coreutils.git/commit/?id=dc4e6b670

cheers,
Padraig