Bug#1119697: [make-all] Wrong error for missing schroot (and/or maybe something else)

Nicholas D Steeves sten at debian.org
Thu Oct 30 19:21:53 GMT 2025


Package: pkg-haskell-tools
Version: 0.12.5
Severity: normal
X-Debbugs-Cc: sten at debian.org

I've tested this on a trixie system as well as in a sid systemd-nspawn container.

Steps to reproduce:

1. Use sbuild-debian-developer-setup to set up schroot.
2. Make sure that a "default" schroot is defined.
3. Make sure that /tmp is bind-mounted in the schoot.
4. Run `dht make-all haskell-xml-conduit-writer` from inside DHG_packages, with package-plan in the same parent dir
5. Error (see below)

I tried --bindmount /home/sten/build-area and it failed the same way.  Like this:

    E: haskell: Chroot not found
    Inside the schroot haskell, the directory /tmp
    is not available. Please configure the schroot to bindmount this directory
    (e.g. in /etc/schroot/default/fstab), or choose a different directory using
    the --bindmount parameter.

    For best performance, choose a directory on a tmpfs file system or
    the same partition as --output (currently lab).
    Actually, the latter optimization is not yet implemented....

Of course the primary error was in the first line and was simply that my sid/unstable schroot didn't have a "haskell" alias.  The two arguably papercut bugs here are 1. It wasn't clear to me that a schroot named or aliased as "haskell" was required;  2. The error text relating to --bindmount should not be displayed.

Unfortunately it seems that some other condition is assumed, and I'm
stumped by another presumably misleading error (this BTS bug may need
to be cloned):

✓ lab/cache/binaries/haskell-vector-binary-instances.txt done
✓ lab/cache/built-by.txt done
✓ cache done
✓ lab/haskell-xml-conduit-writer_0.1.1.6-1_amd64.build done
✓ lab/haskell-xml-conduit-writer_0.1.1.6-1_amd64.changes done
✓ name done
make-all: Error when running Shake build system:
  at want, called at src/make-all.hs:368:44 in main:Main
* Depends on: haskell-xml-conduit-writer
  at need, called at src/Development/Shake/Fancy.hs:184:15 in main:Development.Shake.Fancy
* Depends on: lab/haskell-xml-conduit-writer_0.1.1.6-1_amd64.changes
  at need, called at src/Development/Shake/Fancy.hs:184:15 in main:Development.Shake.Fancy
* Depends on: lab/haskell-xml-conduit-writer_0.1.1.6-1_amd64.build
  at apply1, called at src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.19.7-4R2feMf91rjHDrwplDOpbk:Development.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (GetBinToDeb "libghc-xml-types-doc")
  at readFileLines, called at src/Development/Shake/Fancy.hs:174:15 in main:Development.Shake.Fancy
  at readFile', called at src/Development/Shake/Internal/Derived.hs:131:30 in shake-0.19.7-4R2feMf91rjHDrwplDOpbk:Development.Shake.Internal.Derived
  at need, called at src/Development/Shake/Internal/Derived.hs:118:15 in shake-0.19.7-4R2feMf91rjHDrwplDOpbk:Development.Shake.Internal.Derived
* Depends on: lab/cache/built-by.txt
  at readFileLines, called at src/Development/Shake/Fancy.hs:174:15 in main:Development.Shake.Fancy
  at readFile', called at src/Development/Shake/Internal/Derived.hs:131:30 in shake-0.19.7-4R2feMf91rjHDrwplDOpbk:Development.Shake.Internal.Derived
  at need, called at src/Development/Shake/Internal/Derived.hs:118:15 in shake-0.19.7-4R2feMf91rjHDrwplDOpbk:Development.Shake.Internal.Derived
* Depends on: lab/cache/binaries/haskell-vector-binary-instances.txt
* Raised the exception:
lab/cache/binaries/haskell-vector-binary-instances.txt: withFile: resource exhausted (Too many open files)

This makes no sense to me, because in every case:

    $ ulimit
    unlimited


Regards,
Nicholas


More information about the Pkg-haskell-maintainers mailing list