Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/avahi: fix building against gobject-introspection
@ 2020-08-13 23:23 aduskett at gmail.com
  2020-08-14  9:01 ` Michael Nosthoff
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: aduskett at gmail.com @ 2020-08-13 23:23 UTC (permalink / raw)
  To: buildroot

From: Adam Duskett <Aduskett@gmail.com>

Currently, if gobject-introspection is built before avahi, avahi will fail
to build with several undefined reference errors due to several .libs
directories not being in the PATH when linking the .gir file.

To resolve this issue, do the following if gobject-introspection is selected:
  - Add gobject-introspection to AVAHI_DEPENDENCIES
  - Add --enable-gobject to AVAHI_CONF_OPTS
  - Add the appropriate directories to GIR_EXTRA_LIBS_PATH.

Fixes:
http://autobuild.buildroot.net/results/b9bf7cea8be9231552a10e8ea828bf24394402ba
Signed-off-by: Adam Duskett <Aduskett@gmail.com>
---
 package/avahi/avahi.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/avahi/avahi.mk b/package/avahi/avahi.mk
index 73db37545f..3e858083af 100644
--- a/package/avahi/avahi.mk
+++ b/package/avahi/avahi.mk
@@ -94,6 +94,13 @@ else
 AVAHI_CONF_OPTS += --disable-glib --disable-gobject
 endif
 
+ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
+AVAHI_DEPENDENCIES += gobject-introspection
+AVAHI_CONF_OPTS += --enable-gobject
+AVAHI_MAKE_ENV += \
+	GIR_EXTRA_LIBS_PATH="$(@D)/avahi-gobject/.libs:$(@D)/avahi-common/.libs:$(@D)/avahi-client/.libs:$(@D)/avahi-glib/.libs"
+endif
+
 ifeq ($(BR2_PACKAGE_PYTHON),y)
 AVAHI_CONF_ENV += \
 	am_cv_pathless_PYTHON=python \
-- 
2.26.2

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-08-31 20:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-13 23:23 [Buildroot] [PATCH 1/1] package/avahi: fix building against gobject-introspection aduskett at gmail.com
2020-08-14  9:01 ` Michael Nosthoff
2020-08-14 11:39 ` Thomas Petazzoni
2020-08-14 19:27   ` Adam Duskett
2020-08-14 19:37     ` Thomas Petazzoni
2020-08-31 20:13       ` Yann E. MORIN
2020-08-14 21:11 ` Thomas Petazzoni
2020-08-31 14:01   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox