On Wed, Dec 14, 2016 at 1:38 PM, Phil Blundell <[email protected]> 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 not end
> well. Let's use ${bindir}/nativepython instead.
>
> Signed-off-by: Phil Blundell <[email protected]>
> ---
> meta/recipes-kernel/lttng/lttng-ust_git.bb | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-kernel/lttng/lttng-ust_git.bb
> b/meta/recipes-kernel/lttng/lttng-ust_git.bb
> index 5869093..df22352 100644
> --- a/meta/recipes-kernel/lttng/lttng-ust_git.bb
> +++ b/meta/recipes-kernel/lttng/lttng-ust_git.bb
> @@ -29,10 +29,12 @@ SRC_URI =
> "git://git.lttng.org/lttng-ust.git;branch=stable-2.7 \
>
> PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages,
> asciidoc-native xmlto-native libxslt-native"
>
> +usepython="${bindir}/python3"
> +usepython_class-native="${bindir}/nativepython"
> do_install_append() {
> # Patch python tools to use Python 3; they should be source
> compatible, but
> # still refer to Python 2 in the shebang
> - sed -i -e '1s,#!.*python.*,#!${bindir}/python3,'
> ${D}${bindir}/lttng-gen-tp
> + sed -i -e '1s,#!.*python.*,#!${usepython},'
> ${D}${bindir}/lttng-gen-tp
This also means we need to add a dependency on python-native may be it
should inherit the python native class.
> }
>
> S = "${WORKDIR}/git"
> --
> 2.10.1
> --
> _______________________________________________
> Openembedded-core mailing list
> [email protected]
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core