Skip to contentSkip to conversation

package/libblockdev: fix build failure due to missing dependency json-glib

PATCH Applied Giulio Benetti 2 participants 2 messages May 11 – May 15

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libblockdev: fix build failure due to missing dependency json-glib

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/

---
 package/libblockdev/Config.in      | 1 +
 package/libblockdev/libblockdev.mk | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
package/libblockdev/Config.in +1 -0
index 08d618945b..e9e9faaa05 100644
@@ -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
package/libblockdev/libblockdev.mk +1 -1
index e5cbe45b93..89a398c6e5 100644
@@ -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
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hello Giulio, All,

Le 11/05/2026 à 21:25, Giulio Benetti a écrit :

Quoted 8 lines

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/

I added the commit hash introducing the build issue.

Applied to master. Thanks.

Best regards,
Romain

Quoted 22 lines
---
 package/libblockdev/Config.in      | 1 +
 package/libblockdev/libblockdev.mk | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
package/libblockdev/Config.in +1 -0
index 08d618945b..e9e9faaa05 100644
@@ -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
package/libblockdev/libblockdev.mk +0 -0
index e5cbe45b93..89a398c6e5 100644

package/libblockdev/libblockdev.mk LIBBLOCKDEV_CONF_OPTS += --without-loop · line 53

Quoted 8 lines
package/libblockdev/libblockdev.mk +1 -1
@@ -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

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot