4, 5 and 6 are leaking.

[...]

Because mmdebstrap assumes that it is not called with unrelated open file descriptors.

ok, I understand now.

$unshare_bind_mounts = [ { directory => "/dev/shm", mountpoint => "/sharedshm" } ];

Can you give some reasoning why you want to do that?

the current code of dht (with the schroot) create a fix script 'cfixup' on the host and a repository.

fixupScript ∷ [String] → String
fixupScript pkgs = unlines $
   [ "#!/bin/bash"
-- I disable locking in the schroot. I have /var/cache/apt/archives bind-mounted
   -- via /etc/schroot/default/fstab, so with locking, I could not run
   -- multiple sbuilds at the same time
, "echo 'Debug::NoLocking \"true\";' > /etc/apt/apt.conf.d/no-locking"
   ] ++ ignoreArchiveDepends pkgs

ignoreArchiveDepends ∷ [String] → [String]
ignoreArchiveDepends [] = []
ignoreArchiveDepends pkgs =
   [ "#!/bin/bash"
, "apt-get install dctrl-tools" -- Just in case it is not installed in the base schroot
   , "for f in /var/lib/apt/lists/*_Packages"
   , "do"
, "grep-dctrl -v -F Package -X \\( " ++ disj ++ " \\) < \"$f\" > \"$f\".tmp"
   , "mv \"$f\".tmp \"$f\""
   , "done"
   ]
 where disj = intercalate " -o " pkgs

Oof, I am not sure I fully understand what is going on here but I would recommend to do it differently. Are you aware that you can pass a directory to sbuild --extra-package and sbuild will create a repository on the fly? I use it together with sbuild --build-dir to do bigger rebuilds. I assume make-all is trying to do something similar, so maybe those commands could be used instead?

do you have dedicated script in order to rebuild a bunch of packages ?

When it use extra-packages, it seems to me that sbuild start by doing a copy of all the .deb. This script rebuild hundreds of haskell packages and it seems more efficient to only create de local repository running dpkg-scanpackages and provide it via a bind mount.

also multiple build occure in same time...

the ignoreArchiveDepends is a bit more criptic also for me :). I am investigating for now...


Cheers

Fred

Reply via email to