From 86bb0d7d27e14bfa5ab5ddb9a1af489aac5fc268 Mon Sep 17 00:00:00 2001 From: seuros Date: Tue, 10 Mar 2026 23:32:04 +0000 Subject: [PATCH] tools/e2fsprogs: fix build with system libblkid probe API When building on a host with e2fsprogs >= 1.47.0 installed, configure detects the system libblkid probe API (blkid_probe_get_partitions etc.) and sets ac_cv_lib_blkid_blkid_get_cache=yes. This causes plausible.c to be compiled with HAVE_BLKID_PROBE_GET_PARTITIONS defined, but the host build links against the internal blkid stub, resulting in: plausible.c: error: unknown type name 'blkid_probe' Override the configure cache variables to prevent detection of the system libblkid probe API, ensuring the internal stub is used consistently. Signed-off-by: seuros Link: https://github.com/openwrt/openwrt/pull/22368 Signed-off-by: Hauke Mehrtens --- tools/e2fsprogs/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/e2fsprogs/Makefile b/tools/e2fsprogs/Makefile index 6b105ed9a8..f760710c5b 100644 --- a/tools/e2fsprogs/Makefile +++ b/tools/e2fsprogs/Makefile @@ -31,7 +31,8 @@ HOST_CONFIGURE_ARGS += \ --disable-nls \ --enable-threads=pth \ --disable-fuse2fs \ - --with-crond-dir=no + --with-crond-dir=no \ + --enable-libblkid # The following uses pkg-config the wrong way around. Just override it. HOST_CONFIGURE_VARS += \