Putting a package into config/chroot_local-packages makes the build fail
Starting from the stable branch, if I drop a package into config/chroot_local-packages
, then the build fails:
teythoon@europ /var/tmp/tails (git)-[justus/workwork] % wget -O config/chroot_local-packages/hello_2.10-2_amd64.deb http://ftp.de.debian.org/debian/pool/main/h/hello/hello_2.10-2_amd64.deb
...
teythoon@europ /var/tmp/tails (git)-[justus/workwork] % git add config/chroot_local-packages/hello_2.10-2_amd64.deb
teythoon@europ /var/tmp/tails (git)-[justus/workwork] % git commit -m 'add hello package'
[justus/workwork 595eeffc82] add hello package
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 config/chroot_local-packages/hello_2.10-2_amd64.deb
teythoon@europ /var/tmp/tails (git)-[justus/workwork] % rake build && rake vm:halt
[...]
I: Base system installed successfully.
P: Begin caching bootstrap stage...
P: Begin unmounting filesystems...
P: Setting up cleanup function
P: Begin caching chroot stage...
P: Begin mounting /dev/pts...
P: Begin mounting /proc...
P: Begin mounting /sys...
P: Configuring file /etc/debian_chroot
P: Configuring file /sbin/start-stop-daemon
P: Configuring file /usr/sbin/policy-rc.d
P: Configuring file /usr/sbin/initctl
P: Configuring file /etc/hosts
P: Configuring file /etc/resolv.conf
P: Configuring file /etc/hostname
P: Configuring file /bin/hostname
P: Configuring file /etc/apt/apt.conf
P: Configuring file /etc/apt/sources.list
gpg: WARNING: unsafe permissions on homedir '/root/.gnupg'
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: agent_genkey failed: Inappropriate ioctl for device
gpg: key generation failed: Inappropriate ioctl for device
cp: cannot create regular file 'cache/': Not a directory
P: Begin unmounting filesystems...
real 0m26.136s
user 0m25.437s
sys 0m4.503s
+ kill -9 10937
+ cleanup
+ [ -n /tmp/tails-build.8T9eJjK5 ]
+ cd /
+ remove_build_dirs
+ old_build_dirs
+ tac
+ mount
+ perl -ni -E say $mountpoint if (($mountpoint) = ($_ =~ m{^(?:tmpfs|devpts-live|proc-live|sysfs-live) on (/tmp/tails-build(?:-tmpfs)?\.[/[:alnum:]]+)}))
-i used with no filenames on the command line, reading from STDIN.
+ tries=0
+ sudo lsof
+ grep --fixed-strings /tmp/tails-build.8T9eJjK5
gpg-agent 32614 root cwd DIR 0,41 440 16277 /tmp/tails-build.8T9eJjK5/chroot
gpg-agent 32614 root rtd DIR 0,41 440 16277 /tmp/tails-build.8T9eJjK5/chroot
gpg-agent 32614 root txt REG 0,41 406256 35217 /tmp/tails-build.8T9eJjK5/chroot/usr/bin/gpg-agent
gpg-agent 32614 root mem REG 0,41 1824496 27117 /tmp/tails-build.8T9eJjK5/chroot/lib/x86_64-linux-gnu/libc-2.28.so
gpg-agent 32614 root mem REG 0,41 146968 27131 /tmp/tails-build.8T9eJjK5/chroot/lib/x86_64-linux-gnu/libpthread-2.28.so
gpg-agent 32614 root mem REG 0,41 18816 36404 /tmp/tails-build.8T9eJjK5/chroot/usr/lib/x86_64-linux-gnu/libnpth.so.0.1.2
gpg-agent 32614 root mem REG 0,41 137424 27649 /tmp/tails-build.8T9eJjK5/chroot/lib/x86_64-linux-gnu/libgpg-error.so.0.26.1
gpg-agent 32614 root mem REG 0,41 84120 35956 /tmp/tails-build.8T9eJjK5/chroot/usr/lib/x86_64-linux-gnu/libassuan.so.0.8.2
gpg-agent 32614 root mem REG 0,41 1168056 27575 /tmp/tails-build.8T9eJjK5/chroot/lib/x86_64-linux-gnu/libgcrypt.so.20.2.4
gpg-agent 32614 root mem REG 0,41 165632 27113 /tmp/tails-build.8T9eJjK5/chroot/lib/x86_64-linux-gnu/ld-2.28.so
gpg-agent 32614 root 0r CHR 1,3 0t0 23757 /tmp/tails-build.8T9eJjK5/chroot/dev/null
gpg-agent 32614 root 1w CHR 1,3 0t0 23757 /tmp/tails-build.8T9eJjK5/chroot/dev/null
gpg-agent 32614 root 2w CHR 1,3 0t0 23757 /tmp/tails-build.8T9eJjK5/chroot/dev/null
+ sudo umount -f --verbose /tmp/tails-build.8T9eJjK5
umount: /tmp/tails-build.8T9eJjK5: target is busy.
+ [ 0 -lt 12 ]
+ sudo fuser --ismountpoint --mount /tmp/tails-build.8T9eJjK5 --kill
/tmp/tails-build.8T9eJjK5: 32614rce
+ sleep 5
+ tries=1
+ sudo umount -f --verbose /tmp/tails-build.8T9eJjK5
umount: /tmp/tails-build.8T9eJjK5 (tmpfs) unmounted
+ sudo rm -rf /tmp/tails-build.8T9eJjK5
+ sudo rm -rf /tmp/tails-build.8T9eJjK5
No build artifacts were found!
rake build 6.08s user 0.74s system 7% cpu 1:37.03 total
==> default: Domain is not created. Please run `vagrant up` first.
If I revert the commit adding the package, the build works again. In working builds, I don't see the messages from GnuPG at that point in the build.