public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 1/1] apt: allow package downgrades in sbuild chroots
@ 2025-05-13  7:02 'Felix Moessbauer' via isar-users
  2025-05-13 11:40 ` 'Jan Kiszka' via isar-users
  2025-05-14 13:44 ` Baurzhan Ismagulov
  0 siblings, 2 replies; 6+ messages in thread
From: 'Felix Moessbauer' via isar-users @ 2025-05-13  7:02 UTC (permalink / raw)
  To: isar-users; +Cc: Felix Moessbauer

The sbuild chroots carry many packages needed for the build environment.
This sometimes requires packages from bootstrapping to be downgraded so
that the dependencies can be resolved.

An example is the liblzma5 which currently (1st of May 2025) needs to be
downgraded on Debian bookworm.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc
index 6478d3a6..05424f54 100644
--- a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc
+++ b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc
@@ -61,6 +61,9 @@ ROOTFS_POSTPROCESS_COMMAND:remove = "rootfs_cleanup_isar_apt"
 # Do not cleanup base-apt
 ROOTFS_POSTPROCESS_COMMAND:remove = "rootfs_cleanup_base_apt"
 
+# Allow downgrades of packages from bootstrap
+ROOTFS_APT_ARGS += "--allow-downgrades"
+
 DEPLOY_SCHROOT = "${@d.getVar('SCHROOT_' + d.getVar('SBUILD_VARIANT').upper() + '_DIR')}${SBUILD_SCHROOT_SUFFIX}"
 
 do_sbuildchroot_deploy[dirs] = "${DEPLOY_DIR}/schroot-${SBUILD_VARIANT}"
-- 
2.49.0

-- 
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/20250513070208.1226836-1-felix.moessbauer%40siemens.com.

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

* Re: [PATCH 1/1] apt: allow package downgrades in sbuild chroots
  2025-05-13  7:02 [PATCH 1/1] apt: allow package downgrades in sbuild chroots 'Felix Moessbauer' via isar-users
@ 2025-05-13 11:40 ` 'Jan Kiszka' via isar-users
  2025-05-13 13:11   ` 'MOESSBAUER, Felix' via isar-users
  2025-05-14 13:44 ` Baurzhan Ismagulov
  1 sibling, 1 reply; 6+ messages in thread
From: 'Jan Kiszka' via isar-users @ 2025-05-13 11:40 UTC (permalink / raw)
  To: Felix Moessbauer, isar-users

On 13.05.25 09:02, 'Felix Moessbauer' via isar-users wrote:
> The sbuild chroots carry many packages needed for the build environment.
> This sometimes requires packages from bootstrapping to be downgraded so
> that the dependencies can be resolved.
> 
> An example is the liblzma5 which currently (1st of May 2025) needs to be
> downgraded on Debian bookworm.
> 
> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> ---
>  meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc
> index 6478d3a6..05424f54 100644
> --- a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc
> +++ b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc
> @@ -61,6 +61,9 @@ ROOTFS_POSTPROCESS_COMMAND:remove = "rootfs_cleanup_isar_apt"
>  # Do not cleanup base-apt
>  ROOTFS_POSTPROCESS_COMMAND:remove = "rootfs_cleanup_base_apt"
>  
> +# Allow downgrades of packages from bootstrap
> +ROOTFS_APT_ARGS += "--allow-downgrades"
> +

We already have partial downgrade permission for isar-apt and even for
the devshell. We should check if those are then still relevant.

But we also need to check again about other, maybe less desirable side
effects of this change...

Jan

>  DEPLOY_SCHROOT = "${@d.getVar('SCHROOT_' + d.getVar('SBUILD_VARIANT').upper() + '_DIR')}${SBUILD_SCHROOT_SUFFIX}"
>  
>  do_sbuildchroot_deploy[dirs] = "${DEPLOY_DIR}/schroot-${SBUILD_VARIANT}"


-- 
Siemens AG, Foundational Technologies
Linux Expert Center

-- 
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/c639b00e-4152-401c-a4f9-6e03a59dbbc9%40siemens.com.

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

* Re: [PATCH 1/1] apt: allow package downgrades in sbuild chroots
  2025-05-13 11:40 ` 'Jan Kiszka' via isar-users
