Your message dated Wed, 24 Aug 2016 11:50:31 +0000
with message-id <[email protected]>
and subject line Bug#834898: fixed in sbuild 0.71.0-1
has caused the Debian Bug report #834898,
regarding sbuild: with gpg2, sbuild-update --keygen prompts the user for a 
passphrase
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
834898: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=834898
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sbuild
Version: 0.70.0-1
Severity: normal
Tags: patch

Dear maintainers,

With gnupg 2.1, which will soon be the default in unstable,
`sbuild-update --keygen` prompts the user for a passphrase for the
generated keys.  This is confusing, and will probably break things if
the user actually enters a passphrase.

The attached patch fixes the problem.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: i386 (i686)

Kernel: Linux 4.5.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sbuild depends on:
ii  adduser         3.115
ii  apt-utils       1.3~pre2
ii  gnupg           2.1.14-2
ii  libsbuild-perl  0.70.0-1
ii  perl            5.22.2-3

Versions of packages sbuild recommends:
ii  debootstrap  1.0.81
ii  fakeroot     1.21-1

Versions of packages sbuild suggests:
pn  deborphan  <none>
ii  wget       1.18-2

-- no debconf information

-- 
Sean Whitton
From dd166466e75015a0ebc39f6a0533c98649a7a504 Mon Sep 17 00:00:00 2001
From: Sean Whitton <[email protected]>
Date: Fri, 5 Aug 2016 13:14:52 -0700
Subject: [PATCH] don't prompt the user during --keygen

---
 debian/control            | 3 ++-
 lib/Sbuild/ChrootSetup.pm | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 98f061f..40b8b61 100644
--- a/debian/control
+++ b/debian/control
@@ -56,7 +56,8 @@ Depends: adduser,
          libsbuild-perl (= ${source:Version}),
          ${misc:Depends},
          ${perl:Depends},
-         ${shlibs:Depends}
+         ${shlibs:Depends},
+         gnupg (>= 2)
 Recommends: debootstrap, fakeroot
 Suggests: deborphan, wget
 Description: Tool for building Debian binary packages from Debian sources
diff --git a/lib/Sbuild/ChrootSetup.pm b/lib/Sbuild/ChrootSetup.pm
index d45ef68..53dd75b 100644
--- a/lib/Sbuild/ChrootSetup.pm
+++ b/lib/Sbuild/ChrootSetup.pm
@@ -274,7 +274,7 @@ EOF
 	return $?
     }
 
