Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Thu, 18 Aug 2022 22:25:44
Message-Id: 1660861483.424bd8ae7cbb3ce55e0567e8c9057d8d23c6cb57.ulm@gentoo
1 commit: 424bd8ae7cbb3ce55e0567e8c9057d8d23c6cb57
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 18 19:18:20 2022 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 18 22:24:43 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=424bd8ae
7
8 elisp-common.eclass: fix for Emacs 29 (explicitly require autoload)
9
10 Emacs 29's NEWS says: "The autoload.el library is now obsolete."
11
12 We should therefore explicitly 'require it in order to have the
13 eclass machinery work.
14
15 Fix build failures with e.g. exec-path-from-shell, flycheck:
16 ```
17 * Generating autoload file for GNU Emacs ...
18
19 Error: void-function (batch-update-autoloads)
20 debug-early-backtrace()
21 debug-early(error (void-function batch-update-autoloads))
22 batch-update-autoloads()
23 command-line-1(("--eval" "(setq make-backup-files nil)" "--eval" "(setq generated-autoload-file (expand-file-name \"exec-path-from-shell-autoloads.el\"))" "-f" "batch-update-autoloads" "."))
24 command-line()
25 normal-top-level()
26 Symbol’s function definition is void: batch-update-autoloads
27 * elisp-make-autoload-file: batch-update-autoloads failed
28 [ !! ]
29 * ERROR: app-emacs/exec-path-from-shell-1.12::gentoo failed (compile phase):
30 * (no error message)
31 ```
32
33 See https://www.mail-archive.com/freebsd-pkg-fallout <AT> freebsd.org/msg1982134.html
34 and https://lists.gnu.org/archive/html/bug-gnu-emacs/2022-08/msg01259.html.
35
36 Thanks-to: John Turner <jturner.usa+gentoo <AT> gmail.com>
37 Signed-off-by: Sam James <sam <AT> gentoo.org>
38 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
39
40 eclass/elisp-common.eclass | 1 +
41 1 file changed, 1 insertion(+)
42
43 diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
44 index 47c8132192ca..2715c26c91a8 100644
45 --- a/eclass/elisp-common.eclass
46 +++ b/eclass/elisp-common.eclass
47 @@ -329,6 +329,7 @@ elisp-make-autoload-file() {
48 EOF
49
50 ${EMACS} ${EMACSFLAGS} \
51 + --eval "(require 'autoload)" \
52 --eval "(setq make-backup-files nil)" \
53 --eval "(setq generated-autoload-file (expand-file-name \"${f}\"))" \
54 -f batch-update-autoloads "${@-.}"