All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] qemu: Inherit pythonnative
@ 2017-02-10  4:58 Khem Raj
  2017-02-10  9:05 ` Burton, Ross
  0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2017-02-10  4:58 UTC (permalink / raw)
  To: openembedded-core

On buildhosts where default python has switched to using python3
qemu-native fails configure like this

| ERROR: Cannot use 'python', Python 2.6 or later is required.
|        Note that Python 3 or later is not yet supported.
|        Use --python=/path/to/python to specify a supported Python.
|

inheriting pythonnative makes sure that a usable python2 is always
available.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-devtools/qemu/qemu.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index ef5d75c450..50f53f0de1 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -6,7 +6,7 @@ RDEPENDS_${PN}_class-target += "bash"
 RDEPENDS_${PN}-ptest = "bash make"
 
 require qemu-targets.inc
-inherit autotools pkgconfig ptest
+inherit autotools pkgconfig ptest pythonnative
 BBCLASSEXTEND = "native nativesdk"
 
 # QEMU_TARGETS is overridable variable
-- 
2.11.1



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

* Re: [PATCH] qemu: Inherit pythonnative
  2017-02-10  4:58 [PATCH] qemu: Inherit pythonnative Khem Raj
@ 2017-02-10  9:05 ` Burton, Ross
  0 siblings, 0 replies; 2+ messages in thread
From: Burton, Ross @ 2017-02-10  9:05 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 795 bytes --]

On 10 February 2017 at 04:58, Khem Raj <raj.khem@gmail.com> wrote:

> On buildhosts where default python has switched to using python3
> qemu-native fails configure like this
>
> | ERROR: Cannot use 'python', Python 2.6 or later is required.
> |        Note that Python 3 or later is not yet supported.
> |        Use --python=/path/to/python to specify a supported Python.
>

Build hosts where /usr/bin/python is Python3 are Doing It Wrong, and Python
upstream says don't do that.

Many other recipes depend on /usr/bin/python existing, so I'm not sure we
want to start building our own Python so early in the build just yet,
especially as we're trying to move away from Py2.  Can we not just list
python2 as a host dependency (to be honest, I thought it already was).

Ross

[-- Attachment #2: Type: text/html, Size: 1294 bytes --]

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

end of thread, other threads:[~2017-02-10  9:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-10  4:58 [PATCH] qemu: Inherit pythonnative Khem Raj
2017-02-10  9:05 ` Burton, Ross

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.