Debian Bug report logs - #925953
simple-cdd: Silently fails to start gpg with long paths

version graph

Package: simple-cdd; Maintainer for simple-cdd is Simple-CDD Developers <[email protected]>; Source for simple-cdd is src:simple-cdd (PTS, buildd, popcon).

Reported by: root <[email protected]>

Date: Fri, 29 Mar 2019 09:33:01 UTC

Severity: normal

Found in version simple-cdd/0.6.5

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Simple-CDD Developers <[email protected]>:
Bug#925953; Package simple-cdd. (Fri, 29 Mar 2019 09:33:03 GMT) (full text, mbox, link).


Acknowledgement sent to root <[email protected]>:
New Bug report received and forwarded. Copy sent to Simple-CDD Developers <[email protected]>. (Fri, 29 Mar 2019 09:33:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: root <[email protected]>
To: Debian Bug Tracking System <[email protected]>
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



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 16:35:24 2025; Machine Name: buxtehude

Debian Bug tracking system

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/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.