all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jesse Gibbons <jgibbons2357@gmail.com>
To: Leo Prikler <leo.prikler@student.tugraz.at>, 38491@debbugs.gnu.org
Subject: bug#38491: Evolution is missing GPG
Date: Sat, 07 Dec 2019 09:45:39 -0700	[thread overview]
Message-ID: <40af8573548d06640a6d6b635fcba39657d854cd.camel@gmail.com> (raw)
In-Reply-To: <1412925405263531af01b81301e61d13891752d5.camel@student.tugraz.at>

On Thu, 2019-12-05 at 18:51 +0100, Leo Prikler wrote:
> 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.

      reply	other threads:[~2019-12-08  3:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-04 12:11 bug#38491: Evolution is missing GPG Leo Prikler
2019-12-05 16:53 ` Jesse Gibbons
2019-12-05 17:51   ` Leo Prikler
2019-12-07 16:45     ` Jesse Gibbons [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40af8573548d06640a6d6b635fcba39657d854cd.camel@gmail.com \
    --to=jgibbons2357@gmail.com \
    --cc=38491@debbugs.gnu.org \
    --cc=leo.prikler@student.tugraz.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.