From 8cf040ac76ce3a1b4f96035a1d6355bb2f5b25c6 Mon Sep 17 00:00:00 2001 From: Changqing Li Date: Tue, 11 May 2021 16:18:14 +0800 Subject: nmap: change shebang to python3 upstream nmap is python2 compatiable now, but this recipe supports python3. Signed-off-by: Changqing Li Signed-off-by: Khem Raj --- meta-oe/recipes-security/nmap/nmap_7.80.bb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'meta-oe/recipes-security') diff --git a/meta-oe/recipes-security/nmap/nmap_7.80.bb b/meta-oe/recipes-security/nmap/nmap_7.80.bb index c76d2324e7..17bc40911d 100644 --- a/meta-oe/recipes-security/nmap/nmap_7.80.bb +++ b/meta-oe/recipes-security/nmap/nmap_7.80.bb @@ -50,9 +50,11 @@ do_configure() { } do_install_append() { - if [ -f "${D}${bindir}/ndiff" ]; then - sed -i 's@^#!.*$@#!/usr/bin/env python3@g' ${D}${bindir}/ndiff - fi + for f in ndiff uninstall_ndiff; do + if [ -f ${D}${bindir}/$f ]; then + sed -i 's@^#!.*$@#!/usr/bin/env python3@g' ${D}${bindir}/$f + fi + done } FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat" -- cgit 1.2.3-korg