mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
insane.bbclass: Only depend on desktop-file-utils-native when we need it
There is no point in depending on desktop-file-utils if we're not going to use it. This patch makes the dependency conditional upon the desktop tests being enabled. (From OE-Core rev: f775f76dc01f1a969c00f697507958d8a4f9b088) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
# The package.bbclass can help us here.
|
# The package.bbclass can help us here.
|
||||||
#
|
#
|
||||||
inherit package
|
inherit package
|
||||||
PACKAGE_DEPENDS += "pax-utils-native desktop-file-utils-native ${QADEPENDS}"
|
PACKAGE_DEPENDS += "pax-utils-native ${QADEPENDS}"
|
||||||
PACKAGEFUNCS += " do_package_qa "
|
PACKAGEFUNCS += " do_package_qa "
|
||||||
|
|
||||||
# unsafe-references-in-binaries requires prelink-rtld from
|
# unsafe-references-in-binaries requires prelink-rtld from
|
||||||
@@ -722,3 +722,9 @@ do_populate_sysroot[postfuncs] += "do_qa_staging "
|
|||||||
# have it in DEPENDS and for correct LIC_FILES_CHKSUM
|
# have it in DEPENDS and for correct LIC_FILES_CHKSUM
|
||||||
#addtask qa_configure after do_configure before do_compile
|
#addtask qa_configure after do_configure before do_compile
|
||||||
do_configure[postfuncs] += "do_qa_configure "
|
do_configure[postfuncs] += "do_qa_configure "
|
||||||
|
|
||||||
|
python () {
|
||||||
|
tests = d.getVar('WARN_QA', True) + " " + d.getVar('ERROR_QA', True)
|
||||||
|
if tests.find("desktop") != -1:
|
||||||
|
d.appendVar("PACKAGE_DEPENDS", "desktop-file-utils-native")
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user