[U-Boot] [PATCH] binman: Explicitly request python2 instead of python from env
Jonathan Gray
jsg at jsg.id.au
Wed Feb 22 13:25:48 UTC 2017
On Mon, Feb 20, 2017 at 07:41:34PM +0100, Paul Kocialkowski wrote:
> We now live in a world where python cannot be assumed to be python2.
> As a matter of fact, it is no longer the default for python on many
> GNU/Linux distributions.
>
> Running binman with python3 fails, so explicitly request python2 from
> env in the shebang for running it.
On other systems such as OpenBSD the binary is python2.7 not python2
or python. Though there isn't really a way to handle this with
how u-boot builds as I understand it (besides local patches).
>
> Signed-off-by: Paul Kocialkowski <contact at paulk.fr>
> ---
> tools/binman/binman.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/binman/binman.py b/tools/binman/binman.py
> index 4cc431fbbe..25a01d9adb 100755
> --- a/tools/binman/binman.py
> +++ b/tools/binman/binman.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/env python2
>
> # Copyright (c) 2016 Google, Inc
> # Written by Simon Glass <sjg at chromium.org>
> --
> 2.11.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
More information about the U-Boot
mailing list