Subject: simple-cdd: Silently fails to start gpg with long paths
Date: Fri, 29 Mar 2019 10:30:19 +0100
Package: simple-cdd
Version: 0.6.5
Severity: normal
User: [email protected]
Usertags: origin-kali
When working within a long path, gpg-agent can't start and fails with an
explicity error message like the following:
gpg-agent: socket name '/path/to/super/long/and/deeply/buried/directory/.../S.gpg-agent.browser' is too long
However, within a simple-cdd context, that same error isn't captured and
simple-cdd fails without exposing the original cause of the problem:
DEBUG Checking configuration...
DEBUG Creating build environment in /localstore/ws/jenkinsbuild/sbxMainAsan/common/debian/install/simple-cdd...
ERROR GPG standard error: gpg: keybox '/localstore/ws/jenkinsbuild/sbxMainAsan/common/debian/install/simple-cdd/tmp/gpg-keyring/pubring.kbx' created
[...]
ERROR GPG standard error: gpg: can't connect to the agent: IPC connect call failed
[...]
ERROR GPG standard error:
ERROR Importing /usr/share/keyrings/debian-archive-keyring.gpg into /localstore/ws/jenkinsbuild/sbxMainAsan/common/debian/install/simple-cdd/tmp/gpg-keyring failed, gpg error code 2
It would be good if simple-cdd could notice that the gpg-agent didn't
start, and tell the user how it failed.
The issue can be worked around by forcing simple-cdd to use a different
GNUPGHOME: exporting the GNUPGHOME environment variable to something
shorter, and setting simple-cdd's user_gnugphome the same, seem to do
the trick.
Cheers,
--
Seb
-- System Information:
Debian Release: 9.8
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-3-amd64 (SMP w/36 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
Versions of packages simple-cdd depends on:
ii dctrl-tools 2.24-2+b1
ii debian-cd 3.1.20
ii lsb-release 9.20161125
ii python3 3.5.3-1
ii python3-simple-cdd 0.6.5
ii reprepro 5.1.1-1
ii rsync 3.1.2-1+deb9u1
ii wget 1.18-5+deb9u2
Versions of packages simple-cdd recommends:
ii dose-distcheck 5.0.1-8+deb9u1
Versions of packages simple-cdd suggests:
pn qemu-system | qemu-kvm <none>
-- no debconf information
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.