public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] Adjust do_apt_fetch dependency to crossbuild
@ 2019-08-31 10:38 Jan Kiszka
  2019-09-12 13:49 ` Baurzhan Ismagulov
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Kiszka @ 2019-08-31 10:38 UTC (permalink / raw)
  To: isar-users; +Cc: Henning Schild

From: Jan Kiszka <jan.kiszka@siemens.com>

So far, do_apt_fetch has a hard-coded dependency on buildchroot-target.
But that is not accurate. In a crossbuild scenario, it rather depends on
buildchroot-host. Adjust that by updating the automatic dependency
setting of buildchroot.bbclass from do_prepare_build to do_apt_fetch.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta/classes/buildchroot.bbclass | 2 +-
 meta/classes/dpkg-base.bbclass   | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/meta/classes/buildchroot.bbclass b/meta/classes/buildchroot.bbclass
index a87e144..64ac450 100644
--- a/meta/classes/buildchroot.bbclass
+++ b/meta/classes/buildchroot.bbclass
@@ -17,7 +17,7 @@ python __anonymous() {
         dep = "buildchroot-host:do_build"
         rootfs = d.getVar('BUILDCHROOT_HOST_DIR', True)

-    d.setVarFlag('do_prepare_build', 'depends', dep)
+    d.setVarFlag('do_apt_fetch', 'depends', dep)
     d.setVar('BUILDCHROOT_DIR', rootfs)
 }

diff --git a/meta/classes/dpkg-base.bbclass b/meta/classes/dpkg-base.bbclass
index d50d565..4c6e02a 100644
--- a/meta/classes/dpkg-base.bbclass
+++ b/meta/classes/dpkg-base.bbclass
@@ -22,8 +22,6 @@ addtask patch after do_adjust_git before do_dpkg_build

 SRC_APT ?= ""

-do_apt_fetch[depends] = "buildchroot-target:do_build"
-
 do_apt_fetch() {
 	if [ -z "${@d.getVar("SRC_APT", True).strip()}" ]; then
 		exit
--

2.16.4


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

end of thread, other threads:[~2019-09-17  8:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-31 10:38 [PATCH] Adjust do_apt_fetch dependency to crossbuild Jan Kiszka
2019-09-12 13:49 ` Baurzhan Ismagulov
2019-09-13  6:22   ` Jan Kiszka
2019-09-16 20:46     ` Baurzhan Ismagulov
2019-09-16 20:58       ` Jan Kiszka
2019-09-16 21:19         ` Baurzhan Ismagulov
2019-09-16 21:37           ` Jan Kiszka
2019-09-17  8:51   ` Henning Schild

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