public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "'Andreas Ziegler' via isar-users" <isar-users@googlegroups.com>
To: Felix Moessbauer <felix.moessbauer@siemens.com>,
	isar-users@googlegroups.com
Subject: Re: [PATCH v2 1/2] dpkg: let do_deploy_deb runtime depend on do_deploy_source
Date: Thu, 6 Aug 2026 10:19:28 +0200	[thread overview]
Message-ID: <fac5f582-a383-4b85-b149-afbc34f3a450@siemens.com> (raw)
In-Reply-To: <20260806072428.2409275-2-felix.moessbauer@siemens.com>

Am 06.08.2026 um 09:24 schrieb Felix Moessbauer:
> The isar-apt is an artifact that is deployed by isar and can be consumed
> as-is as an apt repository by downstream users. As the isar-apt also
> provides the debian source packages, we have to ensure that these are
> also deployed when the do_dpkg_build task is provided by the SState
> cache. Otherwise the isar-apt is not reproducible across runs with and
> without the SState cache.
> 
> To fix this, we add a runtime dependency between do_deploy_deb and
> do_deploy_source, to ensure all sources of our debs are deployed as
> well.
> 
> Reported-by: Andreas Ziegler <ziegler.andreas@siemens.com>
> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> ---
>   meta/classes-recipe/dpkg-source.bbclass | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/meta/classes-recipe/dpkg-source.bbclass b/meta/classes-recipe/dpkg-source.bbclass
> index b2b45ed3..92d06e1b 100644
> --- a/meta/classes-recipe/dpkg-source.bbclass
> +++ b/meta/classes-recipe/dpkg-source.bbclass
> @@ -49,6 +49,8 @@ do_deploy_source() {
>   addtask deploy_source after do_dpkg_source
>   
>   do_dpkg_build[depends] += "${BPN}:do_deploy_source"
> +# ensure that the source package is deployed into isar-apt
> +do_deploy_deb[rdepends] += "${BPN}:do_deploy_source"
>   
>   SCHROOT_MOUNTS = "${WORKDIR}:/work ${REPO_ISAR_DIR}/${DISTRO}:/isar-apt"
>   

Works like a charm in our pipeline, so:

Tested-by: Andreas Ziegler <ziegler.andreas@siemens.com>

Thanks!

Andreas

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/fac5f582-a383-4b85-b149-afbc34f3a450%40siemens.com.

  reply	other threads:[~2026-08-06  8:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-06  7:24 [PATCH v2 0/2] ensure source packages are deployed on rebuild with sstate 'Felix Moessbauer' via isar-users
2026-08-06  7:24 ` [PATCH v2 1/2] dpkg: let do_deploy_deb runtime depend on do_deploy_source 'Felix Moessbauer' via isar-users
2026-08-06  8:19   ` 'Andreas Ziegler' via isar-users [this message]
2026-08-06  7:24 ` [PATCH v2 2/2] dpkg: cache do_dpkg_source results in sstate 'Felix Moessbauer' via isar-users
2026-08-06  8:20   ` 'Andreas Ziegler' via isar-users

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=fac5f582-a383-4b85-b149-afbc34f3a450@siemens.com \
    --to=isar-users@googlegroups.com \
    --cc=felix.moessbauer@siemens.com \
    --cc=ziegler.andreas@siemens.com \
    /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