@ 2025-05-13 13:11   ` 'MOESSBAUER, Felix' via isar-users
  0 siblings, 0 replies; 6+ messages in thread
From: 'MOESSBAUER, Felix' via isar-users @ 2025-05-13 13:11 UTC (permalink / raw)
  To: isar-users, Kiszka, Jan

On Tue, 2025-05-13 at 13:40 +0200, Jan Kiszka wrote:
> On 13.05.25 09:02, 'Felix Moessbauer' via isar-users wrote:
> > The sbuild chroots carry many packages needed for the build
> > environment.
> > This sometimes requires packages from bootstrapping to be
> > downgraded so
> > that the dependencies can be resolved.
> > 
> > An example is the liblzma5 which currently (1st of May 2025) needs
> > to be
> > downgraded on Debian bookworm.
> > 
> > Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> > ---
> >  meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc | 3 +++
> >  1 file changed, 3 insertions(+)
> > 
> > diff --git a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc
> > b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc
> > index 6478d3a6..05424f54 100644
> > --- a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc
> > +++ b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc
> > @@ -61,6 +61,9 @@ ROOTFS_POSTPROCESS_COMMAND:remove =
> > "rootfs_cleanup_isar_apt"
> >  # Do not cleanup base-apt
> >  ROOTFS_POSTPROCESS_COMMAND:remove = "rootfs_cleanup_base_apt"
> >  
> > +# Allow downgrades of packages from bootstrap
> > +ROOTFS_APT_ARGS += "--allow-downgrades"
> > +
> 
> We already have partial downgrade permission for isar-apt and even
> for
> the devshell. We should check if those are then still relevant.

I also thought about globally applying the downgrade permission to the
rootfs class, but I also was unsure about the side-effects.

Nontheless, I prefer to have this fix merged rather sooner than later,
as Debian bookworm builds ~ after 1st of may are broken. It looks like
some package in the sbuild chroot list depends on an older version of
liblzma5 which is already installed during bootstrap.

Felix

> 
> But we also need to check again about other, maybe less desirable
> side
> effects of this change...
> 
> Jan
> 
> >  DEPLOY_SCHROOT = "${@d.getVar('SCHROOT_' +
> > d.getVar('SBUILD_VARIANT').upper() +
> > '_DIR')}${SBUILD_SCHROOT_SUFFIX}"
> >  
> >  do_sbuildchroot_deploy[dirs] = "${DEPLOY_DIR}/schroot-
> > ${SBUILD_VARIANT}"
> 

-- 
Siemens AG
Linux Expert Center
Friedrich-Ludwig-Bauer-Str. 3
85748 Garching, Germany

-- 
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/7896b20dfa5a3c68fc8f99d67e7b50de5e3d6521.camel%40siemens.com.

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

* Re: [PATCH 1/1] apt: allow package downgrades in sbuild chroots
  2025-05-13  7:02 [PATCH 1/1] apt: allow package downgrades in sbuild chroots 'Felix Moessbauer' via isar-users
  2025-05-13 11:40 ` 'Jan Kiszka' via isar-users
@ 2025-05-14 13:44 ` Baurzhan Ismagulov
  2025-06-04 13:58   ` Cihan Mete Bahadır
  1 sibling, 1 reply; 6+ messages in thread
From: Baurzhan Ismagulov @ 2025-05-14 13:44 UTC (permalink / raw)
  To: isar-users; +Cc: Felix Moessbauer

On 2025-05-13 09:02, 'Felix Moessbauer' via isar-users wrote:
> The sbuild chroots carry many packages needed for the build environment.
> This sometimes requires packages from bootstrapping to be downgraded so
> that the dependencies can be resolved.
> 
> An example is the liblzma5 which currently (1st of May 2025) needs to be
> downgraded on Debian bookworm.

I think this touches a tricky topic and we should check whether this intersects
with e.g. [1], [2]. A testcase would definitely help. Also, at least the known
cases should be considered (upgrade / downgrade, non-essential / essential,
maybe non-compat / compat).

1. https://lists.isar-build.org/isar-users/20250221154843.515037-1-amikan@ilbers.de/
2. https://lists.isar-build.org/isar-users/215cc575-fa4f-45e6-8511-eff4254a4383@ilbers.de/T/#t

With kind regards,
Baurzhan

-- 
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/aCSeQzqRzdO8JThh%40abai.de.

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

