public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* Build can sporadically fail due to dpkg contention in buildchroot
@ 2018-02-11 15:17 Jan Kiszka
  2018-02-11 16:55 ` Alexander Smirnov
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Kiszka @ 2018-02-11 15:17 UTC (permalink / raw)
  To: isar-users

Hi all,

I got this failure of example-hello:do_build already twice while doing
rebuild tests with my kernel series (ie. with more independent
buildchroot users):

DEBUG: Executing shell function do_build
Get:1 file:/isar-apt isar InRelease
Ign:1 file:/isar-apt isar InRelease
Get:2 file:/isar-apt isar Release [2,864 B]
Get:2 file:/isar-apt isar Release [2,864 B]
Get:3 file:/isar-apt isar Release.gpg
Ign:3 file:/isar-apt isar Release.gpg
Get:4 file:/isar-apt isar/main amd64 Packages [1,135 B]
Reading package lists...
W: The repository 'file:/isar-apt isar Release' is not signed.
hostname: No address associated with hostname
dh_testdir
dh_testroot
dh_prep
dh_testdir
dh_testroot
dh_install
dh_install: Compatibility levels before 9 are deprecated (level 7 in use)
dh_installdocs
dh_installdocs: Compatibility levels before 9 are deprecated (level 7 in use)
dh_installchangelogs
dh_compress
dh_fixperms
dh_installdeb
dh_installdeb: Compatibility levels before 9 are deprecated (level 7 in use)
dh_gencontrol
dh_md5sums
dh_builddeb
dpkg-deb: building package 'hello-build-deps' in '../hello-build-deps_0.2_all.deb'.

The package has been created.
Attention, the package has been created in the current directory,
not in ".." as indicated by the message above!
dpkg: error: dpkg status database is locked by another process
mk-build-deps: dpkg --unpack failed
[...]

So we have a concurrency problem when building over the same dpkg
database. Looks like we need to synchronize (lock-protect) the access to
it, which also means pulling out the dependency installation from the
regular build step. Is that feasible at all? Any alternatives (besides
retrying such builds...)?

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

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

end of thread, other threads:[~2018-02-14 18:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-11 15:17 Build can sporadically fail due to dpkg contention in buildchroot Jan Kiszka
2018-02-11 16:55 ` Alexander Smirnov
2018-02-11 18:18   ` Jan Kiszka
2018-02-11 18:44     ` Alexander Smirnov
2018-02-12  7:42       ` Jan Kiszka
2018-02-14 15:02         ` Jan Kiszka
2018-02-14 17:57           ` Alexander Smirnov
2018-02-14 18:04             ` Jan Kiszka

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