Hello, currently we use either 'emacs' or 'emacs-no-x' to build (byte-compile) emacs packages. What about making a really minimal emacs to use for this task?
Most of the times it should be enough. AFAICT the only case where a full-featured emacs is needed is auctex; and for this particular case, 'emacs-build-system' uses 'emacs'. Instead I suggest to use 'emacs-minimal' by default; and when a full 'emacs' will be needed, it can be specified in native-inputs. WDYT? Another change made by this patchset is moving all "emacs" inputs to 'native-inputs'. There is no point to use 'inputs' because this emacs is used only to make *.elc files and to generate autoloads; you will use emacs from your profile anyway. [PATCH 1/6] gnu: Add emacs-minimal. [PATCH 2/6] build-system/emacs: Use "emacs" from native-inputs if specified. [PATCH 3/6] build-system/emacs: Use 'emacs-minimal' as default emacs for building. [PATCH 4/6] gnu: emacs-auctex: Use 'emacs' for byte-compiling. [PATCH 5/6] gnu: Move emacs for building from inputs to native-inputs. [PATCH 6/6] gnu: Use 'emacs-minimal' instead of 'emacs-no-x'.
