]> git.ipfire.org Git - thirdparty/openwrt.git/commit
tools/e2fsprogs: fix build with system libblkid probe API 22368/head
authorseuros <openwrt@seuros.com>
Tue, 10 Mar 2026 23:32:04 +0000 (23:32 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 5 Apr 2026 22:06:37 +0000 (00:06 +0200)
commit86bb0d7d27e14bfa5ab5ddb9a1af489aac5fc268
tree8ff44f309b2233b878da70a5555904d53c80551e
parent0d769903dd1326b7071d6d1a8df5228039e3b793
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 <openwrt@seuros.com>
Link: https://github.com/openwrt/openwrt/pull/22368
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
tools/e2fsprogs/Makefile