[yocto] [meta-security][master][warrior][PATCH 2/3] python-scapy: solved the conflict with python3-scapy

Zang Ruochen zangrc.fnst at cn.fujitsu.com
Mon Jun 10 00:24:23 PDT 2019


-Rename the following file to resolve the conflict with python3-scapy:
	Rename /usr/bin/UTscapy to /usr/bin/UTscapy2
	Rename /usr/bin/scapy to /usr/bin/scapy2

Signed-off-by: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
---
 recipes-security/scapy/python-scapy_2.4.2.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/recipes-security/scapy/python-scapy_2.4.2.bb b/recipes-security/scapy/python-scapy_2.4.2.bb
index 98db1fd..982620e 100644
--- a/recipes-security/scapy/python-scapy_2.4.2.bb
+++ b/recipes-security/scapy/python-scapy_2.4.2.bb
@@ -4,3 +4,8 @@ require python-scapy.inc
 SRC_URI += "file://run-ptest"
 
 RDEPENDS_${PN} += "${PYTHON_PN}-subprocess"
+
+do_install_append() {
+        mv ${D}${bindir}/scapy ${D}${bindir}/scapy2
+        mv ${D}${bindir}/UTscapy ${D}${bindir}/UTscapy2
+}
-- 
2.20.1





More information about the yocto mailing list