[Buildroot] [git commit] package/libblockdev: fix build failure due to missing dependency json-glib
Romain Naour
romain.naour at smile.fr
Fri May 15 14:04:53 UTC 2026
commit: https://gitlab.com/buildroot.org/buildroot/-/commit/89609ad586bc8ff387899c2733e668e7f96973f6
branch: https://gitlab.com/buildroot.org/buildroot/-/tree/master
When BR2_PACKAGE_LIBBLOCKDEV_LVM2 is enabled it requires package
json-glib to be enabled starting from libblockdev version 3.5.0
so let's enable it accordingly.
Fixes:
https://autobuild.buildroot.org/results/fceb64bb7fcfced61ef900b580b458135baa3713/
Fixes: c03745d7de627e70b1142a6f212fe7e5f060cdd7
Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
[Romain: add the commit hash introducing the build issue]
Signed-off-by: Romain Naour <romain.naour at smile.fr>
---
package/libblockdev/Config.in | 1 +
package/libblockdev/libblockdev.mk | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/libblockdev/Config.in b/package/libblockdev/Config.in
index 08d618945b..e9e9faaa05 100644
--- a/package/libblockdev/Config.in
+++ b/package/libblockdev/Config.in
@@ -47,6 +47,7 @@ config BR2_PACKAGE_LIBBLOCKDEV_LVM2
bool "lvm2"
depends on BR2_ENABLE_LOCALE # parted
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # parted
+ select BR2_PACKAGE_JSON_GLIB
select BR2_PACKAGE_PARTED
select BR2_PACKAGE_LIBYAML
select BR2_PACKAGE_LVM2
diff --git a/package/libblockdev/libblockdev.mk b/package/libblockdev/libblockdev.mk
index e5cbe45b93..89a398c6e5 100644
--- a/package/libblockdev/libblockdev.mk
+++ b/package/libblockdev/libblockdev.mk
@@ -47,7 +47,7 @@ LIBBLOCKDEV_CONF_OPTS += --without-loop
endif
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_LVM2),y)
-LIBBLOCKDEV_DEPENDENCIES += libyaml lvm2 parted
+LIBBLOCKDEV_DEPENDENCIES += json-glib libyaml lvm2 parted
LIBBLOCKDEV_CONF_OPTS += --with-lvm
else
LIBBLOCKDEV_CONF_OPTS += --without-lvm
More information about the buildroot
mailing list