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/5] get architecture specific build deps for devshell
Date: Mon, 1 Aug 2022 16:57:15 +0200 [thread overview]
Message-ID: <20220801145719.546953-2-felix.moessbauer@siemens.com> (raw)
In-Reply-To: <20220801145719.546953-1-felix.moessbauer@siemens.com>
When using the devshell for a cross-compile package,
the dependencies have to be downloaded for the host-arch,
not the build-arch (following debian terminology).
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
meta/classes/dpkg-base.bbclass | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/meta/classes/dpkg-base.bbclass b/meta/classes/dpkg-base.bbclass
index 64f0c26b..ef04ef31 100644
--- a/meta/classes/dpkg-base.bbclass
+++ b/meta/classes/dpkg-base.bbclass
@@ -314,10 +314,13 @@ python do_devshell() {
schroot = d.getVar('SBUILD_CHROOT')
isar_apt = d.getVar('ISAR_APT_REPO')
+ pkg_arch = d.getVar('PACKAGE_ARCH', True)
+ build_arch = d.getVar('SBUILD_HOST_ARCH', True)
pp_pps = os.path.join(d.getVar('PP'), d.getVar('PPS'))
- install_deps = ":" if d.getVar('BB_CURRENTTASK') == "devshell_nodeps" else "mk-build-deps -i -t \
- \"apt-get -y -q -o Debug::pkgProblemResolver=yes --no-install-recommends --allow-downgrades\" \
+ install_deps = ":" if d.getVar('BB_CURRENTTASK') == "devshell_nodeps" else f"mk-build-deps -i \
+ --host-arch {pkg_arch} --build-arch {build_arch} \
+ -t \"apt-get -y -q -o Debug::pkgProblemResolver=yes --no-install-recommends --allow-downgrades\" \
debian/control"
termcmd = "schroot -d / -c {0} -u root -- sh -c ' \
--
2.30.2
next prev parent reply other threads:[~2022-08-01 14:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-01 14:57 [PATCH 0/5] Improve debug infrastructure for build debugging Felix Moessbauer
2022-08-01 14:57 ` Felix Moessbauer [this message]
2022-08-01 14:57 ` [PATCH 2/5] move CCACHE_DISABLE env var to function Felix Moessbauer
2022-08-01 14:57 ` [PATCH 3/5] prepend ccache wrappers in devshell Felix Moessbauer
2022-08-01 15:00 ` Jan Kiszka
2022-08-02 7:50 ` Felix Moessbauer
2022-08-01 14:57 ` [PATCH 4/5] do not warn on CCACHE related variables Felix Moessbauer
2022-08-01 14:57 ` [PATCH 5/5] allow to switch CCACHE_DEBUG mode from environment Felix Moessbauer
2022-08-10 11:32 ` [PATCH 0/5] Improve debug infrastructure for build debugging Anton Mikanovich
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=20220801145719.546953-2-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