Re: [OE-core] [PATCH] lttng-ust: Patch python shebang appropriately for native builds

2016-12-15 Thread Phil Blundell
On Wed, 2016-12-14 at 15:38 -0800, Khem Raj wrote: > On Wed, Dec 14, 2016 at 1:38 PM, Phil Blundell wrote: > > If we are building a native package then ${bindir}/python3 is not > > guaranteed > > to be available, and if it is available then it is probably a > > directory not a > >

Re: [OE-core] [PATCH] lttng-ust: Patch python shebang appropriately for native builds

2016-12-15 Thread Burton, Ross
On 14 December 2016 at 23:38, Khem Raj wrote: > This also means we need to add a dependency on python-native may be it > should inherit the python native class. > Indeed. For python-native, '#! /usr/bin/env python3' will always work as that should find the Python that

Re: [OE-core] [PATCH] lttng-ust: Patch python shebang appropriately for native builds

2016-12-14 Thread Khem Raj
On Wed, Dec 14, 2016 at 1:38 PM, Phil Blundell wrote: > If we are building a native package then ${bindir}/python3 is not guaranteed > to be available, and if it is available then it is probably a directory not a > file. In either case, attempting to use it as an interpreter will

[OE-core] [PATCH] lttng-ust: Patch python shebang appropriately for native builds

2016-12-14 Thread Phil Blundell
If we are building a native package then ${bindir}/python3 is not guaranteed to be available, and if it is available then it is probably a directory not a file. In either case, attempting to use it as an interpreter will not end well. Let's use ${bindir}/nativepython instead. Signed-off-by: