From 985eae8368bd87066982771ed38daece9c7b76c4 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 31 Mar 2020 11:39:36 +1100 Subject: mtr: FreeBSD's patch has no --binary This is true in FreeBSD-12.0 $ patch --version patch 2.0-12u11 FreeBSD $ patch --binary patch: unrecognized option `--binary' PR 1488 --- mysql-test/mysql-test-run.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index fe2aa204b36..20a8044ac74 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -3719,8 +3719,11 @@ sub do_before_run_mysqltest($) # to be able to distinguish them from manually created # version-controlled results, and to ignore them in bzr. my $dest = "$base_file$suites.result~"; - my @cmd = ($exe_patch, qw/--binary -r - -f -s -o/, - $dest, $base_result, $resfile); + my @cmd = ($exe_patch); + if ($^O ne "freebsd") { + push @cmd, '--binary'; + } + push @cmd, (qw/-r - -f -s -o/, $dest, $base_result, $resfile); if (-w $resdir) { # don't rebuild a file if it's up to date unless (-e $dest and -M $dest < -M $resfile -- cgit v1.2.1