|
sed -i 's|^"\$@|/usr/bin/timeout 600 "\$@|' build-aux/test-driver |
On MacOS Ventura (Version 13.5 (22G74), Apple Silicon) the timeout utility does not exist in /usr/bin and it is not possible to add it there (either by symlink or copy binary) without disabling system protection. This would probably be the case for most MacOS variants.
It is possible to add it to /usr/local/bin, but since build-gnu.sh hardcodes it to /usr/bin/timeout - that would not help.
Would it be better to either let shell to find timeout via PATH or check a couple system locations first and pick one that exists (i.e. check /usr/bin , /usr/local/bin ) ?
Workaround for now is to just edit build-aux/test-driver after it was generated or modify build-gnu.sh in local before running
coreutils/util/build-gnu.sh
Line 85 in f1ec8e6
On MacOS Ventura (Version 13.5 (22G74), Apple Silicon) the timeout utility does not exist in /usr/bin and it is not possible to add it there (either by symlink or copy binary) without disabling system protection. This would probably be the case for most MacOS variants.
It is possible to add it to /usr/local/bin, but since
build-gnu.shhardcodes it to/usr/bin/timeout- that would not help.Would it be better to either let shell to find
timeoutviaPATHor check a couple system locations first and pick one that exists (i.e. check /usr/bin , /usr/local/bin ) ?Workaround for now is to just edit
build-aux/test-driverafter it was generated or modifybuild-gnu.shin local before running