public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] meta-isar: Change BASE_DISTRO for 64-bit raspios
@ 2023-08-29  6:00 Uladzimir Bely
  2023-09-06  4:45 ` Uladzimir Bely
  0 siblings, 1 reply; 2+ messages in thread
From: Uladzimir Bely @ 2023-08-29  6:00 UTC (permalink / raw)
  To: isar-users

Unlike debian distributions, raspios for armhf and arm64 use different
main repositories:

 - armhf: "http://raspbian.raspberrypi.org/raspbian" - binary packages
are rebuilt to support older RPis (e.g. RPi1 / Rpi0);
 - arm64: "http://deb.debian.org/debian" - binary packages from the
official debian repositories are used.

Also, both "armhf" and "arm64" have a common repository that stores
rpi-specific packages: "archive.raspberrypi.org/debian".

This difference causes build issues with local rebuild. If raspios
64bit config has BASE_DISTRO:arm64 set to "debian", sumultaneous
build for "rpi-arm64-v8" and "qemuarm64" causes conflicting packages
populated to base-apt.

Similar, setting BASE_DISTRO:arm64 to "raspios", causes conflicting
packages in base-apt when "rpi-arm-v7" and "rpi-arm64-v8" are built
sumultaneously.

It means that base-apt location for raspios 64bit should differ both
from raspios 32bit and debian.

This patch adds mc:rpi-arm64-v8-bullseye:isar-image-base target to the
repro test targets set for being able to reproduce the issue. At
the same time, BASE_DISTRO for raspios 64-bit is renamed to "raspios64"
to avoid conflicts with base-apt for debian target.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
 meta-isar/conf/distro/raspios-bullseye.conf | 2 +-
 testsuite/citest.py                         | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-isar/conf/distro/raspios-bullseye.conf b/meta-isar/conf/distro/raspios-bullseye.conf
index 2613969e..cc64a015 100644
--- a/meta-isar/conf/distro/raspios-bullseye.conf
+++ b/meta-isar/conf/distro/raspios-bullseye.conf
@@ -4,7 +4,7 @@
 # Copyright (C) 2022 ilbers GmbH
 
 BASE_DISTRO = "raspios"
-BASE_DISTRO:arm64 = "debian"
+BASE_DISTRO:arm64 = "raspios64"
 
 HOST_BASE_DISTRO ?= "debian"
 
diff --git a/testsuite/citest.py b/testsuite/citest.py
index 90b8955f..48b10286 100755
--- a/testsuite/citest.py
+++ b/testsuite/citest.py
@@ -84,6 +84,7 @@ class ReproTest(CIBaseTest):
     def test_repro_signed(self):
         targets = [
             'mc:rpi-arm-v7-bullseye:isar-image-base',
+            'mc:rpi-arm64-v8-bullseye:isar-image-base',
             'mc:qemuarm64-bullseye:isar-image-base',
                   ]
 
-- 
2.20.1


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

* Re: [PATCH] meta-isar: Change BASE_DISTRO for 64-bit raspios
  2023-08-29  6:00 [PATCH] meta-isar: Change BASE_DISTRO for 64-bit raspios Uladzimir Bely
@ 2023-09-06  4:45 ` Uladzimir Bely
  0 siblings, 0 replies; 2+ messages in thread
From: Uladzimir Bely @ 2023-09-06  4:45 UTC (permalink / raw)
  To: isar-users

On Tue, 2023-08-29 at 08:00 +0200, Uladzimir Bely wrote:
> Unlike debian distributions, raspios for armhf and arm64 use
> different
> main repositories:
> 
>  - armhf: "http://raspbian.raspberrypi.org/raspbian" - binary
> packages
> are rebuilt to support older RPis (e.g. RPi1 / Rpi0);
>  - arm64: "http://deb.debian.org/debian" - binary packages from the
> official debian repositories are used.
> 
> Also, both "armhf" and "arm64" have a common repository that stores
> rpi-specific packages: "archive.raspberrypi.org/debian".
> 
> This difference causes build issues with local rebuild. If raspios
> 64bit config has BASE_DISTRO:arm64 set to "debian", sumultaneous
> build for "rpi-arm64-v8" and "qemuarm64" causes conflicting packages
> populated to base-apt.
> 
> Similar, setting BASE_DISTRO:arm64 to "raspios", causes conflicting
> packages in base-apt when "rpi-arm-v7" and "rpi-arm64-v8" are built
> sumultaneously.
> 
> It means that base-apt location for raspios 64bit should differ both
> from raspios 32bit and debian.
> 
> This patch adds mc:rpi-arm64-v8-bullseye:isar-image-base target to
> the
> repro test targets set for being able to reproduce the issue. At
> the same time, BASE_DISTRO for raspios 64-bit is renamed to
> "raspios64"
> to avoid conflicts with base-apt for debian target.
> 
> Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
> ---
>  meta-isar/conf/distro/raspios-bullseye.conf | 2 +-
>  testsuite/citest.py                         | 1 +
>  2 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/meta-isar/conf/distro/raspios-bullseye.conf b/meta-
> isar/conf/distro/raspios-bullseye.conf
> index 2613969e..cc64a015 100644
> --- a/meta-isar/conf/distro/raspios-bullseye.conf
> +++ b/meta-isar/conf/distro/raspios-bullseye.conf
> @@ -4,7 +4,7 @@
>  # Copyright (C) 2022 ilbers GmbH
>  
>  BASE_DISTRO = "raspios"
> -BASE_DISTRO:arm64 = "debian"
> +BASE_DISTRO:arm64 = "raspios64"
>  
>  HOST_BASE_DISTRO ?= "debian"
>  
> diff --git a/testsuite/citest.py b/testsuite/citest.py
> index 90b8955f..48b10286 100755
> --- a/testsuite/citest.py
> +++ b/testsuite/citest.py
> @@ -84,6 +84,7 @@ class ReproTest(CIBaseTest):
>      def test_repro_signed(self):
>          targets = [
>              'mc:rpi-arm-v7-bullseye:isar-image-base',
> +            'mc:rpi-arm64-v8-bullseye:isar-image-base',
>              'mc:qemuarm64-bullseye:isar-image-base',
>                    ]
>  
> -- 
> 2.20.1
> 

Applied to next.

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

end of thread, other threads:[~2023-09-06  4:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-29  6:00 [PATCH] meta-isar: Change BASE_DISTRO for 64-bit raspios Uladzimir Bely
2023-09-06  4:45 ` Uladzimir Bely

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