From: Jonathan Gray Date: Thu, 23 Feb 2017 00:25:48 +1100 Subject: [U-Boot] [PATCH] binman: Explicitly request python2 instead of python from env In-Reply-To: <20170220184134.25491-1-contact@paulk.fr> References: <20170220184134.25491-1-contact@paulk.fr> Message-ID: <20170222132548.GA53345@largo.jsg.id.au> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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 > -- > 2.11.1 > > _______________________________________________ > U-Boot mailing list > U-Boot at lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot