From 103f75bfabbf5a837e6036be8851711f06171283 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 23 Aug 2025 00:19:59 +0200 Subject: [PATCH] package/p11-kit: fix build with GCC 15.x The AC_HEADER_STDBOOL macro used in configure.ac is expanded in the shipped ./configure by a fairly old version, which misdetects our as being not usable. Consequently, the code defines its own bool type, with true/false, clashing with GCC 15.x. Doing a pass of autoreconf addresses the problem. The autoreconf needs pkg.m4, which comes from host-pkgconf, added as a dependency. Note that host-pkgconf was already a dependency for one of the optional dependencies of p11-kit, and we're keeping it there even though host-pkgconf is now also an unconditional dependency as we expect this unconditional host-pkgconf dependency to be removed when we drop autoreconf. Fixes: https://autobuild.buildroot.net/results/760df1a8c21afa893ade5181ce797e14c1f6bdce/ Signed-off-by: Thomas Petazzoni Signed-off-by: Julien Olivain --- package/p11-kit/p11-kit.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/p11-kit/p11-kit.mk b/package/p11-kit/p11-kit.mk index 154a34e634..42de3e1065 100644 --- a/package/p11-kit/p11-kit.mk +++ b/package/p11-kit/p11-kit.mk @@ -14,6 +14,12 @@ P11_KIT_CONF_ENV = ac_cv_have_decl_program_invocation_short_name=yes \ P11_KIT_LICENSE = BSD-3-Clause P11_KIT_LICENSE_FILES = COPYING P11_KIT_CPE_ID_VALID = YES +# Needed because the pre-generated ./configure script has an old +# broken expansion of AC_HEADER_STDBOOL, which incorrectly detects +# that cannot be used, causing breakage down the road. +P11_KIT_AUTORECONF = YES +# Needed for autoreconf +P11_KIT_DEPENDENCIES = host-pkgconf ifeq ($(BR2_PACKAGE_LIBFFI),y) P11_KIT_DEPENDENCIES += host-pkgconf libffi