public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Steve Sakoman <steve@sakoman.com>
To: openembedded-core@lists.openembedded.org
Subject: [OE-core][kirkstone 25/31] sstatesig: skip the rm_work task signature
Date: Sun, 27 Nov 2022 03:55:11 -1000	[thread overview]
Message-ID: <ad52bb4643eb8063ff4db6bcb86b9a593ad6ce7d.1669557026.git.steve@sakoman.com> (raw)
In-Reply-To: <cover.1669557026.git.steve@sakoman.com>

From: Jose Quaresma <quaresma.jose@gmail.com>

We can skip the rm_work task signature to avoid running the task
when we remove some tasks from the dependencie chain.

The inject_rm_work handler on the rm_work bbclass triggers the
rm_work task running for any signature change in the dependencie
chain of the task do_build of each recipe.

i.e INHERIT:remove = "create-spdx" will trigger the do_rm_work
when we collect the sstate cache with INHERIT = "create-spdx"

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 292305700e39d0ebd64763f5032c39ace5005fad)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
 meta/lib/oe/sstatesig.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index de65244932..f5a77bea27 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -30,6 +30,12 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCaches):
     depmc, _, deptaskname, depmcfn = bb.runqueue.split_tid_mcfn(dep)
     mc, _ = bb.runqueue.split_mc(fn)
 
+    # We can skip the rm_work task signature to avoid running the task
+    # when we remove some tasks from the dependencie chain
+    # i.e INHERIT:remove = "create-spdx" will trigger the do_rm_work
+    if task == "do_rm_work":
+        return False
+
     # Keep all dependencies between SPDX tasks in the signature. SPDX documents
     # are linked together by hashes, which means if a dependent document changes,
     # all downstream documents must be re-written (even if they are "safe"
-- 
2.25.1



  parent reply	other threads:[~2022-11-27 13:56 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-27 13:54 [OE-core][kirkstone 00/31] Patch review Steve Sakoman
2022-11-27 13:54 ` [OE-core][kirkstone 01/31] libsndfile1: Backport fix for CVE-2021-4156 Steve Sakoman
2022-11-27 13:54 ` [OE-core][kirkstone 02/31] bash: backport patch to fix CVE-2022-3715 Steve Sakoman
2022-11-27 13:54 ` [OE-core][kirkstone 03/31] ffmpeg: fix for CVE-2022-3964 Steve Sakoman
2022-11-27 13:54 ` [OE-core][kirkstone 04/31] ffmpeg: fix for CVE-2022-3965 Steve Sakoman
2022-11-27 13:54 ` [OE-core][kirkstone 05/31] python3: fix CVE-2022-42919 local privilege escalation via the multiprocessing forkserver start method Steve Sakoman
2022-11-27 13:54 ` [OE-core][kirkstone 06/31] go: fix CVE-2022-2880 Steve Sakoman
2022-11-27 13:54 ` [OE-core][kirkstone 07/31] linux-firmware: upgrade 20220913 -> 20221012 Steve Sakoman
2022-11-27 13:54 ` [OE-core][kirkstone 08/31] xwayland: upgrade 22.1.3 -> 22.1.4 Steve Sakoman
2022-11-27 13:54 ` [OE-core][kirkstone 09/31] xwayland: upgrade 22.1.4 -> 22.1.5 Steve Sakoman
2022-11-27 13:54 ` [OE-core][kirkstone 10/31] libffi: upgrade 3.4.2 -> 3.4.4 Steve Sakoman
2022-11-27 13:54 ` [OE-core][kirkstone 11/31] libical: upgrade 3.0.15 -> 3.0.16 Steve Sakoman
2022-11-27 13:54 ` [OE-core][kirkstone 12/31] mtd-utils: upgrade 2.1.4 -> 2.1.5 Steve Sakoman
2022-11-27 13:54 ` [OE-core][kirkstone 13/31] gdk-pixbuf: upgrade 2.42.9 -> 2.42.10 Steve Sakoman
2022-11-27 13:55 ` [OE-core][kirkstone 14/31] gstreamer1.0: upgrade 1.20.3 -> 1.20.4 Steve Sakoman
2022-11-27 13:55 ` [OE-core][kirkstone 15/31] libepoxy: convert to git Steve Sakoman
2022-11-27 13:55 ` [OE-core][kirkstone 16/31] libepoxy: update 1.5.9 -> 1.5.10 Steve Sakoman
2022-11-27 13:55 ` [OE-core][kirkstone 17/31] mobile-broadband-provider-info: upgrade 20220725 -> 20221107 Steve Sakoman
2022-11-27 13:55 ` [OE-core][kirkstone 18/31] babeltrace: upgrade 1.5.8 -> 1.5.11 Steve Sakoman
2022-11-27 13:55 ` [OE-core][kirkstone 19/31] iso-codes: upgrade 4.11.0 -> 4.12.0 Steve Sakoman
2022-11-27 13:55 ` [OE-core][kirkstone 20/31] qemu-helper-native: Re-write bridge helper as C program Steve Sakoman
2022-11-27 13:55 ` [OE-core][kirkstone 21/31] qemu-helper-native: Correctly pass program name as argv[0] Steve Sakoman
2022-11-27 13:55 ` [OE-core][kirkstone 22/31] linux-firmware: don't put the firmware into the sysroot Steve Sakoman
2022-11-27 13:55 ` [OE-core][kirkstone 23/31] vala: install vapigen-wrapper into /usr/bin/crosscripts and stage only that Steve Sakoman
2022-11-27 13:55 ` [OE-core][kirkstone 24/31] gnomebase.bbclass: return the whole version for tarball directory if it is a number Steve Sakoman
2022-11-27 13:55 ` Steve Sakoman [this message]
2022-11-27 13:55 ` [OE-core][kirkstone 26/31] rm_work: exclude the SSTATETASKS from the rm_work tasks sinature Steve Sakoman
2022-11-27 13:55 ` [OE-core][kirkstone 27/31] sstate: Allow optimisation of do_deploy_archives task dependencies Steve Sakoman
2022-11-27 13:55 ` [OE-core][kirkstone 28/31] sanity: Drop data finalize call Steve Sakoman
2022-11-27 13:55 ` [OE-core][kirkstone 29/31] systemd: add group render to udev package Steve Sakoman
2022-11-27 13:55 ` [OE-core][kirkstone 30/31] meta-selftest/staticids: add render group for systemd Steve Sakoman
2022-11-27 13:55 ` [OE-core][kirkstone 31/31] create-spdx: default share_src for shared sources Steve Sakoman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ad52bb4643eb8063ff4db6bcb86b9a593ad6ce7d.1669557026.git.steve@sakoman.com \
    --to=steve@sakoman.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox