Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70811 - gpg-agent needed by kmail from kdepim 3.3.x
Summary: gpg-agent needed by kmail from kdepim 3.3.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal
Assignee: Daniel Black (RETIRED)
URL:
Whiteboard:
Keywords:
: 70889 (view as bug list)
Depends on:
Blocks: 76015
  Show dependency tree
 
Reported: 2004-11-11 09:23 UTC by Simone Gotti (RETIRED)
Modified: 2005-01-10 02:28 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gpg-agent ebuild derived from current gpg-1.9.10.ebuild (gpg-agent-1.9.10.ebuild,2.48 KB, text/plain)
2004-11-30 18:00 UTC, Christian Trefzer
Details
gpg-agent-1.9.13.ebuild (gpg-agent-1.9.13.ebuild,1.51 KB, text/plain)
2004-12-17 19:48 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simone Gotti (RETIRED) gentoo-dev 2004-11-11 09:23:11 UTC
Like talked with taviso on IRC I've noticed that kmail needs a gpg-agent running for decriptying mails or it will end with an error reported also from many people on the forums.

the minimum requirement and instructions can be found here:
http://kmail.kde.org/kmail-pgpmime-howto.html

But gpg-agent is provided by gpgme-1.9.x that is very insecure (and hardmasked) so was proposed to split out gpg-agent from it.

This is a reminder. when the gpg-agent ebuild it's ready and stable we can add it as kdepim RDEPEND.
Comment 1 Gregorio Guidi (RETIRED) gentoo-dev 2004-11-11 09:44:09 UTC
From what I know, gpg-agent is not a hard dependency for decrypting emails
and should not be in RDEPEND. Without it, kmail just pops up a message that
suggests using it to avoid typing the password all the times.

But I definitely agree that gnupg-1.9 should be SLOTTED or splitted to allow
using it side by side with the old /usr/bin/gpg.
Comment 2 Simone Gotti (RETIRED) gentoo-dev 2004-11-11 09:52:44 UTC
The problem is in the mail decryption, it won't work without it, while the encryption works.

You'll get this error when you receive an encrypted mail:

Encrypted message (decryption not possible)
Reason: Crypto plug-in "openpgp" could not decrypt the data.
Error: Bad passphrase


Encrypted data not shown.
Comment 3 Gregorio Guidi (RETIRED) gentoo-dev 2004-11-11 14:22:33 UTC
Ok, you are right. After doing some research, it seems that kde provides all 
the facilities to ask for the password without relying on gpg-agent, but those
facilities are not used at their best at the moment.
For instance, the function CryptPlugWrapper::decryptVerifyJob(), which would
ask for the passphrase, is never called, instead kmail calls CryptPlug::decryptAndCheckMessage(), which calls directly gpgme without 
setting any callback function to ask for the passphrase, and thus fails.

So gpg-agent being necessary could be considered a kde bug, and there's 
already one open:
http://bugs.kde.org/show_bug.cgi?id=92619
Comment 4 Simone Gotti (RETIRED) gentoo-dev 2004-11-11 16:12:57 UTC
Yes your analysis is right. I've taked a look at the code but it looks like all the "objecttreeparser" class is bases on the "old" CryptPlug instead of the "new" CryptPlugWrapper. (old and new are mine assumptions) Probably we should notify this on the bug report?
Comment 5 Gregorio Guidi (RETIRED) gentoo-dev 2004-11-12 01:49:35 UTC
I've commented on the kde bug, let's see how it goes.
Comment 6 Christian Trefzer 2004-11-30 18:00:56 UTC
Created attachment 45032 [details]
gpg-agent ebuild derived from current gpg-1.9.10.ebuild

This ebuild installs gpg-agent as required for current kmail-1.7.1 (from
kdepim-3.3.1) to decrypt messages. Following the other steps mentioned in the
kmail+pgpmime howto (http://kmail.kde.org/kmail-pgpmime-howto.html) the user
can achieve gpg-agent integration and gpgme will get the required passphrase.
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2004-12-17 19:48:46 UTC
Created attachment 46249 [details]
gpg-agent-1.9.13.ebuild

Seems like gpg-1.9 has an interesting configure option, --enable-agent-only
which makes it compile only the agent, avoiding the high security risk implied
by 1.9 version.
The attached ebuild make use of it, and also bumps to the last version of
gnupg-1.9. See bug #74630 for a bump of also gnupg itself with blocks between
gpg-agent and gnupg-1.9, and also slotted support.
This can simply take the place of newpg and make kmail work as it should.
Comment 8 Daniel Black (RETIRED) gentoo-dev 2005-01-01 21:36:09 UTC
Mike - hows this for a solution to the gpg-agent?
Comment 9 SpanKY gentoo-dev 2005-01-01 21:42:51 UTC
that's cool, i like that :)
Comment 10 Daniel Black (RETIRED) gentoo-dev 2005-01-01 23:05:35 UTC
gpg-agent-1.9.14.ebuild added.  Hope it works for you.
Comment 11 Daniel Black (RETIRED) gentoo-dev 2005-01-01 23:07:33 UTC
*** Bug 70889 has been marked as a duplicate of this bug. ***
Comment 12 Jeremy Kitchen 2005-01-03 09:12:24 UTC
should block newpg builds (yes, I still have newpg installed :)

-Jeremy
Comment 13 Daniel Black (RETIRED) gentoo-dev 2005-01-03 12:53:06 UTC
newpg isn't in the gentoo tree anymore so I can't block something that doesn't officially exist.

I do plan on putting a disable-gpg-agent in the gnupg-1.9* so they don't block each other.
Comment 14 Daniel Black (RETIRED) gentoo-dev 2005-01-10 02:28:21 UTC
gnu-pg-1.9* has gpg-agent removed. 

Documentation enhancements to (http://www.gentoo.org/doc/en/gnupg-user.xml) welcome. Please :-)