* Re: [PATCH 1/1] apt: allow package downgrades in sbuild chroots
  2025-05-14 13:44 ` Baurzhan Ismagulov
@ 2025-06-04 13:58   ` Cihan Mete Bahadır
  2025-06-05 13:00     ` Baurzhan Ismagulov
  0 siblings, 1 reply; 6+ messages in thread
From: Cihan Mete Bahadır @ 2025-06-04 13:58 UTC (permalink / raw)
  To: isar-users


[-- Attachment #1.1: Type: text/plain, Size: 1823 bytes --]

Also had the issue while downgrading :

The following packages will be DOWNGRADED:
  libsystemd0 libudev1
0 upgraded, 266 newly installed, 2 downgraded, 0 to remove and 0 not 
upgraded.
E: Packages were downgraded and -y was used without --allow-downgrades.

Best regards,
Mete

14 Mayıs 2025 Çarşamba tarihinde saat 16:44:40 UTC+3 itibarıyla Baurzhan 
Ismagulov şunları yazdı:

> On 2025-05-13 09:02, 'Felix Moessbauer' via isar-users wrote:
> > The sbuild chroots carry many packages needed for the build environment.
> > This sometimes requires packages from bootstrapping to be downgraded so
> > that the dependencies can be resolved.
> > 
> > An example is the liblzma5 which currently (1st of May 2025) needs to be
> > downgraded on Debian bookworm.
>
> I think this touches a tricky topic and we should check whether this 
> intersects
> with e.g. [1], [2]. A testcase would definitely help. Also, at least the 
> known
> cases should be considered (upgrade / downgrade, non-essential / essential,
> maybe non-compat / compat).
>
> 1. https://lists.isar-build.org/isar-users/20250221154843....@ilbers.de/ 
> <https://lists.isar-build.org/isar-users/20250221154843.515037-1-amikan@ilbers.de/>
> 2. 
> https://lists.isar-build.org/isar-users/215cc575-fa4f-45e6...@ilbers.de/T/#t 
> <https://lists.isar-build.org/isar-users/215cc575-fa4f-45e6-8511-eff4254a4383@ilbers.de/T/#t>
>
> With kind regards,
> Baurzhan
>

-- 
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/b9a95f82-c669-46ba-b79c-333e503df153n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 2935 bytes --]

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

* Re: [PATCH 1/1] apt: allow package downgrades in sbuild chroots
  2025-06-04 13:58   ` Cihan Mete Bahadır
@ 2025-06-05 13:00     ` Baurzhan Ismagulov
  0 siblings, 0 replies; 6+ messages in thread
From: Baurzhan Ismagulov @ 2025-06-05 13:00 UTC (permalink / raw)
  To: isar-users

On 2025-06-04 06:58, Cihan Mete Bahadır wrote:
> 14 Mayıs 2025 Çarşamba tarihinde saat 16:44:40 UTC+3 itibarıyla Baurzhan 
> Ismagulov şunları yazdı:
> > I think this touches a tricky topic and we should check whether this 
> > intersects
> > with e.g. [1], [2]. A testcase would definitely help. Also, at least the 
> > known
> > cases should be considered (upgrade / downgrade, non-essential / essential,
> > maybe non-compat / compat).
> Also had the issue while downgrading :
> 
> The following packages will be DOWNGRADED:
>   libsystemd0 libudev1
> 0 upgraded, 266 newly installed, 2 downgraded, 0 to remove and 0 not 
> upgraded.
> E: Packages were downgraded and -y was used without --allow-downgrades.

Thanks Mete for the update. To be clear, I'm not challenging that the issue
exists. Tricky topics need testcases for the code to stay modifiable. We'll
check this.

With kind regards,
Baurzhan

-- 
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/aEGU9-b9PBGIbPxf%40abai.de.

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

end of thread, other threads:[~2025-06-05 13:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-13  7:02 [PATCH 1/1] apt: allow package downgrades in sbuild chroots 'Felix Moessbauer' via isar-users
2025-05-13 11:40 ` 'Jan Kiszka' via isar-users
2025-05-13 13:11   ` 'MOESSBAUER, Felix' via isar-users
2025-05-14 13:44 ` Baurzhan Ismagulov
2025-06-04 13:58   ` Cihan Mete Bahadır
2025-06-05 13:00     ` Baurzhan Ismagulov

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