-    my @command = ('gpg', '--no-options', '--no-default-keyring', '--batch', '--gen-key',
+    my @command = ('gpg', '--no-options', '--pinentry-mode', 'loopback', '--passphrase-file', '/dev/null', '--no-default-keyring', '--batch', '--gen-key',
                    $tmpfilename);
     $host->run_command(
         { COMMAND => \@command,
-- 
2.8.1

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: sbuild
Source-Version: 0.71.0-1

We believe that the bug you reported is fixed in the latest version of
sbuild, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Johannes Schauer <[email protected]> (supplier of updated sbuild package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 24 Aug 2016 13:42:26 +0200
Source: sbuild
Binary: libsbuild-perl sbuild buildd
Architecture: source
Version: 0.71.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian buildd-tools Developers 
<[email protected]>
Changed-By: Johannes Schauer <[email protected]>
Description:
 buildd     - Daemon for automatically building Debian binary packages from Deb
 libsbuild-perl - Tool for building Debian binary packages from Debian sources
 sbuild     - Tool for building Debian binary packages from Debian sources
Closes: 827315 833285 833286 833390 833547 833549 833552 834330 834497 834515 
834704 834898
Changes:
 sbuild (0.71.0-1) unstable; urgency=medium
 .
   * add autopkgtest to Suggests
   * Undo exporting private keys in armored ASCII format as introduced by the
     last release. It turns out, that this is not necessary to support gpg
     cross-version compatibility. This should fix problems with gpg 2.x as well
     as chroots not having gpg installed as apt stopped depending on it.
     (closes: #827315, #834898)
   * Undo the SUITE-VARIANT syntax of sbuild-createchroot as introduced by the
     last release. It turns out that overloading the suite name argument with a
     variant name was a bad idea because there exist distributions with a minus
     in its name. Variant names can now be specified using the --chroot-prefix
     option which works analogous to the --chroot-suffix option. (closes:
     #834515)
   * Add percent escape support to piuparts, autopkgtest and adt-virt options.
     (closes: #833285, #833286)
   * Add sbuild-destroychroot.
   * Allow running autopkgtest when sbuild downloads the .dsc (closes: #833549)
   * Run apt-cache without --only-source (closes: #834704)
   * Avoid dropping extra repositories before using them (closes: #834497)
   * lib/Sbuild/ResolverBase.pm: Fix copypaste error s/public/private/ (closes:
     #834330)
   * lib/Sbuild/ChrootSetup.pm: don't prompt the user during --keygen (closes:
     #833547)
   * Add an option to not prefix piuparts and autopkgtest with anything at all
     (closes: #833390)
   * lib/Sbuild/Build.pm: add red/green coloring to log when piuparts or
     autopkgtest succeed/fail (closes: #833552)
Checksums-Sha1:
 036f44a4263a0ffe0cd0a3b417885e6c2e49aa85 2359 sbuild_0.71.0-1.dsc
 3fd94b836f2726199cbb8fbb54e3d5ba91f88b3e 635520 sbuild_0.71.0.orig.tar.gz
 f9272abf45192982e1f9b27bd0644129f7e06733 54760 sbuild_0.71.0-1.debian.tar.xz
Checksums-Sha256:
 6636eec05e39646abca30e33012339630efd021ae00dd696b562f1816b8f00ec 2359 
sbuild_0.71.0-1.dsc
 7001e7ecb731be012757b1be96813249448b944fe820dcd14d4fd68db05dd874 635520 
sbuild_0.71.0.orig.tar.gz
 a8982f193277792d0bdae0287212cf5c88ed71152a907d0e647323e1c3f9a1b1 54760 
sbuild_0.71.0-1.debian.tar.xz
Files:
 a64281c4d8e1c9ee606997f305126289 2359 devel extra sbuild_0.71.0-1.dsc
 0ba688ac2aea3f64509a94e6c7119476 635520 devel extra sbuild_0.71.0.orig.tar.gz
 9ae3426cf9c5d0bc3e513a15a83f8ae6 54760 devel extra 
sbuild_0.71.0-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIuBAEBCAAYBQJXvYh/ERxqb3NjaEBkZWJpYW4ub3JnAAoJEPLLpcePvYPhrCsP
/3DvnC67gc8YbfKb5K+1SMS/uaUJgd0JjDy2qykJTC3iFc+c8DyLFNXXl8BkEa7u
gUUh4hQ8omqnOwPvjl4/7U/cDcqVpjvgE3MsgJxytvDB945wG1TjbMuWZkx1d3tj
SkWlvnaWbWusVyzUrYELVZpMCbcxESKubO/IHixoNdQG1CkgxkoZmtuuEgMMSJx+
0QTNEjgBSbECXbXdGygTIaM/cXTyXcN7GY2dfDgtuHN+Q8vO1cAYKPAmeLU2ViEb
XxeuU/Uxlqdx/sC/Tlpz8Z+TEw//lW7Wq/UvsyUT2UPXjrqSwi+4Da11f1YwoH1p
kisCQkmi9ZP2octR5XOLRI2iAVE9O81U1Vdk7yPEyWuyOBQhTlXrVNpwQmrskT4F
/D5eoGUMHtvWiIwzr9OZgDufEbBMDnN1/kRYvdJ1bo3Q6Mu0JdkW82aE/RZYo5ng
6f4CUgAx/7cDLehCPTm8mX3CVANl47Ox8uoL8lSyc2eVejf3MBu/3o8DF3aHDyJr
pIN417DT/c+Hfvi7/maGt30ty+1h7UYD8x9XzctmdEeYoEHg4iiEfl7i7HHSYc+V
vdiAefiMHVtfUtYeM2rsJjz8mS7RtnfPZkwxB3hFU3ud08dodpA7T1Wm4sBkvHCH
OnFtFMBtuX8rR9KKjUcPB1P0LlxX1p3lh/pNV4CV0php
=4NRL
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to