Evolution is missing GPG

  • Open
  • quality assurance status badge
Details
2 participants
  • Jesse Gibbons
  • Leo Prikler
Owner
unassigned
Submitted by
Leo Prikler
Severity
normal
L
L
Leo Prikler wrote on 4 Dec 2019 13:11
(address . bug-guix@gnu.org)
51e3a6f2bca86b7ad6107ec921c54464f4f6a51e.camel@student.tugraz.at
Hi Guix,

I recently discovered, that Evolution would complain about a missing
GPG whenever it encounters a signed message. For the record, I've only
installed evolution-data-server in the operating-system and evolution
itself inside my user profile and not installed gpg in either place,
thus causing this issue. Would it make sense to make gpg an input to
evolution and hardcode the path in the source? Or would it perhaps be
better to have it as propagated input? WDYT?

Regards,
Leo
J
J
Jesse Gibbons wrote on 5 Dec 2019 17:53
36bd0ad85c26bdee2d5a957b1f067fa24f67f3e1.camel@gmail.com
On Wed, 2019-12-04 at 13:11 +0100, Leo Prikler wrote:
Toggle quote (16 lines)
> Hi Guix,
>
> I recently discovered, that Evolution would complain about a missing
> GPG whenever it encounters a signed message. For the record, I've only
> installed evolution-data-server in the operating-system and evolution
> itself inside my user profile and not installed gpg in either place,
> thus causing this issue. Would it make sense to make gpg an input to
> evolution and hardcode the path in the source? Or would it perhaps be
> better to have it as propagated input? WDYT?
>
> Regards,
> Leo
>
>
>
>
Guix complains that it cannot find gpg when I call "guix import gnu
<package>". But unless I'm using a function of guix that depends on gpg,
guix is not broken, so gpg is not an input or propagated input of guix. I
think we have the same situation here. Evolution is functional without GPG,
and handles itself fairly well when gpg is not found.

Try installing gpg locally and see if it stops complaining. If so, we have a
solution. If not, we should consider adding GPG as a propagated input to
Evolution.
L
L
Leo Prikler wrote on 5 Dec 2019 18:51
1412925405263531af01b81301e61d13891752d5.camel@student.tugraz.at
Am Donnerstag, den 05.12.2019, 09:53 -0700 schrieb Jesse Gibbons:
Toggle quote (37 lines)
> On Wed, 2019-12-04 at 13:11 +0100, Leo Prikler wrote:
> > Hi Guix,
> >
> > I recently discovered, that Evolution would complain about a
> > missing
> > GPG whenever it encounters a signed message. For the record, I've
> > only
> > installed evolution-data-server in the operating-system and
> > evolution
> > itself inside my user profile and not installed gpg in either
> > place,
> > thus causing this issue. Would it make sense to make gpg an input
> > to
> > evolution and hardcode the path in the source? Or would it perhaps
> > be
> > better to have it as propagated input? WDYT?
> >
> > Regards,
> > Leo
> >
> >
> >
> >
> Guix complains that it cannot find gpg when I call "guix import gnu
> <package>". But unless I'm using a function of guix that depends on
> gpg,
> guix is not broken, so gpg is not an input or propagated input of
> guix. I
> think we have the same situation here. Evolution is functional
> without GPG,
> and handles itself fairly well when gpg is not found.
>
> Try installing gpg locally and see if it stops complaining. If so, we
> have a
> solution. If not, we should consider adding GPG as a propagated input
> to
> Evolution.
That does fix the problem itself, but I personally believe there should
be a better way of handling "optional" inputs -- "optional" because in
at least some if not many cases, people would expect them to exist.
Guix' emacs has imagemagick as input for instance (even though it is
optional) and a separate emacs-minimal exists as the version without it
and other optional inputs. I think this pattern could be applied more
broadly.

Regards,
Leo
J
J
Jesse Gibbons wrote on 7 Dec 2019 17:45
40af8573548d06640a6d6b635fcba39657d854cd.camel@gmail.com
On Thu, 2019-12-05 at 18:51 +0100, Leo Prikler wrote:
Toggle quote (49 lines)
> Am Donnerstag, den 05.12.2019, 09:53 -0700 schrieb Jesse Gibbons:
> > On Wed, 2019-12-04 at 13:11 +0100, Leo Prikler wrote:
> > > Hi Guix,
> > >
> > > I recently discovered, that Evolution would complain about a
> > > missing
> > > GPG whenever it encounters a signed message. For the record, I've
> > > only
> > > installed evolution-data-server in the operating-system and
> > > evolution
> > > itself inside my user profile and not installed gpg in either
> > > place,
> > > thus causing this issue. Would it make sense to make gpg an input
> > > to
> > > evolution and hardcode the path in the source? Or would it perhaps
> > > be
> > > better to have it as propagated input? WDYT?
> > >
> > > Regards,
> > > Leo
> > >
> > >
> > >
> > >
> > Guix complains that it cannot find gpg when I call "guix import gnu
> > <package>". But unless I'm using a function of guix that depends on
> > gpg,
> > guix is not broken, so gpg is not an input or propagated input of
> > guix. I
> > think we have the same situation here. Evolution is functional
> > without GPG,
> > and handles itself fairly well when gpg is not found.
> >
> > Try installing gpg locally and see if it stops complaining. If so, we
> > have a
> > solution. If not, we should consider adding GPG as a propagated input
> > to
> > Evolution.
> That does fix the problem itself, but I personally believe there should
> be a better way of handling "optional" inputs -- "optional" because in
> at least some if not many cases, people would expect them to exist.
> Guix' emacs has imagemagick as input for instance (even though it is
> optional) and a separate emacs-minimal exists as the version without it
> and other optional inputs. I think this pattern could be applied more
> broadly.
>
> Regards,
> Leo
>
There are a lot of optional inputs to packages with minimal versions like
git and emacs, and a lot of them are used by guix itself for bootstrapping
and building other packages.

I see my logic was faulty. Some of the packages I contriubted list optional
inputs, and the people who committed them added comments saying we should
plan on packaging those optional inputs and adding them as inputs. Perhaps
your first suggestion, being to add gpg as an input or propagated input to
evolution, is indeed the best solution.

This brings us back to the original question, which approach is better? I am
not familiar enough with guix security features to make a proper conclusion,
but I can try anyway. I think adding gpg as a propagated input to evolution
is better because it garuntees evolution will use the most recent version of
gpg when gpg is updated. However, if a user uses gpg not exclusively for
evolution, but gets it by installing evolution, then when evolution is
removed the user will lose gnupg. Though that would be mostly the user's
problem, propagating inputs is a side-effect. On the other hand, if gnupg is
an input, when gnupg is updated and rebuilt, evolution must be rebuilt. I do
not know how guix determines if grafts should be applied, so I do not know
if grafting will prevent this issue.

I would like to see what the guix maintainers think before I make a patch,
but there's nothing stopping you from making such a simple patch and sending
it to this bug thread.
?