public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] sbuild: Don't update apt database on every package build
@ 2022-10-24 13:10 Uladzimir Bely
  2022-10-24 14:14 ` Jan Kiszka
  0 siblings, 1 reply; 6+ messages in thread
From: Uladzimir Bely @ 2022-10-24 13:10 UTC (permalink / raw)
  To: isar-users

By default, sbuild updates apt database beforethe build. It may cause
an inconsistency between apt databases for different packages built at
the different time if external (Debian) mirrors has updated recently.

With new changes, sbuild will rely on global apt state that was got
during debootstrap stage.

Local `isar-apt` repo will still be automatically updated while it is
passed via `--extra-repository=` argument.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
 meta/classes/dpkg.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass
index c92ea7db..a55b5776 100644
--- a/meta/classes/dpkg.bbclass
+++ b/meta/classes/dpkg.bbclass
@@ -90,6 +90,7 @@ dpkg_runbuild() {
     sbuild -A -n -c ${SBUILD_CHROOT} --extra-repository="${ISAR_APT_REPO}" \
         --host=${PACKAGE_ARCH} --build=${SBUILD_HOST_ARCH} ${profiles} \
         --no-run-lintian --no-run-piuparts --no-run-autopkgtest --resolve-alternatives \
+        --no-apt-update --no-apt-upgrade --no-apt-distupgrade \
         --chroot-setup-commands="rm -f /var/log/dpkg.log" \
         --chroot-setup-commands="cp -n --no-preserve=owner ${ext_deb_dir}/*.deb -t ${deb_dir}/ || :" \
         --finished-build-commands="rm -f ${deb_dir}/sbuild-build-depends-main-dummy_*.deb" \
-- 
2.20.1


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

end of thread, other threads:[~2022-10-26  7:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-24 13:10 [PATCH] sbuild: Don't update apt database on every package build Uladzimir Bely
2022-10-24 14:14 ` Jan Kiszka
2022-10-25  9:00   ` Uladzimir Bely
2022-10-25 13:37     ` Jan Kiszka
2022-10-26  7:06       ` Uladzimir Bely
2022-10-26  7:17         ` Jan Kiszka

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