* [PATCH] dpkg-base: Add devshell_nodeps task
@ 2021-11-02 8:22 Jan Kiszka
2021-11-15 11:27 ` Anton Mikanovich
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2021-11-02 8:22 UTC (permalink / raw)
To: isar-users
From: Jan Kiszka <jan.kiszka@siemens.com>
This is useful for debugging dependency issues that apt is usually weak
in presenting clearly. In that case, you may want to beam into the
buildchroot and issue the dependency installation steps manually. The
default devshell is designed to support the build, thus pulls in all
deps first and cannot help here. Therefore this new separate task.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
meta/classes/dpkg-base.bbclass | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/meta/classes/dpkg-base.bbclass b/meta/classes/dpkg-base.bbclass
index 83500da8..8bbc4165 100644
--- a/meta/classes/dpkg-base.bbclass
+++ b/meta/classes/dpkg-base.bbclass
@@ -269,3 +269,13 @@ addtask devshell after do_prepare_build
DEVSHELL_STARTDIR ?= "${S}"
do_devshell[dirs] = "${DEVSHELL_STARTDIR}"
do_devshell[nostamp] = "1"
+
+python do_devshell_nodeps() {
+ bb.build.exec_func('do_devshell', d)
+}
+
+# devshell may be placed after do_instell_builddeps in downstream classes.
+# devshell_nodeps will always stay right after do_prepare_build.
+addtask devshell_nodeps after do_prepare_build
+do_devshell_nodeps[dirs] = "${DEVSHELL_STARTDIR}"
+do_devshell_nodeps[nostamp] = "1"
--
2.31.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] dpkg-base: Add devshell_nodeps task
2021-11-02 8:22 [PATCH] dpkg-base: Add devshell_nodeps task Jan Kiszka
@ 2021-11-15 11:27 ` Anton Mikanovich
0 siblings, 0 replies; 2+ messages in thread
From: Anton Mikanovich @ 2021-11-15 11:27 UTC (permalink / raw)
To: Jan Kiszka, isar-users
02.11.2021 11:22, Jan Kiszka wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> This is useful for debugging dependency issues that apt is usually weak
> in presenting clearly. In that case, you may want to beam into the
> buildchroot and issue the dependency installation steps manually. The
> default devshell is designed to support the build, thus pulls in all
> deps first and cannot help here. Therefore this new separate task.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Applied to next, thanks.
--
Anton Mikanovich
Promwad Ltd.
External service provider of ilbers GmbH
Maria-Merian-Str. 8
85521 Ottobrunn, Germany
+49 (89) 122 67 24-0
Commercial register Munich, HRB 214197
General Manager: Baurzhan Ismagulov
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-15 11:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-02 8:22 [PATCH] dpkg-base: Add devshell_nodeps task Jan Kiszka
2021-11-15 11:27 ` Anton Mikanovich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox