all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: emacs: Install site-start.el in non-versioned directory.
Date: Thu, 21 Jul 2016 20:28:06 +0300	[thread overview]
Message-ID: <87k2geyk7t.fsf@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 412 bytes --]

Ricardo tested Emacs 25 with this package definition:
<http://paste.lisp.org/display/320941> and noticed that it doesn't find
Emacs packages in ~/.guix-profile.

This happens because "site-start.el" in the inherited package is placed
"/share/emacs/24.5/site-lisp" directory (the version part is wrong).  To
avod this, we can put "site-start.el" into a non-versioned site-lisp
directory.  The patch is attached.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-emacs-Install-site-start.el-in-non-versioned-dir.patch --]
[-- Type: text/x-patch, Size: 1337 bytes --]

From 5907c4768bdba861e1c30b1cb5f0a73fe33f9600 Mon Sep 17 00:00:00 2001
From: Alex Kost <alezost@gmail.com>
Date: Thu, 21 Jul 2016 20:13:27 +0300
Subject: [PATCH] gnu: emacs: Install site-start.el in non-versioned directory.

Reported by Ricardo Wurmus on #guix.

* gnu/packages/emacs.scm (emacs)[arguments]: Put "site-start.el" in
"/share/emacs/site-lisp" instead of "/share/emacs/<version>/site-lisp"
to let inherited package with another version find it.
---
 gnu/packages/emacs.scm | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 3fcf121..eed64f4 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -125,9 +125,7 @@
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (let* ((guix-src (assoc-ref inputs "guix-src"))
                     (out      (assoc-ref outputs "out"))
-                    (lisp-dir (string-append out "/share/emacs/"
-                                             ,(version-major+minor version)
-                                             "/site-lisp"))
+                    (lisp-dir (string-append out "/share/emacs/site-lisp"))
                     (unpack   (assoc-ref %standard-phases 'unpack)))
                (mkdir "guix")
                (with-directory-excursion "guix"
-- 
2.8.3


             reply	other threads:[~2016-07-21 17:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-21 17:28 Alex Kost [this message]
2016-07-24  5:06 ` [PATCH] gnu: emacs: Install site-start.el in non-versioned directory Ricardo Wurmus
2016-07-24  6:16   ` Alex Kost
2016-07-25 14:24     ` Alex Kost

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=87k2geyk7t.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=guix-devel@gnu.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.
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.