]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
insane: Ensure package_qa tasks run in builds when expected
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 22 Oct 2024 11:25:44 +0000 (12:25 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Oct 2024 14:18:52 +0000 (15:18 +0100)
Currently, if you "bitbake XXX" and XXX depends on something else,
the do_package_qa teask for that something may not run. Users would
generally expect it to have though.

Add in the missing dependency to ensure that do_build does trigger
the right package_qa tasks.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/insane.bbclass

index d97f21f8fdd411b302824f9850cadb54541652ef..47c8b9be10a561c6388f7e7b3a7405246180a41d 100644 (file)
@@ -1192,6 +1192,8 @@ do_package_qa[vardepsexclude] = "BB_TASKDEPDATA"
 do_package_qa[rdeptask] = "do_packagedata"
 addtask do_package_qa after do_packagedata do_package before do_build
 
+do_build[rdeptask] += "do_package_qa"
+
 # Add the package specific INSANE_SKIPs to the sstate dependencies
 python() {
     pkgs = (d.getVar('PACKAGES') or '').split()