* [Buildroot] [PATCH] libglib2: fix configure issue without libmount
@ 2018-12-03 23:51 Gaël PORTAY
2018-12-06 20:56 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Gaël PORTAY @ 2018-12-03 23:51 UTC (permalink / raw)
To: buildroot
The following configure error happens when the util-linux dependency
does not install libmount:
(...)
checking for LIBMOUNT... no
configure: error: *** Could not find libmount
make[1]: *** [package/pkg-generic.mk:222: /home/gportay/src/buildroot/output-rpi3-64-drm-kms/build/libglib2-2.56.1/.stamp_configured] Error 1
make: *** [Makefile:84: _all] Error 2
If no enable/disable option is given through to configure, glib2 checks
for the libmount package (linux only) and fails if is not present[1].
To fix this configure issue, this path explicits the option at configure
to make sure to disable libmount if is is not installed.
[1]: https://github.com/GNOME/glib/blob/glib-2-56/configure.ac#L1856
Signed-off-by: Ga?l PORTAY <gael.portay@collabora.com>
---
package/libglib2/libglib2.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
index 67db5ac359..16252c0ecb 100644
--- a/package/libglib2/libglib2.mk
+++ b/package/libglib2/libglib2.mk
@@ -114,6 +114,7 @@ HOST_LIBGLIB2_DEPENDENCIES = \
LIBGLIB2_CONF_OPTS = \
--with-pcre=system \
+ $(if $(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),--enable-libmount,--disable-libmount) \
--disable-compile-warnings
ifneq ($(BR2_ENABLE_LOCALE),y)
--
2.19.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] libglib2: fix configure issue without libmount
2018-12-03 23:51 [Buildroot] [PATCH] libglib2: fix configure issue without libmount Gaël PORTAY
@ 2018-12-06 20:56 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-12-06 20:56 UTC (permalink / raw)
To: buildroot
Hello Ga?l,
On Mon, 3 Dec 2018 18:51:18 -0500, Ga?l PORTAY wrote:
> The following configure error happens when the util-linux dependency
> does not install libmount:
>
> (...)
> checking for LIBMOUNT... no
> configure: error: *** Could not find libmount
> make[1]: *** [package/pkg-generic.mk:222: /home/gportay/src/buildroot/output-rpi3-64-drm-kms/build/libglib2-2.56.1/.stamp_configured] Error 1
> make: *** [Makefile:84: _all] Error 2
>
> If no enable/disable option is given through to configure, glib2 checks
> for the libmount package (linux only) and fails if is not present[1].
>
> To fix this configure issue, this path explicits the option at configure
> to make sure to disable libmount if is is not installed.
>
> [1]: https://github.com/GNOME/glib/blob/glib-2-56/configure.ac#L1856
>
> Signed-off-by: Ga?l PORTAY <gael.portay@collabora.com>
You must have done a partial rebuild to reach this issue, because:
$ grep UTIL_LINUX package/libglib2/Config.in
select BR2_PACKAGE_UTIL_LINUX
select BR2_PACKAGE_UTIL_LINUX_LIBMOUNT
So there is no way for util-linux to not have libmount support.
The issue you're seeing is typically what happens when util-linux is
built first, without libmount support. Then later on you enable
libglib2, but don't do a full rebuild. So util-linux is not rebuilt
with libmount support, and you see this problem.
> LIBGLIB2_CONF_OPTS = \
> --with-pcre=system \
> + $(if $(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),--enable-libmount,--disable-libmount) \
However, if libmount support is indeed optional in libglib2, should we
also make it optional in Buildroot ? This mandatory dependency was
added in:
commit 4c7c010f9fae01399070844991252d3f5b9aae5f
Author: Gustavo Zacarias <gustavo@zacarias.com.ar>
Date: Tue Sep 20 12:01:30 2016 -0300
libglib2: bump to version 2.50.0
It now requires util-linux libmount so add the dependency/select.
Perhaps we need to revisit this and make it optional again ? Could you
have a look into this ?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-12-06 20:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-03 23:51 [Buildroot] [PATCH] libglib2: fix configure issue without libmount Gaël PORTAY
2018-12-06 20:56 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.