* [Buildroot] [PATCH] glib-networking: specify GIO_MODULE_DIR for target
@ 2015-10-05 19:54 Gustavo Zacarias
2015-10-06 9:49 ` Peter Korsgaard
0 siblings, 1 reply; 3+ messages in thread
From: Gustavo Zacarias @ 2015-10-05 19:54 UTC (permalink / raw)
To: buildroot
Since the upgrade to pkgconf 0.9.12 all directories and variables with
directories are sysroot-prefixed, whereas with the old patch only some
variables were (includedir, mapdir, sdkdir, libdir).
libglib2 uses a giomoduledir=${libdir}/gio/modules variable in
gio-2.0.pc, which when expanded via sysroot by pkgconf at configure time
points to the staging directory (via libdir expansion).
When target install gets called the gio module gets installed to staging
rather than target, with the obvious consequences this has.
Work-around this pkgconfig abuse by overriding GIO_MODULE_DIR at target
install time.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/glib-networking/glib-networking.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/glib-networking/glib-networking.mk b/package/glib-networking/glib-networking.mk
index deb138a..67a9203 100644
--- a/package/glib-networking/glib-networking.mk
+++ b/package/glib-networking/glib-networking.mk
@@ -16,6 +16,8 @@ GLIB_NETWORKING_DEPENDENCIES = \
libglib2
GLIB_NETWORKING_LICENSE = LGPLv2+
GLIB_NETWORKING_LICENSE_FILES = COPYING
+GLIB_NETWORKING_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) \
+ GIO_MODULE_DIR=/usr/lib/gio/modules install
ifeq ($(BR2_PACKAGE_GNUTLS),y)
GLIB_NETWORKING_DEPENDENCIES += gnutls
--
2.4.9
^ permalink raw reply related [flat|nested] 3+ messages in thread* [Buildroot] [PATCH] glib-networking: specify GIO_MODULE_DIR for target
2015-10-05 19:54 [Buildroot] [PATCH] glib-networking: specify GIO_MODULE_DIR for target Gustavo Zacarias
@ 2015-10-06 9:49 ` Peter Korsgaard
2015-10-06 10:18 ` Gustavo Zacarias
0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2015-10-06 9:49 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
> Since the upgrade to pkgconf 0.9.12 all directories and variables with
> directories are sysroot-prefixed, whereas with the old patch only some
> variables were (includedir, mapdir, sdkdir, libdir).
> libglib2 uses a giomoduledir=${libdir}/gio/modules variable in
> gio-2.0.pc, which when expanded via sysroot by pkgconf at configure time
> points to the staging directory (via libdir expansion).
> When target install gets called the gio module gets installed to staging
> rather than target, with the obvious consequences this has.
> Work-around this pkgconfig abuse by overriding GIO_MODULE_DIR at target
> install time.
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Committed, thanks.
Lets hope we won't have too much other fallout from the bump.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-06 10:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-05 19:54 [Buildroot] [PATCH] glib-networking: specify GIO_MODULE_DIR for target Gustavo Zacarias
2015-10-06 9:49 ` Peter Korsgaard
2015-10-06 10:18 ` Gustavo Zacarias
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox