gnu: emacs: Delete the subdirs.el file under the site-lisp directory.

This fixes bug #38533 (see: https://bugs.gnu.org/38533).

* gnu/packages/emacs.scm (emacs)[phases]{install-site-start}: Delete the
subdirs.el file.

Reported-by:  Diego Nicola Barbato <dnbarbato@posteo.de>
This commit is contained in:
Maxim Cournoyer 2019-12-09 12:45:00 +09:00
parent 9beec2173f
commit a7a492899a
No known key found for this signature in database
GPG Key ID: 1260E46482E63562

View File

@ -143,6 +143,11 @@
(display
(string-append "(when (require 'guix-emacs nil t)\n"
" (guix-emacs-autoload-packages))\n"))))
;; Remove the extraneous subdirs.el file, as it causes Emacs to
;; add recursively all the the sub-directories of a profile's
;; share/emacs/site-lisp union when added to EMACSLOADPATH,
;; which leads to conflicts.
(delete-file (string-append lisp-dir "/subdirs.el"))
#t))))))
(inputs
`(("gnutls" ,gnutls)