Ludovic Courtès (2016-05-19 14:54 +0300) wrote: > Alex Kost <[email protected]> skribis: > >> * guix/build-system/emacs.scm (lower): Do not add "emacs" to >> build-inputs if it is already specified in the native-inputs. > > In theory, one could want to have Emacs both in ‘native-inputs’ (to > build .elc files, for instance) and in ‘inputs’ (for instance because > the program embeds a reference to the ‘emacs’ program.)
I don't see a problem here, if "emacs" should be added to inputs, it may just go there. Nothing prohibits it. > So I’m rather reluctant about this approach. > > Did you find packages where Emacs wrongfully appears twice in the > inputs? It might be best to fix those packages instead. Do you mean: appears both in "inputs" and "native-inputs"? If so, then no, there are no such packages. But I don't understand how this concerns. The purpose of this patch is to allow us to use a different "emacs" to build emacs packages. I would say this is the core patch of the whole patchset. I didn't like the fact that emacs-build-system uses a full-featured (and heavy on dependencies) "emacs" package, and I would like to use "emacs-minimal" instead. But for some rare cases (currently only for auctex), "emacs-minimal" (or "emacs-no-x") is not enough, so it should be substituted somehow. That's why I made this patch. -- Alex
