Skip to contentSkip to conversation

package/mender: the dbus plugin requires libglib2

PATCH New Adam Duskett 2 participants 2 messages May 20, 2021 – May 21, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mender: the dbus plugin requires libglib2

If libglib2 is not build before building the dbus plugin, mender fails to compile with the following error:
Package 'gio-2.0', required by 'virtual:world', not found

- Add a check for libglib2 in addition to dbus when enabling the dbus plugin.
- Depend on libglib2 if both packages are selected.

Fixes:
http://autobuild.buildroot.org/results/1bc5893b88db08612059ad899c2bc3b2abb291fb

---
 package/mender/mender.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/mender/mender.mk +2 -1
index b4c5761151..a110caf551 100644
@@ -87,7 +87,8 @@ else
 MENDER_TAGS += nolzma
 endif
 
-ifeq ($(BR2_PACKAGE_DBUS),y)
+ifeq ($(BR2_PACKAGE_DBUS)$(BR2_PACKAGE_LIBGLIB2),yy)
+MENDER_DEPENDENCIES += libglib2
 define MENDER_INSTALL_DBUS_AUTHENTICATION_MANAGER_CONF
 	$(INSTALL) -D -m 0755 $(@D)/support/dbus/io.mender.AuthenticationManager.conf \
 		      $(TARGET_DIR)/etc/dbus-1/system.d/io.mender.AuthenticationManager.conf
Signature · 1 line
2.31.1
#1 lore raw

PATCH 1/1 package/mender: the dbus plugin requires libglib2

Quoted 11 lines · Adam Duskett

If libglib2 is not build before building the dbus plugin, mender fails to compile with the following error:
Package 'gio-2.0', required by 'virtual:world', not found

- Add a check for libglib2 in addition to dbus when enabling the dbus plugin.
- Depend on libglib2 if both packages are selected.

Fixes:
http://autobuild.buildroot.org/results/1bc5893b88db08612059ad899c2bc3b2abb291fb

Applied to master, thanks.

Regards,
Arnout

Quoted 19 lines
---
 package/mender/mender.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/mender/mender.mk +2 -1
index b4c5761151..a110caf551 100644
@@ -87,7 +87,8 @@ else
 MENDER_TAGS += nolzma
 endif
 
-ifeq ($(BR2_PACKAGE_DBUS),y)
+ifeq ($(BR2_PACKAGE_DBUS)$(BR2_PACKAGE_LIBGLIB2),yy)
+MENDER_DEPENDENCIES += libglib2
 define MENDER_INSTALL_DBUS_AUTHENTICATION_MANAGER_CONF
 	$(INSTALL) -D -m 0755 $(@D)/support/dbus/io.mender.AuthenticationManager.conf \
 		      $(TARGET_DIR)/etc/dbus-1/system.d/io.mender.AuthenticationManager.conf