mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
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:
parent
95446dcf8f
commit
44d6b2efa5
@ -59,8 +59,4 @@ do_install:append() {
|
||||
|
||||
FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat"
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-difflib \
|
||||
python3-asyncio \
|
||||
python3-xml \
|
||||
"
|
||||
RDEPENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'ndiff', 'python3-difflib python3-asyncio python3-xml', '', d)}"
|
||||
|
||||
@ -59,8 +59,4 @@ do_install:append() {
|
||||
|
||||
FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat"
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-difflib \
|
||||
python3-asyncio \
|
||||
python3-xml \
|
||||
"
|
||||
RDEPENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'ndiff', 'python3-difflib python3-asyncio python3-xml', '', d)}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user