From: YAMAMOTO Takashi Date: Fri, 13 May 2016 14:36:15 +0000 (+0000) Subject: utilities: Tweak python shebangs to use env X-Git-Url: http://git.cascardo.info/?a=commitdiff_plain;h=af51e6f0156eb82e2e2a7f0ba369c0e4cbfb6853;p=cascardo%2Fovs.git utilities: Tweak python shebangs to use env "python" command provided by pkg_alternatives is a shell script. At least on NetBSD-7, execve can't execute scripts whose interpreter is another shell script. (While some "rich" shells like zsh seem to have handle the case by itself, NetBSD's /bin/sh doesn't.) Workaround the issue by using env command for shebangs for these scripts. Noticed with the recent tunnel-push-pop.at tests using ovs-pcap command. Signed-off-by: YAMAMOTO Takashi Acked-by: Ben Pfaff --- diff --git a/utilities/ovs-check-dead-ifs.in b/utilities/ovs-check-dead-ifs.in index ac54f6c9c..127ba38a7 100755 --- a/utilities/ovs-check-dead-ifs.in +++ b/utilities/ovs-check-dead-ifs.in @@ -1,4 +1,4 @@ -#! @PYTHON@ +#! /usr/bin/env @PYTHON@ import os import re diff --git a/utilities/ovs-dpctl-top.in b/utilities/ovs-dpctl-top.in index 7f0f1f8c2..401a80eed 100755 --- a/utilities/ovs-dpctl-top.in +++ b/utilities/ovs-dpctl-top.in @@ -1,4 +1,4 @@ -#! @PYTHON@ +#! /usr/bin/env @PYTHON@ # # Copyright (c) 2013 Nicira, Inc. # diff --git a/utilities/ovs-l3ping.in b/utilities/ovs-l3ping.in index 1b0797295..38ac49157 100644 --- a/utilities/ovs-l3ping.in +++ b/utilities/ovs-l3ping.in @@ -1,4 +1,4 @@ -#! @PYTHON@ +#! /usr/bin/env @PYTHON@ # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/utilities/ovs-parse-backtrace.in b/utilities/ovs-parse-backtrace.in index 350cbd9f8..c8a438557 100755 --- a/utilities/ovs-parse-backtrace.in +++ b/utilities/ovs-parse-backtrace.in @@ -1,4 +1,4 @@ -#! @PYTHON@ +#! /usr/bin/env @PYTHON@ # # Copyright (c) 2012 Nicira, Inc. # diff --git a/utilities/ovs-pcap.in b/utilities/ovs-pcap.in index ae3004755..98b8d53e3 100755 --- a/utilities/ovs-pcap.in +++ b/utilities/ovs-pcap.in @@ -1,4 +1,4 @@ -#! @PYTHON@ +#! /usr/bin/env @PYTHON@ # # Copyright (c) 2010 Nicira, Inc. # diff --git a/utilities/ovs-tcpundump.in b/utilities/ovs-tcpundump.in index 57300cdc1..46e1d7486 100755 --- a/utilities/ovs-tcpundump.in +++ b/utilities/ovs-tcpundump.in @@ -1,4 +1,4 @@ -#! @PYTHON@ +#! /usr/bin/env @PYTHON@ # # Copyright (c) 2010 Nicira, Inc. # diff --git a/utilities/ovs-test.in b/utilities/ovs-test.in index fb1f9ad2a..46ad6fad5 100644 --- a/utilities/ovs-test.in +++ b/utilities/ovs-test.in @@ -1,4 +1,4 @@ -#! @PYTHON@ +#! /usr/bin/env @PYTHON@ # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/utilities/ovs-vlan-test.in b/utilities/ovs-vlan-test.in index e2294989f..7a8993699 100755 --- a/utilities/ovs-vlan-test.in +++ b/utilities/ovs-vlan-test.in @@ -1,4 +1,4 @@ -#! @PYTHON@ +#! /usr/bin/env @PYTHON@ # # Copyright (c) 2010 Nicira, Inc. #