CIP-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Quirin Gylstorff <quirin.gylstorff@siemens.com>,
	cip-dev@lists.cip-project.org, cedric.hombourger@siemens.com
Subject: Re: [cip-dev][isar-cip-core][PATCH v2] Add missing MACHINE to install swupdate-config*
Date: Mon, 29 Jun 2026 07:22:37 +0200	[thread overview]
Message-ID: <d44159cd-a908-4412-ab51-ca4e491f69a1@siemens.com> (raw)
In-Reply-To: <43d2827c-d9ea-4fd7-b5eb-9a2181c6b4a9@siemens.com>

On 26.06.26 20:28, Quirin Gylstorff wrote:
> 
> 
> On 6/26/26 7:13 PM, Jan Kiszka wrote:
>> On 26.06.26 18:33, Quirin Gylstorff wrote:
>>> From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
>>>
>>> This fixes an issue when building swupdate-config* for two different
>>> architectures, for example arm64 and riscv64.
>>>
>>> The reason is that both package are ARCH all and provide the virtual
>>> package `swupdate-config` which leads to the following error during
>>> installation in the rootfs with Debian sid:
>>>
>>> | Building dependency tree...
>>> | Reading state information...
>>> | Package swupdate-config is a virtual package provided by:
>>> |   swupdate-config-qemu-riscv64 0.2
>>> |   swupdate-config-qemu-arm64 0.2
>>> |
>>> | E: Package 'swupdate-config' has no installation candidate
>>>
>>> To be compliant with the Debian standard the conflict field is missing.
>>>
>>> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
>>> ---
>>>
>>> v1 was 'swupdate-config: Set DPKG_ARCH to any'
>>>
>>> Changes v2:
>>>   - set explict recipe name in image creation
>>>   - remove DPKG_ARCH setting in swupdate-config
>>>
>>>   recipes-core/images/swupdate.inc | 4 ++--
>>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/recipes-core/images/swupdate.inc b/recipes-core/images/
>>> swupdate.inc
>>> index 00e972e..006d622 100644
>>> --- a/recipes-core/images/swupdate.inc
>>> +++ b/recipes-core/images/swupdate.inc
>>> @@ -59,7 +59,7 @@ IMAGE_PREINSTALL:append = "${@'' if
>>> bb.utils.to_boolean(d.getVar('SWUPDATE_SELFB
>>>     WFX_URL ??= ""
>>>   # check for wfx url to enable support for wfx backend based updates
>>> -IMAGE_INSTALL:append = "${@' swupdate-config-wfx' if
>>> d.getVar("WFX_URL") else ''}"
>>> +IMAGE_INSTALL:append = "${@' swupdate-config-wfx-' +
>>> d.getVar("MACHINE") if d.getVar("WFX_URL") else ''}"
>>>     IMAGE_INSTALL += " swupdate-handler-roundrobin"
>>> -IMAGE_INSTALL += " swupdate-config"
>>> +IMAGE_INSTALL += " swupdate-config-${MACHINE}"
>>
>> Shouldn't we then also retire the virtual packages?
>>
> This could break downstream. Also I currently have no better solution than:
> 
> +DEBIAN_PROVIDES:remove="swupdate-config-wfx"
> +PROVIDES:remove="swupdate-config-wfx"
> +RPROVIDES:remove="swupdate-config-wfx"
> 

I agree that it may break downstream, and we shouldn't no longer do that
late in the RC cycle. But we should do that for one of the next
releases. We could start by warning in the next release if the
machine-less version of the recipe is pulled by any recipe.

For this release, I've now merged the patch as-is.

Thanks,
Jan

-- 
Siemens AG, Foundational Technologies
Linux Expert Center


      reply	other threads:[~2026-06-29  5:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-26 16:33 [cip-dev][isar-cip-core][PATCH v2] Add missing MACHINE to install swupdate-config* Quirin Gylstorff
2026-06-26 17:13 ` Jan Kiszka
2026-06-26 18:28   ` Quirin Gylstorff
2026-06-29  5:22     ` Jan Kiszka [this message]

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=d44159cd-a908-4412-ab51-ca4e491f69a1@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=cedric.hombourger@siemens.com \
    --cc=cip-dev@lists.cip-project.org \
    --cc=quirin.gylstorff@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