unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: "Jorge P. de Morais Neto" <jorge+list@disroot.org>, help-guix@gnu.org
Subject: Re: Can I easily install GNU Emacs 27.1.50 via Guix?
Date: Thu, 10 Dec 2020 13:27:34 +0100	[thread overview]
Message-ID: <867dppj16x.fsf@gmail.com> (raw)
In-Reply-To: <87h7ov0vxl.fsf@disroot.org>

Hi,

On Wed, 09 Dec 2020 at 13:46, "Jorge P. de Morais Neto" <jorge+list@disroot.org> wrote:
> Hi.  For GNU Emacs I manually compile the latest code from the emacs-27
> branch (and install it with GNU Stow).  That's because I want the latest
> features and fixes, but I fear that the master branch could be
> unreliable when used together with certain external packages such as
> Notmuch.  When there's a pretest version of emacs-28, I intend to switch
> to it---before it is stable---but first I'll ask on the Notmuch mailing
> list.
>
> The problem with locally compiling Emacs is that it doesn't see
> Guix-installed Elisp packages.  I currently get packages from ELPA (GNU,
> Org, Melpa and Melpa-Stable) but the last two have ethical problems, so
> I would prefer to get my packages via Guix.  I haven't yet studied Guix
> packaging, however, so I need an easy solution.  So is it possible and
> easy to get Emacs 27.1.50 via Guix?

The easiest seems to use build transformations [1] and/or write your own
variant.  The package emacs-next provides 28 at exact version/commit
$(guix show emacs-next | recsel -P version) and using a Git checkout, so
you can try:

  guix build emacs-next --with-commit=emacs-next=<commit>

where <commit> is the commit you are interested in.  If it does not work
out-of-the-box, look “guix edit emacs-next” and then use it to adapt for
your use case.

Note that all the Emacs packages are “bytecompiled” with the Emacs 27 VM
provided by the package emacs-minimal (see guix/build-system/emacs.scm),
modulo some corner cases replacing the VM; for instance ’emacs-magit’
with ’emacs-no-x’.

Therefore, there is no guarantee that:

  guix install emacs-next emacs-foo emacs-bar

works.  It is high probable that it works because the Emacs bytecode
does not often change and generally they try hard to keep compatibility.
But who knows. :-)

It is not as easy to re-bytecompiled all the Emacs packages with another
VM because of these very corner cases.  Two work-in-progress attempts:

 - package parameters [2],
 - package-with-explicit-emacs, the story starts here [3], or scroll [4].


1:
<https://guix.gnu.org/manual/devel/en/guix.html#Package-Transformation-Options>
2: <https://yhetil.org/guix/87eeku8trb.fsf@gnu.org>
3: <https://yhetil.org/guix/868scwtt34.fsf@gmail.com>
4 : <http://issues.guix.gnu.org/issue/41732>


Hope that helps,
simon


      parent reply	other threads:[~2020-12-10 13:44 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-09 16:46 Can I easily install GNU Emacs 27.1.50 via Guix? Jorge P. de Morais Neto
2020-12-09 20:56 ` Pierre Neidhardt
2020-12-10 12:40   ` zimoun
2020-12-17 22:54     ` Jorge P. de Morais Neto
2020-12-17 22:59       ` Jorge P. de Morais Neto
2020-12-18  2:05       ` zimoun
2020-12-18  4:03         ` Carlo Zancanaro
2020-12-18  9:00           ` zimoun
2020-12-18  9:36             ` Carlo Zancanaro
2020-12-18 10:38               ` zimoun
2020-12-18 11:37                 ` Carlo Zancanaro
2020-12-18 13:59                   ` zimoun
2020-12-19  0:17                     ` Carlo Zancanaro
2020-12-18 10:44               ` Dr. Arne Babenhauserheide
2020-12-18 12:55                 ` Ricardo Wurmus
2020-12-18 14:05                   ` zimoun
2020-12-18 15:33                   ` Maxim Cournoyer
2020-12-18 15:09               ` Jorge P. de Morais Neto
2020-12-18 23:17                 ` Carlo Zancanaro
2020-12-18  9:50           ` Ricardo Wurmus
2020-12-10 12:27 ` zimoun [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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=867dppj16x.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=jorge+list@disroot.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).