summaryrefslogtreecommitdiff
path: root/ipsec
diff options
context:
space:
mode:
authorTimothy Redaelli <tredaelli@redhat.com>2018-11-10 16:29:07 +0100
committerBen Pfaff <blp@ovn.org>2018-11-10 08:15:28 -0800
commitd5cc46e3d185dcd32e2ef099b2ce38e1a7f95eee (patch)
tree081f600cdb397cba96c04558cefd2f5b39946c53 /ipsec
parent3d9ebcb153d446026139d17cf7d997199fc3b498 (diff)
downloadopenvswitch-d5cc46e3d185dcd32e2ef099b2ce38e1a7f95eee.tar.gz
ipsec: Use @PYTHON@ directly instead of "/usr/bin/env python"
Using "/usr/bin/env" is against Fedora Packaging Guidelines [1]. Moreover, in this specific case, it also prevent "make rpm-fedora" to successfully complete on "Fedora Rawhide" since "#!/usr/bin/env python" must not be used anymore [2]. [1] https://fedoraproject.org/wiki/Packaging:Guidelines#Shebang_lines [2] https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error CC: Qiuyu Xiao <qiuyu.xiao.qyx@gmail.com> Fixes: 22c5eafb6efa ("ipsec: reintroduce IPsec support for tunneling") Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ipsec')
-rw-r--r--ipsec/automake.mk6
-rwxr-xr-xipsec/ovs-monitor-ipsec.in (renamed from ipsec/ovs-monitor-ipsec)2
2 files changed, 4 insertions, 4 deletions
diff --git a/ipsec/automake.mk b/ipsec/automake.mk
index 1e530cb42..66515e8f8 100644
--- a/ipsec/automake.mk
+++ b/ipsec/automake.mk
@@ -5,6 +5,6 @@
# notice and this notice are preserved. This file is offered as-is,
# without warranty of any kind.
-EXTRA_DIST += \
- ipsec/ovs-monitor-ipsec
-FLAKE8_PYFILES += ipsec/ovs-monitor-ipsec
+bin_SCRIPTS += ipsec/ovs-monitor-ipsec
+EXTRA_DIST += ipsec/ovs-monitor-ipsec.in
+FLAKE8_PYFILES += ipsec/ovs-monitor-ipsec.in
diff --git a/ipsec/ovs-monitor-ipsec b/ipsec/ovs-monitor-ipsec.in
index c93081d32..4710be039 100755
--- a/ipsec/ovs-monitor-ipsec
+++ b/ipsec/ovs-monitor-ipsec.in
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#! @PYTHON@
# Copyright (c) 2017 Nicira, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");