mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-18 21:55:22 -04:00
In autobuilder environments that deprive the build of capabilities, it is entirely possible that we have a system bwrap(1) but cannot run it, for example because CAP_SYS_ADMIN has been excluded from the capability bounding set. Tell the tests which bwrap we are going to run, so we can run it in a simpler way and see whether it works. Debian's sbuild autobuilder currently suffers from a different issue in which pivot_root(2) returns EINVAL, possibly caused by sbuild being chroot-based and so not having the mount point structure that is required for pivot_root. This avoids the problematic build-time tests there too; they work on ci.debian.net, which uses lxc instead of chroots, and in virtual machines. Because $(BWRAP) might be non-absolute, we need to search PATH for it. Signed-off-by: Simon McVittie <smcv@debian.org>