You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by James McCoy <ja...@jamessan.com> on 2016/10/27 03:24:30 UTC

Re: svn not using gpg-agent

On Wed, Sep 28, 2016 at 06:18:04PM +0200, Michael Thayer wrote:
> Hello,

Hi!

> I suspect this is a user problem somewhere, but since I upgraded to Ubuntu
> 16.10 (Subversion 1.9.4 versus 1.9.3 in 16.04) svn has stopped using
> GPG-Agent and started using GNOME Keyring to store my password.

In Ubuntu 16.10, gnupg changed from the 1.4.x series to the 2.x series.
With that, gpg-agent now will start on-demand when needed, whereas with
the old gnupg it needed to be manually started.

Svn currently detects whether it can use gpg-agent by looking for the
UNIX socket that's used to communicate with the agent.  It finds this
either through the GPG_AGENT_INFO environment variable or looking for
~/.gnupg/S.gpg-agent socket.  It sounds like neither of those exist in
your setup.

$GPG_AGENT_INFO should be defined for your X session by
/etc/X11/Xsession.d/90gpg-agent, and there are also some hints in the
file about how to ensure the agent gets started.

While the above isn't a solution, hopefully it's enough information to
figure out where the disconnect is.

Cheers,
-- 
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB

Re: svn not using gpg-agent

Posted by Michael Thayer <mi...@oracle.com>.
Hello James,

Two years later...

27.10.2016 05:24, James McCoy wrote:
> On Wed, Sep 28, 2016 at 06:18:04PM +0200, Michael Thayer wrote:
>> I suspect this is a user problem somewhere, but since I upgraded to Ubuntu
>> 16.10 (Subversion 1.9.4 versus 1.9.3 in 16.04) svn has stopped using
>> GPG-Agent and started using GNOME Keyring to store my password.
> 
> In Ubuntu 16.10, gnupg changed from the 1.4.x series to the 2.x series.
> With that, gpg-agent now will start on-demand when needed, whereas with
> the old gnupg it needed to be manually started.
> 
> Svn currently detects whether it can use gpg-agent by looking for the
> UNIX socket that's used to communicate with the agent.  It finds this
> either through the GPG_AGENT_INFO environment variable or looking for
> ~/.gnupg/S.gpg-agent socket.  It sounds like neither of those exist in
> your setup.
> 
> $GPG_AGENT_INFO should be defined for your X session by
> /etc/X11/Xsession.d/90gpg-agent, and there are also some hints in the
> file about how to ensure the agent gets started.
> 
> While the above isn't a solution, hopefully it's enough information to
> figure out where the disconnect is.

Thank you!  It seems like that script isn't getting executed, possibly
due to the Wayland session.  If I source it manually things work again.

Regards
Michael
-- 
Michael Thayer | VirtualBox engineer
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | D-71384 Weinstadt

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstraße 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Nederland, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Jan Schultheiss, Val Maher