public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v2] dpkg-base: Drop dependency on buildchroot
@ 2023-01-10  7:55 Jan Kiszka
  2023-01-10 19:37 ` Baurzhan Ismagulov
  2023-01-24  7:37 ` Uladzimir Bely
  0 siblings, 2 replies; 5+ messages in thread
From: Jan Kiszka @ 2023-01-10  7:55 UTC (permalink / raw)
  To: isar-users; +Cc: Roberto A. Foglietta

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

Neither dpkg_do_mounts nor dpkg_undo_mounts are invoked anymore. Drop
them and the whole buildchroot dependency along this.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

Changes in v2:
 - drop all traces of buildchroot - it's already dead code

 meta/classes/dpkg-base.bbclass | 28 ----------------------------
 1 file changed, 28 deletions(-)

diff --git a/meta/classes/dpkg-base.bbclass b/meta/classes/dpkg-base.bbclass
index 260aa73e..61bf48ef 100644
--- a/meta/classes/dpkg-base.bbclass
+++ b/meta/classes/dpkg-base.bbclass
@@ -5,7 +5,6 @@
 # SPDX-License-Identifier: MIT
 
 inherit sbuild
-inherit buildchroot
 inherit debianize
 inherit terminal
 inherit repository
@@ -123,9 +122,6 @@ do_apt_fetch() {
 addtask apt_fetch
 do_apt_fetch[lockfiles] += "${REPO_ISAR_DIR}/isar.lock"
 
-# Add dependency from the correct buildchroot: host or target
-do_apt_fetch[depends] += "${BUILDCHROOT_DEP}"
-
 # Add dependency from the correct schroot: host or target
 do_apt_fetch[depends] += "${SCHROOT_DEP}"
 
@@ -188,30 +184,6 @@ addtask prepare_build after do_patch do_transform_template before do_dpkg_build
 do_prepare_build[deptask] = "do_deploy_deb"
 do_prepare_build[depends] = "${SCHROOT_DEP}"
 
-BUILDROOT = "${BUILDCHROOT_DIR}/${PP}"
-
-dpkg_do_mounts() {
-    mkdir -p ${BUILDROOT}
-    sudo mount --bind ${WORKDIR} ${BUILDROOT}
-
-    buildchroot_do_mounts
-}
-
-dpkg_undo_mounts() {
-    i=0
-    while ! sudo umount ${BUILDROOT}; do
-        sleep 0.1
-        if [ `expr $i % 100` -eq 0 ] ; then
-            bbwarn "${BUILDROOT}: Couldn't unmount ($i), retrying..."
-        fi
-        if [ $i -ge 10000 ]; then
-            bbfatal "${BUILDROOT}: Couldn't unmount after timeout"
-        fi
-        i=`expr $i + 1`
-    done
-    sudo rmdir ${BUILDROOT}
-}
-
 do_prepare_build_append() {
     # Make a local copy of isar-apt repo that is not affected by other parallel builds
     mkdir -p ${WORKDIR}/isar-apt/${DISTRO}-${DISTRO_ARCH}
-- 
2.35.3

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

end of thread, other threads:[~2023-01-24  7:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-10  7:55 [PATCH v2] dpkg-base: Drop dependency on buildchroot Jan Kiszka
2023-01-10 19:37 ` Baurzhan Ismagulov
2023-01-10 21:01   ` Roberto A. Foglietta
2023-01-11  6:40   ` Jan Kiszka
2023-01-24  7:37 ` Uladzimir Bely

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