All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2] qemu-native: Point python to python2 on build host
@ 2017-02-16 21:19 Khem Raj
  2017-02-17 17:29 ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2017-02-16 21:19 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.
|

we still expect build host to have python2 pre-installed
and is always available.

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

diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index ef5d75c450..cdbb7f1671 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -29,6 +29,7 @@ SRC_URI_append_class-native = "\
 EXTRA_OECONF += "--target-list=${@get_qemu_target_list(d)} --disable-werror  --disable-bluez --disable-libiscsi --with-system-pixman --extra-cflags='${CFLAGS}'"
 
 EXTRA_OECONF_class-nativesdk = "--target-list=${@get_qemu_target_list(d)} --disable-werror"
+EXTRA_OECONF_append_class-native = " --python=${USRBINPATH}/python2"
 
 EXTRA_OEMAKE_append_class-native = " LD='${LD}' AR='${AR}' OBJCOPY='${OBJCOPY}' LDFLAGS='${LDFLAGS}'"
 
-- 
2.11.1



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

* Re: [PATCH V2] qemu-native: Point python to python2 on build host
  2017-02-16 21:19 [PATCH V2] qemu-native: Point python to python2 on build host Khem Raj
@ 2017-02-17 17:29 ` Burton, Ross
  2017-02-17 17:31   ` Maciej Borzęcki
  0 siblings, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2017-02-17 17:29 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE-core

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

On 16 February 2017 at 21:19, Khem Raj <raj.khem@gmail.com> wrote:

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

What distro is this that ships python as python3?

Ross

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

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

* Re: [PATCH V2] qemu-native: Point python to python2 on build host
  2017-02-17 17:29 ` Burton, Ross
@ 2017-02-17 17:31   ` Maciej Borzęcki
  2017-02-17 17:47     ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: Maciej Borzęcki @ 2017-02-17 17:31 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On Fri, Feb 17, 2017 at 6:29 PM, Burton, Ross <ross.burton@intel.com> wrote:
>
> On 16 February 2017 at 21:19, Khem Raj <raj.khem@gmail.com> wrote:
>>
>> On buildhosts where default python has switched to using python3
>> qemu-native fails configure like this
>
>
> What distro is this that ships python as python3?

Arch for instance:

maciek@corsair:~ ls -l /usr/bin/python
lrwxrwxrwx 1 root root 7 01-16 12:14 /usr/bin/python -> python3

-- 
Maciej Borzecki
RnDity


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

* Re: [PATCH V2] qemu-native: Point python to python2 on build host
  2017-02-17 17:31   ` Maciej Borzęcki
@ 2017-02-17 17:47     ` Burton, Ross
  0 siblings, 0 replies; 4+ messages in thread
From: Burton, Ross @ 2017-02-17 17:47 UTC (permalink / raw)
  To: Maciej Borzęcki; +Cc: OE-core

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

On 17 February 2017 at 17:31, Maciej Borzęcki <maciej.borzecki@rndity.com>
wrote:

> maciek@corsair:~ ls -l /usr/bin/python
> lrwxrwxrwx 1 root root 7 01-16 12:14 /usr/bin/python -> python3
>

Pretty sure that it's only Arch here as everyone else listens to Python
instead of thinking they know best...

(reads PEP-394 and sighs)

Ross

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

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

end of thread, other threads:[~2017-02-17 17:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-16 21:19 [PATCH V2] qemu-native: Point python to python2 on build host Khem Raj
2017-02-17 17:29 ` Burton, Ross
2017-02-17 17:31   ` Maciej Borzęcki
2017-02-17 17:47     ` 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.