Skip to contentSkip to conversation

package/p11-kit: fix build with GCC 15.x

PATCH In review Thomas Petazzoni via buildroot 1 participant 2 messages Aug 22, 2025 – Aug 23, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 <stdbool.h> 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/

---
 package/p11-kit/p11-kit.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/p11-kit/p11-kit.mk +6 -0
index 154a34e634..42de3e1065 100644
@@ -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 <stdbool.h> 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
Signature · 6 lines
2.50.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 16 lines · Thomas Petazzoni via buildroot

The AC_HEADER_STDBOOL macro used in configure.ac is expanded in the shipped ./configure by a fairly old version, which misdetects our <stdbool.h> 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.

Quoted 6 lines

Fixes:

https://autobuild.buildroot.net/results/760df1a8c21afa893ade5181ce797e14c1f6bdce/

Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot