From: Changqing Li <[email protected]>

upstream nmap is python2 compatiable now, but this recipe
support python3.

Signed-off-by: Changqing Li <[email protected]>
---
 meta-oe/recipes-security/nmap/nmap_7.80.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-oe/recipes-security/nmap/nmap_7.80.bb 
b/meta-oe/recipes-security/nmap/nmap_7.80.bb
index c76d2324e..ad5e7248e 100644
--- a/meta-oe/recipes-security/nmap/nmap_7.80.bb
+++ b/meta-oe/recipes-security/nmap/nmap_7.80.bb
@@ -53,6 +53,9 @@ do_install_append() {
     if [ -f "${D}${bindir}/ndiff" ]; then
        sed -i 's@^#!.*$@#!/usr/bin/env python3@g'   ${D}${bindir}/ndiff
     fi
+    if [ -f "${D}${bindir}/uninstall_ndiff" ]; then
+       sed -i 's@^#!.*$@#!/usr/bin/env python3@g'   
${D}${bindir}/uninstall_ndiff
+    fi
 }
 
 FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat"
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#91231): 
https://lists.openembedded.org/g/openembedded-devel/message/91231
Mute This Topic: https://lists.openembedded.org/mt/82741286/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to