nmap: make python3 RDEPENDS conditional on ndiff

When ndiff was disabled by default in 51e070301e ("nmap: disable
ndiff"), the python3 RDEPENDS were left unconditional on the main
package. This causes python3-difflib, python3-asyncio and python3-xml
to be pulled into every image that includes nmap, even though ndiff is
not built and the core nmap binary (C++) does not need Python.

Gate the RDEPENDS behind the ndiff PACKAGECONFIG so that Python is only
required when ndiff is actually enabled.

Signed-off-by: Paolo Barbolini <paolo.barbolini@m4ss.net>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Paolo Barbolini 2026-03-30 10:04:49 +02:00 committed by Khem Raj
parent 95446dcf8f
commit 44d6b2efa5
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 2 additions and 10 deletions

View File

@ -59,8 +59,4 @@ do_install:append() {
FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat" FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat"
RDEPENDS:${PN} += " \ RDEPENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'ndiff', 'python3-difflib python3-asyncio python3-xml', '', d)}"
python3-difflib \
python3-asyncio \
python3-xml \
"

View File

@ -59,8 +59,4 @@ do_install:append() {
FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat" FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat"
RDEPENDS:${PN} += " \ RDEPENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'ndiff', 'python3-difflib python3-asyncio python3-xml', '', d)}"
python3-difflib \
python3-asyncio \
python3-xml \
"