aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/tests/rangecoder.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2025-01-24 23:32:52 +0200
committerMartin Storsjö <martin@martin.st>2025-01-28 19:55:45 +0200
commit3cd4e8470a1ef82223d124523f8219691dfefb60 (patch)
treecd6288dd9acc632fe5250ac701a9138f50260749 /libavcodec/tests/rangecoder.c
parent85a327d9d06a26c7743f4b14902b848dab42c44f (diff)
downloadffmpeg-3cd4e8470a1ef82223d124523f8219691dfefb60.tar.gz
configure: Improve the check for the rsync --contimeout option
Traditionally, macOS has shipped an old version of rsync that lacked support for this option, hence this check (added in a8b3f0c5cf548f654e30c981988bb71981a3f8d3). However, in macOS 15.x, Apple have switched to providing rsync as a different tool, openrsync. The version of openrsync in at least macOS 15.2 does include "[--contimeout]" (note the lack of "=" after the option), in the output of "rsync --help", but when used, the tool errors out with "rsync: --contimeout=60: unknown option". So apparently the tool erroenously lists the option as supported, while it really isn't. The original rsync tool (with a new enough version) prints "--contimeout=SECONDS" in the output of "rsync --help". It is unclear which version of openrsync Apple are shipping; the latest upstream openrsync from OpenBSD does support the option and includes "[--contimeout=seconds]" in the output of "--help", and older versions don't seem to include the option as listed at all. Therefore, check for "--conntimeout=" with the "=", this should properly detect both new enough rsync and openrsync. This fixes running "fate-rsync" on macOS 15.x. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/tests/rangecoder.c')
0 files changed, 0 insertions, 0 deletions