Subject: 29.1; make sanity-check fails

From: Ulrich Mueller <[email-masked]>
Date: Tue, 24 Oct 2023 08:24:13 +0200

Forwarding downstream bug https://bugs.gentoo.org/916180:

Building Emacs aborts with:
"make all" succeeded, but Emacs is not functional.

Adding the --quick option fixes it (and may indicate that the user's
installed packages must be updated for Emacs 29). In either case, local
add-ons and configuration shouldn't break the build of Emacs itself.

I propose the trivial patch below, preferably for the emacs-29 branch.

>From 7d7cffda86cf85e8f8dd5635ac03671787f553da Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <[email-masked]>
Date: Tue, 24 Oct 2023 07:53:17 +0200
Subject: [PATCH] * Makefile.in (sanity-check): Add --quick option.

---
 Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 0ab34c8be6a..49c57db1cd3 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -417,7 +417,7 @@ advice-on-failure:
 
 sanity-check:
 	@[ -f .no-advice-on-failure ] && exit 0; true
-	@v=$$(src/emacs${EXEEXT} --batch --eval \
+	@v=$$(src/emacs${EXEEXT} --batch --quick --eval \
 	  '(progn (defun f (n) (if (= 0 n) 1 (* n (f (- n 1))))) (princ (f 10)))' \
 	  2> /dev/null); \
 	[ "X$$v" = "X3628800" ] && exit 0; \
-- 
2.42.0