public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] make dpkg-prebuilt task sstate cachable
@ 2022-07-29 15:50 Felix Moessbauer
  2022-08-05  9:42 ` Anton Mikanovich
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Moessbauer @ 2022-07-29 15:50 UTC (permalink / raw)
  To: isar-users; +Cc: jan.kiszka, Felix Moessbauer, Adriaan Schmidt

This makes the dpkg-prebuilt task sstate cachable.
While this is not required in simple situations,
it makes it possible to re-package existing packages
and cache the generated artifacts.

Acked-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 meta/classes/dpkg-prebuilt.bbclass | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/meta/classes/dpkg-prebuilt.bbclass b/meta/classes/dpkg-prebuilt.bbclass
index 0a6daef7..97e1e2de 100644
--- a/meta/classes/dpkg-prebuilt.bbclass
+++ b/meta/classes/dpkg-prebuilt.bbclass
@@ -1,5 +1,5 @@
 # This software is a part of ISAR.
-# Copyright (C) 2021 Siemens AG
+# Copyright (C) 2021-2022 Siemens AG
 #
 # SPDX-License-Identifier: MIT
 
@@ -16,5 +16,9 @@ python do_unpack_prepend() {
     d.setVar('SRC_URI', ' '.join(src_uri))
 }
 
+# break dependencies on do_patch, etc... but still support sstate caching
 deltask dpkg_build
-addtask unpack before do_deploy_deb
+addtask dpkg_build after do_unpack before do_deploy_deb
+do_dpkg_build() {
+    true
+}
-- 
2.30.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] make dpkg-prebuilt task sstate cachable
  2022-07-29 15:50 [PATCH] make dpkg-prebuilt task sstate cachable Felix Moessbauer
@ 2022-08-05  9:42 ` Anton Mikanovich
  0 siblings, 0 replies; 2+ messages in thread
From: Anton Mikanovich @ 2022-08-05  9:42 UTC (permalink / raw)
  To: Felix Moessbauer, isar-users; +Cc: jan.kiszka, Adriaan Schmidt

29.07.2022 18:50, Felix Moessbauer wrote:
> This makes the dpkg-prebuilt task sstate cachable.
> While this is not required in simple situations,
> it makes it possible to re-package existing packages
> and cache the generated artifacts.
>
> Acked-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>

Applied to next, thanks.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-05  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-29 15:50 [PATCH] make dpkg-prebuilt task sstate cachable Felix Moessbauer
2022-08-05  9:42 ` Anton Mikanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox