Subject: Re: bug#68464: 30.0.50; autogen.sh creating modified files in build-aux with Autoconf 2.72

From: Pierre Téchoueyres <[email-masked]>
Date: Mon, 15 Jan 2024 21:40:34 +0100

Le lundi 15 janv. 2024 à 15:01, Eli Zaretskii <[email-masked]> a écrit :

> tags 68464 notabug wontfix
> thanks
>
>> From: Gerd Möllmann <[email-masked]>
>> Date: Mon, 15 Jan 2024 07:33:53 +0100
>> 
>> Don't know if this is something that should be fixed.
>> 
>> In master,
>> 
>>   git clean -xdf
>>   ./autogen.sh
>> 
>> creates a number of modified files in build-aux
>> 
>>   git status
>> 
>>   On branch master
>>   Your branch is up to date with 'origin/master'.
>> 
>>   Changes not staged for commit:
>>     (use "git add <file>..." to update what will be committed)
>>     (use "git restore <file>..." to discard changes in working directory)
>>           modified:   build-aux/config.guess
>>           modified:   build-aux/config.sub
>>           modified:   build-aux/install-sh
>>           modified:   exec/config.guess
>>           modified:   exec/config.sub
>>           modified:   exec/install-sh
>> 
>> This is on macOS 14.2.1 (23C71), with
>> 
>>   brew info autoconf
>>   ==> autoconf: stable 2.72 (bottled)
>>   Automatic configure script builder
>>   https://www.gnu.org/software/autoconf
>>   /usr/local/Cellar/autoconf/2.72 (71 files, 3.6MB) *
>>     Poured from bottle using the formulae.brew.sh API on 2024-01-04 at 21:35:37
>>   
>>   brew info automake
>>   ==> automake: stable 1.16.5 (bottled)
>> 
>> So it looks like I got a new Autconf recently.
>
> This is a known issue with Autoconf 2.71 and later, see
>
>   https://lists.gnu.org/archive/html/emacs-devel/2021-05/msg00130.html
>   https://lists.gnu.org/archive/html/emacs-devel/2021-05/msg00187.html
>
> My only recommendation is to downgrade back to an older version of
> Autoconf.  I'm a happy user of 2.69.
>

For the two files (build-aux/config.guess, build-aux/config.sub) this is
triggered by the timestamp in those files that is older than the release
of autoconf 2.71. May you consider applying the attached patch which
fixes it (based on emacs-29) ?

It also fixes two copyright years and an typo

>From cafc965537b2d9cd2a2d2805b268026a309cfb38 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pierre=20T=C3=A9choueyres?= <[email-masked]>
Date: Mon, 15 Jan 2024 21:27:13 +0100
Subject: [PATCH] Fix build-aux/config.guess build-aux/config.sub

---
 build-aux/config.guess | 4 ++--
 build-aux/config.sub   | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/build-aux/config.guess b/build-aux/config.guess
index 33a163c1..4c01d3c6 100755
--- a/build-aux/config.guess
+++ b/build-aux/config.guess
@@ -4,7 +4,7 @@
 
 # shellcheck disable=SC2006,SC2268 # see below for rationale
 
-timestamp='2022-09-17'
+timestamp='2024-01-15'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -60,7 +60,7 @@ version=
 GNU config.guess ($timestamp)
 
 Originally written by Per Bothner.
-Copyright 1992-2022 Free Software Foundation, Inc.
+Copyright 1992-2024 Free Software Foundation, Inc.
 
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
diff --git a/build-aux/config.sub b/build-aux/config.sub
index 529a77a9..c717dc1f 100755
--- a/build-aux/config.sub
+++ b/build-aux/config.sub
@@ -4,7 +4,7 @@
 
 # shellcheck disable=SC2006,SC2268 # see below for rationale
 
-timestamp='2022-09-17'
+timestamp='2024-01-15'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -76,7 +76,7 @@ usage=
 version="\
 GNU config.sub ($timestamp)
 
-Copyright 1992-2022 Free Software Foundation, Inc.
+Copyright 1992-2024 Free Software Foundation, Inc.
 
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -1075,7 +1075,7 @@ IFS=
 	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
 		cpu=i586
 		;;
-	pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
+	pentiumpro-* | p6-* | 6x86-* | athlon-* | athlon_*-*)
 		cpu=i686
 		;;
 	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
-- 
2.43.0