Build fails if `config/chroot_local-packages` contains packages
I tried this once with the packages I built for VeraCrypt (#15521), and then again with an existing Debian package (https://packages.debian.org/stretch/amd64/vim/download). In both cases the build fails with:
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...
intrigeri, do you have any idea what's the issue here
No, sorry :/
or where I should start investigating?
You could find a way to run live-build in debug mode to get more details but at first glance:
It may be that our live-build 2.x fork does not support GnuPG 2.x. I believe what breaks is the key generation in
scripts/build/lb_chroot_sources and then
cp chroot/root/local-package-keyring.* cache/. I would look at how this code looks like in current live-build versions: perhaps there are some fixes for GnuPG 2.x (or some other Stretch change) that we could backport to our live-build 2.x fork.