* [Buildroot] [PATCH] libevdev: adjust host-python dependency
@ 2014-04-06 11:36 Samuel Martin
2014-04-06 12:10 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Samuel Martin @ 2014-04-06 11:36 UTC (permalink / raw)
To: buildroot
libevdev depends on host-python because of some of its build scripts.
These build scripts support python2 and python3.
When python3 is part of the target selection, then we can just use the
interpreter provided by the host-python3 package.
Fixes:
http://autobuild.buildroot.net/results/dd0/dd04833b11a0ebb0193c861cb375b2112dd339d1/
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
package/libevdev/libevdev.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/package/libevdev/libevdev.mk b/package/libevdev/libevdev.mk
index 3a02230..fdaceb5 100644
--- a/package/libevdev/libevdev.mk
+++ b/package/libevdev/libevdev.mk
@@ -15,7 +15,9 @@ LIBEVDEV_DEPENDENCIES = host-pkgconf
# Needs Python to generate a header file
# We can't rely on the system Python, since it may be too old
# (missing argparse in python 2.6)
-LIBEVDEV_DEPENDENCIES += host-python
+# libevdev build scripts support both python2 and python3, so avoid unneeded
+# dependency on host-python.
+LIBEVDEV_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON3),host-python3,host-python)
# package source code coming from git, so it doesn't have generated
# configure and Makefile.in
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] libevdev: adjust host-python dependency
2014-04-06 11:36 [Buildroot] [PATCH] libevdev: adjust host-python dependency Samuel Martin
@ 2014-04-06 12:10 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-04-06 12:10 UTC (permalink / raw)
To: buildroot
Dear Samuel Martin,
On Sun, 6 Apr 2014 13:36:26 +0200, Samuel Martin wrote:
> libevdev depends on host-python because of some of its build scripts.
> These build scripts support python2 and python3.
>
> When python3 is part of the target selection, then we can just use the
> interpreter provided by the host-python3 package.
>
> Fixes:
> http://autobuild.buildroot.net/results/dd0/dd04833b11a0ebb0193c861cb375b2112dd339d1/
>
> Signed-off-by: Samuel Martin <s.martin49@gmail.com>
> ---
> package/libevdev/libevdev.mk | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-06 12:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-06 11:36 [Buildroot] [PATCH] libevdev: adjust host-python dependency Samuel Martin
2014-04-06 12:10 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox