patch for suricata, wrong shebang in python/
diff mbox series

Message ID CAJPHfYNQFLkgCJ2dmwt87r2ByF=3HH_P+4bxU8FSPb_iP5TfzA@mail.gmail.com
State New
Headers show
Series
  • patch for suricata, wrong shebang in python/
Related show

Commit Message

Yi Zheng June 8, 2019, 3:24 a.m. UTC
Hi,
  I found that  /usr/bin/suricatactl and /usr/bin/suricatasc  has wrong
shebang, which using the path of python in the HOST machine.

The patch is attached.

Could you please have a look?

Patch
diff mbox series

From 2b20c3490cdc8f3ddd8adc0ca4db984768ae4418 Mon Sep 17 00:00:00 2001
From: Brock Zheng Techyauld Ltd <yzheng@techyauld.com>
Date: Sat, 8 Jun 2019 11:16:37 +0800
Subject: [PATCH 15/15] suricata: fixup wrong shebang

---
 .../0002-fixup-shebang-on-python-script.patch    | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 package/suricata/0002-fixup-shebang-on-python-script.patch

diff --git a/package/suricata/0002-fixup-shebang-on-python-script.patch b/package/suricata/0002-fixup-shebang-on-python-script.patch
new file mode 100644
index 0000000000..7587fd7c24
--- /dev/null
+++ b/package/suricata/0002-fixup-shebang-on-python-script.patch
@@ -0,0 +1,16 @@ 
+--- suricata-4.1.3.orig/python/Makefile.am	2019-06-08 11:01:36.008059323 +0800
++++ suricata-4.1.3/python/Makefile.am	2019-06-08 11:05:58.498057935 +0800
+@@ -6,11 +6,11 @@ EXTRA_DIST =	setup.py \
+ if HAVE_PYTHON
+ all-local:
+ 	cd $(srcdir) && \
+-		$(HAVE_PYTHON) setup.py build --build-base $(abs_builddir)
++		$(HAVE_PYTHON) setup.py build -e "/usr/bin/env python" --build-base $(abs_builddir)
+ 
+ install-exec-local:
+ 	cd $(srcdir) && \
+-		$(HAVE_PYTHON) setup.py build --build-base $(abs_builddir) \
++		$(HAVE_PYTHON) setup.py build -e "/usr/bin/env python" --build-base $(abs_builddir) \
+ 		install --prefix $(DESTDIR)$(prefix)
+ 
+ uninstall-local:
-- 
2.21.0