From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.229.71 with SMTP id jh7cs480211icb; Tue, 11 Jan 2011 07:28:00 -0800 (PST) Received: by 10.142.224.19 with SMTP id w19mr5093365wfg.374.1294759680292; Tue, 11 Jan 2011 07:28:00 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 14si934458vcx.12.2011.01.11.07.27.59; Tue, 11 Jan 2011 07:28:00 -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 8163F1858300; Tue, 11 Jan 2011 10:27:59 -0500 (EST) Received: from smtp.chost.de (setoy.chost.de [217.160.209.225]) by rubyforge.org (Postfix) with ESMTP id 921C51858321 for ; Tue, 11 Jan 2011 10:22:01 -0500 (EST) Received: (qmail 23268 invoked by uid 5015); 11 Jan 2011 15:22:06 -0000 Received: (nullmailer pid 29758 invoked by uid 8193); Tue, 11 Jan 2011 15:21:59 -0000 Received: (nullmailer pid 690 invoked by uid 8193); Tue, 11 Jan 2011 15:21:58 -0000 From: Sascha Silbe To: sup-devel Date: Tue, 11 Jan 2011 16:21:53 +0100 Message-Id: <1294759313-653-1-git-send-email-sascha-pgp@silbe.org> X-Mailer: git-send-email 1.7.2.3 Mail-Followup-To: Subject: [sup-devel] [PATCH] use gpg2 (GnuPG 2.x) instead of gpg (GnuPG 1.x) X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sascha Silbe , Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org Since 1.9.14 GnuPG can automatically start gpg-agent if it's not already 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 socket location is random and passed via environment variables. Autostarting gpg-agent is particularly convenient when using sup via ssh as gpg-agent would need to be started manually otherwise (for local X sessions OTOH it's often started automatically by distro scripts). Signed-off-by: Sascha Silbe --- lib/sup/crypto.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) If there's anyone who would like to stick to GnuPG 1.x (the only advantage is the smaller size of the binary), we might need to make this configurable (or overridable via the gpg-args hook). diff --git a/lib/sup/crypto.rb b/lib/sup/crypto.rb index 537745d..916f04c 100644 --- a/lib/sup/crypto.rb +++ b/lib/sup/crypto.rb @@ -25,7 +25,7 @@ EOS def initialize @mutex = Mutex.new - bin = `which gpg`.chomp + bin = `which gpg2`.chomp @cmd = case bin when /\S/ debug "crypto: detected gpg binary in #{bin}" -- 1.7.2.3 _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel