public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Felix Moessbauer <felix.moessbauer@siemens.com>
To: isar-users@googlegroups.com
Cc: jan.kiszka@siemens.com, Felix Moessbauer <felix.moessbauer@siemens.com>
Subject: [PATCH 1/1] fix cyclic dep on crossbuild-essential-riscv64
Date: Wed, 25 Jan 2023 10:01:57 +0000	[thread overview]
Message-ID: <20230125100157.1863561-1-felix.moessbauer@siemens.com> (raw)

This patch fixes a cyclic dependency on the crossbuild-essentials,
introduced in d90f75bd and made visible by recent chroot optimizations.
The crossbuild-essential-riscv64 package is a dependency when building
with sbuild for the non-native architecture. As this (meta) package is
arch=all anyways, we simply build it using the native architecture
(e.g. --host-arch amd64 on x64) to not depend on the cross-toolchain.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 .../crossbuild-essential-riscv64_0.2-isar.bb                   | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-devtools/crossbuild-essential-riscv64/crossbuild-essential-riscv64_0.2-isar.bb b/meta/recipes-devtools/crossbuild-essential-riscv64/crossbuild-essential-riscv64_0.2-isar.bb
index 9554f1f6..c5092146 100644
--- a/meta/recipes-devtools/crossbuild-essential-riscv64/crossbuild-essential-riscv64_0.2-isar.bb
+++ b/meta/recipes-devtools/crossbuild-essential-riscv64/crossbuild-essential-riscv64_0.2-isar.bb
@@ -7,6 +7,9 @@
 inherit dpkg-raw
 
 DPKG_ARCH = "all"
+# build this package using the host toolchain
+# to break cyclic dependency in the cross chroot
+PACKAGE_ARCH = "${HOST_ARCH}"
 
 DEBIAN_DEPENDS = " \
     gcc-riscv64-linux-gnu, \
-- 
2.34.1


             reply	other threads:[~2023-01-25 10:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-25 10:01 Felix Moessbauer [this message]
2023-01-31  6:31 ` Jan Kiszka
2023-02-06  6:33 ` Moessbauer, Felix
2023-02-07  8:50 ` Uladzimir Bely

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=20230125100157.1863561-1-felix.moessbauer@siemens.com \
    --to=felix.moessbauer@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@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