Subject: bug#69211: 30.0.50; Build failure after db5e84af202

From: john muhl <[email-masked]>
Date: Sat, 17 Feb 2024 12:21:07 -0600

Since db5e84af202 Emacs build fails on Debian 12 & Fedora 39 with:

  make extraclean
  git clean -dfx
  ./autogen.sh
  ./configure --without-native-compilation
  make

Error: error ("Eager macro-expansion failure: (void-variable gnus-not-ignore)")
  signal(error ("Eager macro-expansion failure: (void-variable gnus-not-ignore)"))
  error("Eager macro-expansion failure: %S" (void-variable gnus-not-ignore))
  internal-macroexpand-for-load((eval-when-compile (require 'mm-decode) (require 'mm-view)) nil)
  eval-buffer(#<buffer  *load*-457185> nil "/home/jm/src/emacs-0/lisp/url/url.el" nil t)
  load-with-code-conversion("/home/jm/src/emacs-0/lisp/url/url.el" "/home/jm/src/emacs-0/lisp/url/url.el" nil t)
  require(url)
  eval-buffer(#<buffer  *load*-825863> nil "/home/jm/src/emacs-0/lisp/net/browse-url.el" nil t)
  load-with-code-conversion("/home/jm/src/emacs-0/lisp/net/browse-url.el" "/home/jm/src/emacs-0/lisp/net/browse-url.el" nil t)
  require(browse-url)
  eval-buffer(#<buffer  *load*-774384> nil "/home/jm/src/emacs-0/lisp/emacs-lisp/package.el" nil t)
  load-with-code-conversion("/home/jm/src/emacs-0/lisp/emacs-lisp/package.el" "/home/jm/src/emacs-0/lisp/emacs-lisp/package.el" nil t)
  require(package)
  eval-buffer(#<buffer  *load*> nil "/home/jm/src/emacs-0/lisp/finder.el" nil t)
  load-with-code-conversion("/home/jm/src/emacs-0/lisp/finder.el" "/home/jm/src/emacs-0/lisp/finder.el" nil t)
  load("finder" nil t)
  command-line-1(("-l" "finder" "--eval" "(setq generated-finder-keywords-file (unmsys--file-name \"./finder-inf.el\"))" "-f" "finder-compile-keywords-make-dist" "." "./calc" "./calendar" "./cedet" "./cedet/ede" "./cedet/semantic" "./cedet/semantic/analyze" "./cedet/semantic/bovine" "./cedet/semantic/decorate" "./cedet/semantic/symref" "./cedet/semantic/wisent" "./cedet/srecode" "./emacs-lisp" "./emulation" "./erc" "./eshell" "./gnus" "./image" "./international" "./language" "./mail" "./mh-e" "./net" "./nxml" "./org" "./play" "./progmodes" "./textmodes" "./url" "./use-package" "./vc"))
  command-line()
  normal-top-level()
Eager macro-expansion failure: (void-variable gnus-not-ignore)
make[2]: *** [Makefile:167: finder-inf.el] Error 255
make[2]: *** Waiting for unfinished jobs....

In toplevel form:
org/org-element.el:68:11: Error: Eager macro-expansion failure: (void-variable gnus-not-ignore)
make[3]: *** [Makefile:335: org/org-element.elc] Error 1
make[3]: *** Waiting for unfinished jobs....

In toplevel form:
org/ox.el:82:11: Error: Eager macro-expansion failure: (void-variable gnus-not-ignore)
make[3]: *** [Makefile:335: org/ox.elc] Error 1

In toplevel form:
org/ox-texinfo.el:33:11: Error: Eager macro-expansion failure: (void-variable gnus-not-ignore)
make[3]: *** [Makefile:335: org/ox-texinfo.elc] Error 1
make[3]: Leaving directory '/home/jm/src/emacs-0/lisp'
make[2]: *** [Makefile:382: main-first] Error 2
  INFO     Scanning files for custom...30% 
  INFO     Scanning files for custom...41% 
  INFO     Scanning files for custom...53% 
  INFO     Scanning files for custom...67% 
  INFO     Scanning files for custom...82% 
  INFO     Scanning files for custom...92% 
  INFO     Scanning files for custom...100% 
  INFO     Scanning files for custom...done
  INFO     Generating ./cus-load.el...
  INFO     Generating ./cus-load.el...done
make[2]: Leaving directory '/home/jm/src/emacs-0/lisp'
make[1]: *** [Makefile:537: lisp] Error 2
make[1]: Leaving directory '/home/jm/src/emacs-0'
make[1]: Entering directory '/home/jm/src/emacs-0'
***
*** "make all" failed with exit status 2.
***
*** You could try to:
*** - run "make bootstrap", which might fix the problem
*** - run "make V=1", which displays the full commands invoked by make,
***   to further investigate the problem
***
make[1]: *** [Makefile:418: advice-on-failure] Error 2
make[1]: Leaving directory '/home/jm/src/emacs-0'
make: *** [Makefile:374: all] Error 2