Skip to content

Commit 86bb0d7

Browse files
seuroshauke
authored andcommitted
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: openwrt/openwrt#22368 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent 0d76990 commit 86bb0d7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/e2fsprogs/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ HOST_CONFIGURE_ARGS += \
3131
--disable-nls \
3232
--enable-threads=pth \
3333
--disable-fuse2fs \
34-
--with-crond-dir=no
34+
--with-crond-dir=no \
35+
--enable-libblkid
3536

3637
# The following uses pkg-config the wrong way around. Just override it.
3738
HOST_CONFIGURE_VARS += \

0 commit comments

Comments
 (0)