Skip to contentSkip to conversation

insane.bbclass: avaid unnecessary rerun of do_patch

PATCH ChenQi 1 participant 1 message Dec 17, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

ChenQi

author
#1 lore raw

Sorry. Typo in title. I'll send out V2.

Quoted 40 lines · Chen Qi via lists.openembedded.org

From: Chen Qi <[email protected]>

When toggling ptest for DISTRO_FEATURES, the do_patch function gets rerun.

The dependency chain is:
do_patch -> do_qa_patch -> DISTRO_FEATURES{ptest}

Such rerun is not necessary. And it's kind of annoying because everything gets rebuilt, including cross toolchain and recipes not using ptest.

The ERROR_QA and WARN_QA should be enough to trigger the re-run if unimplemented-ptest is added to one of them.

---
  meta/classes-global/insane.bbclass | 1 +
  1 file changed, 1 insertion(+)
meta/classes-global/insane.bbclass +1 -1
index fed8163c3e..3185209b7f 100644
@@ -1345,6 +1345,7 @@ python do_qa_patch() {
 
      oe.qa.exit_if_errors(d)
  }
+do_qa_patch[vardepsexclude] = "DISTRO_FEATURES"
 
  python do_qa_configure() {
      import subprocess
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#228017): https://lists.openembedded.org/g/openembedded-core/message/228017
Mute This Topic: https://lists.openembedded.org/mt/116824148/3618072
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-