diff --git a/autoconf.spec b/autoconf.spec index 6ecfdbcaed232e46d60b2b0d624361d1acfd7513..689c2eb46c953757cc96d52baf2993aac70eaf23 100644 --- a/autoconf.spec +++ b/autoconf.spec @@ -3,7 +3,7 @@ Name: autoconf Version: 2.72 -Release: 2 +Release: 3 Summary: An extensible package to automatically configure software source code packages License: GPL-2.0-or-later AND GPL-3.0-or-later and GFDL-1.3-or-later URL: https://www.gnu.org/software/%{name}/ @@ -11,6 +11,8 @@ Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz Source1: config.site Source2: autoconf-el.el +Patch0: backport-Remove-incorrect-check-in-AC_CHECK_SIZEOF.patch + BuildArch: noarch BuildRequires: m4 emacs perl perl-generators help2man gcc-c++ @@ -57,6 +59,9 @@ install -p -D %{S:2} %{buildroot}%{_emacs_sitestartdir}/autoconf-el.el %{_mandir}/man1/* %changelog +* Wed Aug 27 2025 fuanan - 2.72-3 +- Remove incorrect check in AC_CHECK_SIZEOF + * Sun Oct 27 2024 Funda Wang - 2.72-2 - cleanup spec diff --git a/backport-Remove-incorrect-check-in-AC_CHECK_SIZEOF.patch b/backport-Remove-incorrect-check-in-AC_CHECK_SIZEOF.patch new file mode 100644 index 0000000000000000000000000000000000000000..a4f5086a3505d70f1c477cbb51ce12dd08efd0d5 --- /dev/null +++ b/backport-Remove-incorrect-check-in-AC_CHECK_SIZEOF.patch @@ -0,0 +1,53 @@ +From 51dec81849467973b1ef6d3fc8318b5b4f34b1c4 Mon Sep 17 00:00:00 2001 +From: Paul Eggert +Date: Wed, 7 Feb 2024 12:42:04 -0800 +Subject: [PATCH] Remove incorrect check in AC_CHECK_SIZEOF +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +* lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): +When the size or alignment cannot be determined, do not fail if +ac_cv_type_$1 is yes, as there’s no guarantee that ac_cv_type_$1 +is defined, and failure here would contradict the documentation +that the size or alignment is 0 when sizeof($1)/alignof($1) cannot +be compiled. The test for ac_cv_type_$1 made sense long ago when +it was checked for in these macros, but the test has not made +sense for many years. +--- + lib/autoconf/types.m4 | 12 ++---------- + 1 file changed, 2 insertions(+), 10 deletions(-) + +diff --git a/lib/autoconf/types.m4 b/lib/autoconf/types.m4 +index 8ed2f155..f231fcfc 100644 +--- a/lib/autoconf/types.m4 ++++ b/lib/autoconf/types.m4 +@@ -837,11 +837,7 @@ AC_DEFUN([AC_CHECK_SIZEOF], + _AC_CACHE_CHECK_INT([size of $1], [AS_TR_SH([ac_cv_sizeof_$1])], + [(long int) (sizeof ($1))], + [AC_INCLUDES_DEFAULT([$3])], +- [if test "$AS_TR_SH([ac_cv_type_$1])" = yes; then +- AC_MSG_FAILURE([cannot compute sizeof ($1)], 77) +- else +- AS_TR_SH([ac_cv_sizeof_$1])=0 +- fi]) ++ [AS_TR_SH([ac_cv_sizeof_$1])=0]) + + AC_DEFINE_UNQUOTED(AS_TR_CPP(sizeof_$1), $AS_TR_SH([ac_cv_sizeof_$1]), + [The size of '$1', as computed by sizeof.]) +@@ -866,11 +862,7 @@ _AC_CACHE_CHECK_INT([alignment of $1], [AS_TR_SH([ac_cv_alignof_$3])], + [(long int) offsetof (ac__type_alignof_, y)], + [AC_INCLUDES_DEFAULT([$2]) + typedef struct { char x; $1 y; } ac__type_alignof_;], +- [if test "$AS_TR_SH([ac_cv_type_$3])" = yes; then +- AC_MSG_FAILURE([cannot compute alignment of $1], 77) +- else +- AS_TR_SH([ac_cv_alignof_$3])=0 +- fi]) ++ [AS_TR_SH([ac_cv_alignof_$3])=0]) + + AC_DEFINE_UNQUOTED(AS_TR_CPP(alignof_$3), $AS_TR_SH([ac_cv_alignof_$3]), + [The normal alignment of '$1', in bytes.]) +-- +2.33.0 +