Makeinfo versions < 6.7 detected mistakes in the @menu structure of TeXinfo input. Makeinfo versions ≥ 6.8 don't do this any more by default. They need an extra option, for this validation to happen. See <https://lists.gnu.org/archive/html/bug-texinfo/2023-06/msg00015.html>.
Since doc/gzip.texi has a hand-written @menu, it should use this extra option. Here's a patch to that effect. There are two possibilities for adding the extra option: - in the MAKEINFO variable, where it has an effect on both "makeinfo" and "makeinfo --html", - in the AM_MAKEINFOFLAGS variable, where it has an effect on "makeinfo" only. Since some maintainers may check their documentation edits only by regenerating the HTML-formatted documentation, the first choice is preferrable. Tested by running touch doc/gzip.texi ; (cd doc && make gzip.info V=1) and make sc_makefile_at_at_check
From 3883e797bf792736f86a6548694aee28330d5777 Mon Sep 17 00:00:00 2001 From: Bruno Haible <br...@clisp.org> Date: Fri, 23 Jun 2023 00:57:21 +0200 Subject: [PATCH] =?UTF-8?q?build:=20Ensure=20that=20makeinfo=20=E2=89=A5?= =?UTF-8?q?=206.8=20checks=20the=20@menu=20structure.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See <https://lists.gnu.org/archive/html/bug-texinfo/2023-06/msg00015.html>. * doc/Makefile.am (MAKEINFO): New variable. * cfg.mk (_makefile_at_at_check_exceptions): New variable. --- cfg.mk | 3 +++ doc/Makefile.am | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/cfg.mk b/cfg.mk index 7b27a2a..49da6a8 100644 --- a/cfg.mk +++ b/cfg.mk @@ -103,3 +103,6 @@ export _gl_TS_unmarked_extern_vars = \ match_start prev_length max_chain_length good_match nice_match _gl_TS_extern = (?:_Noreturn )?extern + +# Add an exemption for sc_makefile_at_at_check. +_makefile_at_at_check_exceptions = ' && !/MAKEINFO/' diff --git a/doc/Makefile.am b/doc/Makefile.am index 608e120..daf9cd3 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -17,6 +17,11 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. + +# The customization variable CHECK_NORMAL_MENU_STRUCTURE is necessary with +# makeinfo versions ≥ 6.8. +MAKEINFO = @MAKEINFO@ -c CHECK_NORMAL_MENU_STRUCTURE=1 + info_TEXINFOS = gzip.texi gzip_TEXINFOS = fdl.texi -- 2.34.1