* [FFmpeg-devel] [PATCH] configure: Improve the check for the rsync --contimeout option
@ 2025-01-24 21:40 Martin Storsjö
2025-01-25 9:47 ` Vittorio Giovara
2025-01-28 16:01 ` epirat07
0 siblings, 2 replies; 4+ messages in thread
From: Martin Storsjö @ 2025-01-24 21:40 UTC (permalink / raw)
To: ffmpeg-devel
Traditionally, macOS has shipped an old version of rsync that lacked
support for this version, hence this check (added in
a8b3f0c5cf548f654e30c981988bb71981a3f8d3).
However, in macOS 15.x, they 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 prints "--contimeout=SECONDS" in the output
of "rsync --help".
It is unclear which version of openrsync this is; 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.
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index 3a1e72e1c6..06f641ead0 100755
--- a/configure
+++ b/configure
@@ -7209,7 +7209,7 @@ enabled makeinfo \
disabled makeinfo_html && texi2html --help 2> /dev/null | grep -q 'init-file' && enable texi2html || disable texi2html
perl -v > /dev/null 2>&1 && enable perl || disable perl
pod2man --help > /dev/null 2>&1 && enable pod2man || disable pod2man
-rsync --help 2> /dev/null | grep -q 'contimeout' && enable rsync_contimeout || disable rsync_contimeout
+rsync --help 2> /dev/null | grep -q 'contimeout=' && enable rsync_contimeout || disable rsync_contimeout
xmllint --version > /dev/null 2>&1 && enable xmllint || disable xmllint
check_headers linux/fb.h
--
2.39.5 (Apple Git-154)
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [FFmpeg-devel] [PATCH] configure: Improve the check for the rsync --contimeout option
2025-01-24 21:40 [FFmpeg-devel] [PATCH] configure: Improve the check for the rsync --contimeout option Martin Storsjö
@ 2025-01-25 9:47 ` Vittorio Giovara
2025-01-28 16:01 ` epirat07
1 sibling, 0 replies; 4+ messages in thread
From: Vittorio Giovara @ 2025-01-25 9:47 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: ffmpeg-devel
> On Jan 24, 2025, at 10:40 PM, Martin Storsjö <martin@martin.st> wrote:
>
> Traditionally, macOS has shipped an old version of rsync that lacked
> support for this version, hence this check (added in
> a8b3f0c5cf548f654e30c981988bb71981a3f8d3).
>
> However, in macOS 15.x, they 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 prints "--contimeout=SECONDS" in the output
> of "rsync --help".
>
> It is unclear which version of openrsync this is; 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.
> ---
> configure | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure b/configure
> index 3a1e72e1c6..06f641ead0 100755
> --- a/configure
> +++ b/configure
> @@ -7209,7 +7209,7 @@ enabled makeinfo \
> disabled makeinfo_html && texi2html --help 2> /dev/null | grep -q 'init-file' && enable texi2html || disable texi2html
> perl -v > /dev/null 2>&1 && enable perl || disable perl
> pod2man --help > /dev/null 2>&1 && enable pod2man || disable pod2man
> -rsync --help 2> /dev/null | grep -q 'contimeout' && enable rsync_contimeout || disable rsync_contimeout
> +rsync --help 2> /dev/null | grep -q 'contimeout=' && enable rsync_contimeout || disable rsync_contimeout
> xmllint --version > /dev/null 2>&1 && enable xmllint || disable xmllint
>
> check_headers linux/fb.h
> --
Lgtm, thanks for the detailed explanation
Vittorio
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [FFmpeg-devel] [PATCH] configure: Improve the check for the rsync --contimeout option
2025-01-24 21:40 [FFmpeg-devel] [PATCH] configure: Improve the check for the rsync --contimeout option Martin Storsjö
2025-01-25 9:47 ` Vittorio Giovara
@ 2025-01-28 16:01 ` epirat07
2025-01-28 17:56 ` Martin Storsjö
1 sibling, 1 reply; 4+ messages in thread
From: epirat07 @ 2025-01-28 16:01 UTC (permalink / raw)
To: FFmpeg development discussions and patches
On 24 Jan 2025, at 22:40, Martin Storsjö wrote:
> Traditionally, macOS has shipped an old version of rsync that lacked
> support for this version, hence this check (added in
> a8b3f0c5cf548f654e30c981988bb71981a3f8d3).
>
> However, in macOS 15.x, they 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 prints "--contimeout=SECONDS" in the output
> of "rsync --help".
>
> It is unclear which version of openrsync this is; 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.
Thanks, tested and can confirm that it fixes the rsync failure on macOS 15.x
while not breaking macOS 14.x.
LGTM
> ---
> configure | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure b/configure
> index 3a1e72e1c6..06f641ead0 100755
> --- a/configure
> +++ b/configure
> @@ -7209,7 +7209,7 @@ enabled makeinfo \
> disabled makeinfo_html && texi2html --help 2> /dev/null | grep -q 'init-file' && enable texi2html || disable texi2html
> perl -v > /dev/null 2>&1 && enable perl || disable perl
> pod2man --help > /dev/null 2>&1 && enable pod2man || disable pod2man
> -rsync --help 2> /dev/null | grep -q 'contimeout' && enable rsync_contimeout || disable rsync_contimeout
> +rsync --help 2> /dev/null | grep -q 'contimeout=' && enable rsync_contimeout || disable rsync_contimeout
> xmllint --version > /dev/null 2>&1 && enable xmllint || disable xmllint
>
> check_headers linux/fb.h
> --
> 2.39.5 (Apple Git-154)
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [FFmpeg-devel] [PATCH] configure: Improve the check for the rsync --contimeout option
2025-01-28 16:01 ` epirat07
@ 2025-01-28 17:56 ` Martin Storsjö
0 siblings, 0 replies; 4+ messages in thread
From: Martin Storsjö @ 2025-01-28 17:56 UTC (permalink / raw)
To: FFmpeg development discussions and patches
On Tue, 28 Jan 2025, epirat07@gmail.com wrote:
> On 24 Jan 2025, at 22:40, Martin Storsjö wrote:
>
>> Traditionally, macOS has shipped an old version of rsync that lacked
>> support for this version, hence this check (added in
>> a8b3f0c5cf548f654e30c981988bb71981a3f8d3).
>>
>> However, in macOS 15.x, they 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 prints "--contimeout=SECONDS" in the output
>> of "rsync --help".
>>
>> It is unclear which version of openrsync this is; 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.
>
> Thanks, tested and can confirm that it fixes the rsync failure on macOS 15.x
> while not breaking macOS 14.x.
>
> LGTM
Thanks, pushed!
// Martin
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-01-28 17:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-24 21:40 [FFmpeg-devel] [PATCH] configure: Improve the check for the rsync --contimeout option Martin Storsjö
2025-01-25 9:47 ` Vittorio Giovara
2025-01-28 16:01 ` epirat07
2025-01-28 17:56 ` Martin Storsjö
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git