* [Buildroot] [PATCH] util-linux: enable Python bindings for libmount
@ 2016-01-15 10:24 yegorslists at googlemail.com
2016-01-15 14:00 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: yegorslists at googlemail.com @ 2016-01-15 10:24 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
package/util-linux/util-linux.mk | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index 58ace1d..a80e287 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -23,8 +23,7 @@ UTIL_LINUX_CONF_ENV = scanf_cv_type_modifier=no \
$(if $(BR2_TOOLCHAIN_USES_UCLIBC),ac_cv_header_sys_timex_h=no)
UTIL_LINUX_CONF_OPTS += \
--disable-rpath \
- --disable-makeinstall-chown \
- --without-python
+ --disable-makeinstall-chown
# system depends on util-linux so we enable systemd support
# (which needs systemd to be installed)
@@ -136,6 +135,19 @@ ifeq ($(BR2_PACKAGE_UTIL_LINUX_BINARIES),)
UTIL_LINUX_CONF_OPTS += --disable-all-programs
endif
+# Install libmount Python bindings
+ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),y)
+ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
+UTIL_LINUX_CONF_OPTS += \
+ --enable-pylibmount \
+ --with-python
+else
+UTIL_LINUX_CONF_OPTS += \
+ --disable-pylibmount \
+ --without-python
+endif
+endif
+
# Install PAM configuration files
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS),y)
define UTIL_LINUX_INSTALL_PAMFILES
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] util-linux: enable Python bindings for libmount
2016-01-15 10:24 [Buildroot] [PATCH] util-linux: enable Python bindings for libmount yegorslists at googlemail.com
@ 2016-01-15 14:00 ` Thomas Petazzoni
2016-01-15 14:08 ` Yegor Yefremov
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2016-01-15 14:00 UTC (permalink / raw)
To: buildroot
Yegor,
On Fri, 15 Jan 2016 11:24:57 +0100, yegorslists at googlemail.com wrote:
> diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
> index 58ace1d..a80e287 100644
> --- a/package/util-linux/util-linux.mk
> +++ b/package/util-linux/util-linux.mk
> @@ -23,8 +23,7 @@ UTIL_LINUX_CONF_ENV = scanf_cv_type_modifier=no \
> $(if $(BR2_TOOLCHAIN_USES_UCLIBC),ac_cv_header_sys_timex_h=no)
> UTIL_LINUX_CONF_OPTS += \
> --disable-rpath \
> - --disable-makeinstall-chown \
> - --without-python
> + --disable-makeinstall-chown
>
> # system depends on util-linux so we enable systemd support
> # (which needs systemd to be installed)
> @@ -136,6 +135,19 @@ ifeq ($(BR2_PACKAGE_UTIL_LINUX_BINARIES),)
> UTIL_LINUX_CONF_OPTS += --disable-all-programs
> endif
>
> +# Install libmount Python bindings
> +ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),y)
> +ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
> +UTIL_LINUX_CONF_OPTS += \
> + --enable-pylibmount \
> + --with-python
> +else
> +UTIL_LINUX_CONF_OPTS += \
> + --disable-pylibmount \
> + --without-python
> +endif
> +endif
With this change, we are no longer passing --without-python when
BR2_PACKAGE_UTIL_LINUX_LIBMOUNT is disabled. I think it would be good
to continue passing --without-python. Also, shouldn't python be built
before util-linux for this to work ?
Would something like this make sense maybe:
ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
UTIL_LINUX_CONF_OPTS += --with-python
UTIL_LINUX_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON),python,python3)
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),y)
UTIL_LINUX_CONF_OPTS += --enable-pylibmount
else
UTIL_LINUX_CONF_OPTS += --disable-pylibmount
endif
else
UTIL_LINUX_CONF_OPTS += --without-python
endif
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] util-linux: enable Python bindings for libmount
2016-01-15 14:00 ` Thomas Petazzoni
@ 2016-01-15 14:08 ` Yegor Yefremov
0 siblings, 0 replies; 3+ messages in thread
From: Yegor Yefremov @ 2016-01-15 14:08 UTC (permalink / raw)
To: buildroot
On Fri, Jan 15, 2016 at 3:00 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Yegor,
>
> On Fri, 15 Jan 2016 11:24:57 +0100, yegorslists at googlemail.com wrote:
>
>> diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
>> index 58ace1d..a80e287 100644
>> --- a/package/util-linux/util-linux.mk
>> +++ b/package/util-linux/util-linux.mk
>> @@ -23,8 +23,7 @@ UTIL_LINUX_CONF_ENV = scanf_cv_type_modifier=no \
>> $(if $(BR2_TOOLCHAIN_USES_UCLIBC),ac_cv_header_sys_timex_h=no)
>> UTIL_LINUX_CONF_OPTS += \
>> --disable-rpath \
>> - --disable-makeinstall-chown \
>> - --without-python
>> + --disable-makeinstall-chown
>>
>> # system depends on util-linux so we enable systemd support
>> # (which needs systemd to be installed)
>> @@ -136,6 +135,19 @@ ifeq ($(BR2_PACKAGE_UTIL_LINUX_BINARIES),)
>> UTIL_LINUX_CONF_OPTS += --disable-all-programs
>> endif
>>
>> +# Install libmount Python bindings
>> +ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),y)
>> +ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
>> +UTIL_LINUX_CONF_OPTS += \
>> + --enable-pylibmount \
>> + --with-python
>> +else
>> +UTIL_LINUX_CONF_OPTS += \
>> + --disable-pylibmount \
>> + --without-python
>> +endif
>> +endif
>
> With this change, we are no longer passing --without-python when
> BR2_PACKAGE_UTIL_LINUX_LIBMOUNT is disabled. I think it would be good
> to continue passing --without-python. Also, shouldn't python be built
> before util-linux for this to work ?
Good point.
> Would something like this make sense maybe:
>
> ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
> UTIL_LINUX_CONF_OPTS += --with-python
> UTIL_LINUX_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON),python,python3)
> ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),y)
> UTIL_LINUX_CONF_OPTS += --enable-pylibmount
> else
> UTIL_LINUX_CONF_OPTS += --disable-pylibmount
> endif
> else
> UTIL_LINUX_CONF_OPTS += --without-python
> endif
Will send v2.
Yegor
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-01-15 14:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-15 10:24 [Buildroot] [PATCH] util-linux: enable Python bindings for libmount yegorslists at googlemail.com
2016-01-15 14:00 ` Thomas Petazzoni
2016-01-15 14:08 ` Yegor Yefremov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox