From 37c88445e30d52c965bcb19b19fa710c3eb4fad9 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 31 Mar 2020 07:57:53 +1100 Subject: [PATCH] mtr: use env for perl On FreeBSD, perl isn't in /usr/bin, its in /usr/local/bin or elsewhere in the path. Like storage/{maria/unittest/,}ma_test_* , we use /usr/bin/env to find perl and run it. --- cmake/configure.pl | 2 +- dbug/dbug_add_tags.pl | 2 +- dbug/remove_function_from_trace.pl | 2 +- debian/additions/mysqlreport | 2 +- extra/yassl/include/openssl/generate_prefix_files.pl | 2 +- mysql-test/lib/process-purecov-annotations.pl | 2 +- mysql-test/lib/t/SafeProcessStress.pl | 2 +- mysql-test/lib/t/copytree.t | 2 +- mysql-test/lib/t/dummyd.pl | 2 +- mysql-test/lib/t/rmtree.t | 2 +- mysql-test/lib/t/testMyConfig.t | 2 +- mysql-test/lib/t/testMyConfigFactory.t | 2 +- mysql-test/lib/t/test_child.pl | 2 +- mysql-test/lib/v1/mysql-test-run.pl | 2 +- mysql-test/mtr.out-of-source | 2 +- mysql-test/mysql-stress-test.pl | 2 +- mysql-test/mysql-test-run.pl | 2 +- mysql-test/std_data/checkDBI_DBD-mysql.pl | 2 +- mysql-test/suite/engines/rr_trx/run_stress_tx_rr.pl | 2 +- mysql-test/suite/funcs_1/lib/DataGen_local.pl | 2 +- mysql-test/suite/funcs_1/lib/DataGen_modify.pl | 2 +- mysql-test/suite/funcs_2/lib/gen_charset_utf8.pl | 2 +- mysql-test/suite/rpl/extension/checksum.pl | 2 +- plugin/handler_socket/client/hspool_test.pl | 2 +- plugin/handler_socket/client/hstest.pl | 2 +- .../perl-Net-HandlerSocket/lib/Net/HandlerSocket/Pool.pm | 2 +- plugin/handler_socket/regtest/test_01_lib/test01.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test02.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test03.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test04.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test05.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test06.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test07.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test08.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test09.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test10.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test11.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test12.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test13.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test14.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test15.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test16.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test17.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test18.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test19.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test20.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test21.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test22.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test23.pl | 2 +- plugin/handler_socket/regtest/test_01_lib/test24.pl | 2 +- scripts/convert-debug-for-diff.sh | 2 +- scripts/mytop.sh | 2 +- sql-bench/as3ap.sh | 2 +- sql-bench/bench-count-distinct.sh | 2 +- sql-bench/bench-init.pl.sh | 2 +- sql-bench/compare-results.sh | 2 +- sql-bench/copy-db.sh | 2 +- sql-bench/crash-me.sh | 2 +- sql-bench/graph-compare-results.sh | 2 +- sql-bench/innotest1.sh | 2 +- sql-bench/innotest1a.sh | 2 +- sql-bench/innotest1b.sh | 2 +- sql-bench/innotest2.sh | 2 +- sql-bench/innotest2a.sh | 2 +- sql-bench/innotest2b.sh | 2 +- sql-bench/run-all-tests.sh | 2 +- sql-bench/server-cfg.sh | 2 +- sql-bench/test-ATIS.sh | 2 +- sql-bench/test-alter-table.sh | 2 +- sql-bench/test-big-tables.sh | 2 +- sql-bench/test-connect.sh | 2 +- sql-bench/test-create.sh | 2 +- sql-bench/test-insert.sh | 2 +- sql-bench/test-select.sh | 2 +- sql-bench/test-table-elimination.sh | 2 +- sql-bench/test-transactions.sh | 2 +- sql-bench/test-wisconsin.sh | 2 +- storage/myisam/ftbench/Ecompare.pl | 2 +- storage/myisam/ftbench/Ecreate.pl | 2 +- storage/myisam/ftbench/Ereport.pl | 2 +- tests/big_record.pl | 2 +- tests/drop_test.pl | 2 +- tests/export.pl | 2 +- tests/fork2_test.pl | 2 +- tests/fork_big.pl | 2 +- tests/fork_big2.pl | 2 +- tests/grant.pl | 2 +- tests/index_corrupt.pl | 2 +- tests/insert_and_repair.pl | 2 +- tests/lock_test.pl | 2 +- tests/mail_to_db.pl | 2 +- tests/pmail.pl | 2 +- tests/rename_test.pl | 2 +- tests/table_types.pl | 2 +- tests/test_delayed_insert.pl | 2 +- tests/truncate.pl | 2 +- unittest/unit.pl | 2 +- 97 files changed, 97 insertions(+), 97 deletions(-) diff --git a/cmake/configure.pl b/cmake/configure.pl index 70122664ad4..45847aa576f 100644 --- a/cmake/configure.pl +++ b/cmake/configure.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved. # diff --git a/dbug/dbug_add_tags.pl b/dbug/dbug_add_tags.pl index 7be8fb9b18d..f117bdcd65b 100755 --- a/dbug/dbug_add_tags.pl +++ b/dbug/dbug_add_tags.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Copyright (c) 2002 MySQL AB, 2009 Sun Microsystems, Inc. # Use is subject to license terms. diff --git a/dbug/remove_function_from_trace.pl b/dbug/remove_function_from_trace.pl index 380df168caf..67d7fa54b6a 100755 --- a/dbug/remove_function_from_trace.pl +++ b/dbug/remove_function_from_trace.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl die <