Skip to contentSkip to conversation

krb5: Fix build with autotools 2.73

PATCH New Khem Raj 1 participant 1 message Apr 4

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 krb5: Fix build with autotools 2.73

---
 ...lace-K5_AC_INIT-with-explicit-AC_INI.patch | 37 +++++++++++++++++++
 .../recipes-connectivity/krb5/krb5_1.22.2.bb  |  1 +
 2 files changed, 38 insertions(+)
 create mode 100644 meta-oe/recipes-connectivity/krb5/krb5/0001-configure.ac-replace-K5_AC_INIT-with-explicit-AC_INI.patch
meta-oe/recipes-connectivity/krb5/krb5/0001-configure.ac-replace-K5_AC_INIT-with-explicit-AC_INI.patch new file +37 -0
new file mode 100644
index 0000000000..9fb9b38a63
@@ -0,0 +1,37 @@
+From 1b54d6a42677bd4209cf5c893802c7f60dc0ad75 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Fri, 3 Apr 2026 23:43:18 -0700
+Subject: [PATCH] configure.ac: replace K5_AC_INIT with explicit AC_INIT
+
+autoreconf expects configure.ac to contain a literal AC_INIT invocation.
+krb5 currently uses the custom K5_AC_INIT wrapper, which expands to
+AC_INIT but is not recognized by autoreconf's initial sanity check,
+causing configuration to fail with:
+
+  autoreconf: error: configure.ac: AC_INIT not found
+
+Replace K5_AC_INIT([aclocal.m4]) with its explicit expansion:
+AC_INIT(...), AC_CONFIG_SRCDIR([aclocal.m4]), and build_dynobj=no.
+
+This preserves the existing behavior while allowing autoreconf-based
+builds to succeed.
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/configure.ac | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/configure.ac b/src/configure.ac
+index 4325fae..03e224f 100644
+--- a/src/configure.ac
++++ b/src/configure.ac
+@@ -1,4 +1,6 @@
+-K5_AC_INIT([aclocal.m4])
++AC_INIT([Kerberos 5], m4_defn([K5_VERSION]), m4_defn([K5_BUGADDR]), [krb5])
++AC_CONFIG_SRCDIR([aclocal.m4])
++build_dynobj=no
+
+ # If $runstatedir isn't set by autoconf (<2.70), set it manually.
+ if test x"$runstatedir" = x; then
meta-oe/recipes-connectivity/krb5/krb5_1.22.2.bb +1 -0
index 5d8ab2dc01..89e5502847 100644
@@ -23,6 +23,7 @@ SRC_URI = "http://web.mit.edu/kerberos/dist/${BPN}/${SHRT_VER}/${BP}.tar.gz \
            file://debian-suppress-usr-lib-in-krb5-config.patch;striplevel=2 \
            file://fix-strchr-conformance-to-C23.patch;striplevel=2 \
            file://crosscompile_nm.patch \
+           file://0001-configure.ac-replace-K5_AC_INIT-with-explicit-AC_INI.patch;striplevel=2 \
            file://etc/init.d/krb5-kdc \
            file://etc/init.d/krb5-admin-server \
            file://etc/default/krb5-kdc \