guix: Delete duplicates from emacs-load-path.
authorLeo Prikler <leo.prikler@student.tugraz.at>
Mon, 28 Jun 2021 19:54:02 +0000 (21:54 +0200)
committerLeo Prikler <leo.prikler@student.tugraz.at>
Mon, 28 Jun 2021 19:59:02 +0000 (21:59 +0200)
It has been reported in IRC, that directories may show up multiple times in
subdirs.el, probably a result of propagation.  This can for instance be seen
by ‘guix environment --ad-hoc emacs emacs-guix’, which will generate multiple
references to dash.  With this patch only one reference per package is
generated.

* guix/profiles.scm (emacs-subdirs): wrap subdirs added to
‘normal-top-level-add-to-load-path’ in ‘delete-duplictes’.

guix/profiles.scm

index 8c02149..2486f91 100644 (file)
@@ -1150,7 +1150,7 @@ MANIFEST.  Single-file bundles are required by programs such as Git and Lynx."
                 (lambda (port)
                   (write
                    `(normal-top-level-add-to-load-path
-                     (list ,@subdirs))
+                     (list ,@(delete-duplicates subdirs)))
                    port)
                   (newline port)
                   #t)))))))