Skip to contentSkip to conversation

syslog-ng: change shebang to python3

PATCH New Joe Slater 1 participant 1 message May 1, 2020

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

PATCH 1/1 syslog-ng: change shebang to python3

The file is executable and can be put on a target.

---
 meta-oe/recipes-support/syslog-ng/files/shebang.patch | 18 ++++++++++++++++++
 meta-oe/recipes-support/syslog-ng/syslog-ng_3.24.1.bb |  1 +
 2 files changed, 19 insertions(+)
 create mode 100644 meta-oe/recipes-support/syslog-ng/files/shebang.patch
meta-oe/recipes-support/syslog-ng/files/shebang.patch new file +18 -0
new file mode 100644
index 0000000..35d9677
@@ -0,0 +1,18 @@
+syslog-ng: change shebang to use python3
+
+Correct shebang for python3.  This is far from the only python file with an out of date shebang,
+but it is the only one that winds up on a target.
+
+Upstream-Status: Pending
+
+Signed-off-by: Joe Slater <[email protected]>
+
+
+--- a/lib/merge-grammar.py
++++ b/lib/merge-grammar.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ #############################################################################
+ # Copyright (c) 2010-2017 Balabit
+ #
meta-oe/recipes-support/syslog-ng/syslog-ng_3.24.1.bb +1 -0
index 01ed767..10bf00f 100644
@@ -7,6 +7,7 @@ SRC_URI += " \
            file://fix-invalid-ownership.patch \
            file://syslog-ng.service-the-syslog-ng-service.patch \
            file://0001-syslog-ng-fix-segment-fault-during-service-start.patch \
+           file://shebang.patch \
            file://syslog-ng-tmp.conf \
            "
 
Signature · 1 line
2.7.4