From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.229.71 with SMTP id jh7cs488032icb; Tue, 11 Jan 2011 12:31:09 -0800 (PST) Received: by 10.229.235.142 with SMTP id kg14mr58404qcb.133.1294777869122; Tue, 11 Jan 2011 12:31:09 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id q12si53933346qcu.46.2011.01.11.12.31.08; Tue, 11 Jan 2011 12:31:09 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id A123919782DB; Tue, 11 Jan 2011 15:31:08 -0500 (EST) X-Greylist: delayed 325 seconds by postgrey-1.31 at rubyforge.org; Tue, 11 Jan 2011 15:25:48 EST Received: from ping.pong.ch (ping.pong.ch [77.109.141.101]) by rubyforge.org (Postfix) with ESMTP id 1AE2B1858354 for ; Tue, 11 Jan 2011 15:25:47 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by ping.pong.ch (Postfix) with ESMTP id 4C56140CB4C8 for ; Tue, 11 Jan 2011 21:20:17 +0100 (CET) Received: from ping.pong.ch ([127.0.0.1]) by localhost (ping.pong.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4cv8m45l4ZZk for ; Tue, 11 Jan 2011 21:20:16 +0100 (CET) Received: from auth sender gaudenz@ping.pong.ch by ping.pong.ch (Postfix) with ESMTPSA id 4170740CB4C7 for ; Tue, 11 Jan 2011 21:20:16 +0100 (CET) Received: by meteor.durcheinandertal.local (Postfix, from userid 1000) id 26202E020; Tue, 11 Jan 2011 21:20:17 +0100 (CET) From: Gaudenz Steinlin To: sup-devel In-reply-to: <1294772383-1585-1-git-send-email-sascha-pgp@silbe.org> References: <1294759313-653-1-git-send-email-sascha-pgp@silbe.org> <1294772383-1585-1-git-send-email-sascha-pgp@silbe.org> Date: Tue, 11 Jan 2011 21:20:12 +0100 Message-Id: <1294776647-sup-7357@meteor.durcheinandertal.local> User-Agent: Sup/git MIME-Version: 1.0 Subject: Re: [sup-devel] [PATCH v2] prefer gpg2 (GnuPG 2.x) over gpg (GnuPG 1.x) X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1654367800==" Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --===============1654367800== Content-Transfer-Encoding: 8bit Content-Type: multipart/signed; boundary="=-1294777217-100166-3301-5396-1-="; protocol="application/pgp-signature" --=-1294777217-100166-3301-5396-1-= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Excerpts from Sascha Silbe's message of Die Jan 11 19:59:43 +0100 2011: > Since 1.9.14 GnuPG can automatically start gpg-agent if it's not alread= y > running (using a well-known socket location). When using GnuPG 1.x gpg-= agent > needs to already be running at the time sup is started because the sock= et > location is random and passed via environment variables. > = > Autostarting gpg-agent is particularly convenient when using sup via ss= h > as gpg-agent would need to be started manually (for local X sessions OT= OH > it's often started automatically by distro scripts). AFAICS this change is not compatible with the rework of the GPG handling done in the gpgme branch. I was under the impression (from previous discussion on this list) that this branch is going to be merged soon (at least into next). Gaudenz > = > Signed-off-by: Sascha Silbe > --- > lib/sup/crypto.rb | 7 ++++--- > 1 files changed, 4 insertions(+), 3 deletions(-) > = > v1->v2: > fallback to gpg if gpg2 is not available > = > diff --git a/lib/sup/crypto.rb b/lib/sup/crypto.rb > index 537745d..16ebaf9 100644 > --- a/lib/sup/crypto.rb > +++ b/lib/sup/crypto.rb > @@ -25,9 +25,10 @@ EOS > def initialize > @mutex =3D Mutex.new > = > - bin =3D `which gpg`.chomp > - @cmd =3D case bin > - when /\S/ > + @cmd =3D if (bin =3D `which gpg2`.chomp) =3D~ /\S/ > + debug "crypto: detected gpg binary in #{bin}" > + "#{bin} --quiet --batch --no-verbose --logger-fd 1 --use-agent" > + elsif (bin =3D `which gpg`.chomp) =3D~ /\S/ > debug "crypto: detected gpg binary in #{bin}" > "#{bin} --quiet --batch --no-verbose --logger-fd 1 --use-agent" > else -- = Ever tried. Ever failed. No matter. Try again. Fail again. Fail better. ~ Samuel Beckett ~ --=-1294777217-100166-3301-5396-1-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEVAwUBTSy7fE0yN7tZsYcyAQjqSwf/XX5opkLQ5UM3gr034SkfKt7FQPz7NANo sNA/UEW8T/BZmk3oIbhHyrq3ljIPlMD1EgkisVJofyKgLawP/KnesszJId7Hww/V on5ocrwDWvBzCFBNW0uE/y0yN7V3iB8OHoYbtYkLZZPAUe3SIF1x5XNC6odLUUgE QTs8xLpIwAXtr5waiPIqxW6fX8w5P+imEh/25me5p7wrgGiIYLjjS33E8bGV2l3k 3L3gE33C9Gw6b+jo2b9YfiMazdnTsyzbkcd3KNYcqMuxd3UCowTNLQ6p3ZRRahQV yp2N3OcSOj7Qjw33bVYWrXcuFQecuwWEKm1X7gCxQa12RgsFtX4lLA== =CN2/ -----END PGP SIGNATURE----- --=-1294777217-100166-3301-5396-1-=-- --===============1654367800== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel --===============1654367800==--