From patchwork Sun Jan 21 09:34:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 125266 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp618058ljf; Sun, 21 Jan 2018 01:35:38 -0800 (PST) X-Google-Smtp-Source: AH8x227UjyxZEVQI4u9a+A4gxBGSyXecqWWXUZIHcrVtg5wYFPE2ixa5+YpR8gFXbJ1NQnN6aSo7 X-Received: by 10.80.216.139 with SMTP id p11mr7622224edj.58.1516527338589; Sun, 21 Jan 2018 01:35:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516527338; cv=none; d=google.com; s=arc-20160816; b=0hpSray7Wm0VYy6l8jAvR7TPTDo+409NeQbGH+ewoRMUIArOIiLIn/F5EDHILjIUc+ Mzv3fF7bRpm8nSPPR4UQD6P8OJaG0GNnUBy69gWoS9wdIhgZPJJAffcj3YOf4VXdzpb3 sRShR6IMRMyz53g6qAQS63VPPWsyNwkUGx0OWtue14U6+EMq3H6JZNAKcouxL12ReYxh cR0Xy1/dCk1b0DjKbSG2GPnTdDjl10OhcBYyMH6u1LDROFhC4eEuyv43ruV/ySs9UAbU Lo1vOWyyRQRXdpiYDWTN/CTrudWLAAs2K4+cgPwSEZYSA5VlL0DCRHInoeUDC8oh0B6H GHkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :dkim-filter:arc-authentication-results; bh=cKk4XSIEmtfup23g9FXuGjvPQLN+K+Bx4jum7/MVVJw=; b=qdYBQ/U69rmQS0xQ1enebEaIUV4OvNREoeDKQ1APgtDgY8wGobxkXYTjEHZmN1o1sv +Bjv3YFrMpgeWquPC3+Zu8vw1wxVSmR1YvVomUHHAS1a0Xm2E9tADV+zpWEf3CmbQFsT 5BsA0MNSKF+WpRoP7MvS38eSJybHbSSy0xMGrisHYHkHq+otvbHBRQohb1QnV5eErZoc idz+aHe5hbTOgq8hWTW+L0wFNlGh4FiZUmSkfENYxxnKcxgOdeCNYAtg++jj5vZ4ySFe y4NrhqvEOm35RTgAUq4llrmsaVcMTtq8QWlkStATpCLsIzR3+aDHLclv9RgW0SfK18+q SYuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=vYW/S2vm; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id m25si2896383eda.396.2018.01.21.01.35.37; Sun, 21 Jan 2018 01:35:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=vYW/S2vm; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id A2C65C21FCD; Sun, 21 Jan 2018 09:35:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 6A042C21CEC; Sun, 21 Jan 2018 09:35:31 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 83776C21CEC; Sun, 21 Jan 2018 09:35:29 +0000 (UTC) Received: from conuserg-07.nifty.com (conuserg-07.nifty.com [210.131.2.74]) by lists.denx.de (Postfix) with ESMTPS id 738C2C21C29 for ; Sun, 21 Jan 2018 09:35:28 +0000 (UTC) Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-07.nifty.com with ESMTP id w0L9Z175008688; Sun, 21 Jan 2018 18:35:01 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com w0L9Z175008688 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1516527302; bh=bqDPCZJjB0/DqYFvj1E5QlQ0dYqOU5228uZh5rtrmVs=; h=From:To:Cc:Subject:Date:From; b=vYW/S2vmExMUF2Ewfe5pjsCAurWBEa9FjticHpnAZStk2V7httxpEm4dFmNzXzen5 D5erpslTwlhA58D2Tpd1IgrCPgC2aqBOQdKBZXRlvoeYs1nXHbewEs8V+z7s72tB7n p4/om0jHZKo0wE6aJ0Hl/V8ywGkafVv9wBliqQJ67S+ZncM0KpnC+Zyjxk1IXQLbqf Go02TyMF0W4rpAK80RLTTnb8XNxjo31BZPpAMRpt50zOo0KO8w4HUNOZyH1wSCSW2/ 6KVl6n/EOEUfuGfbLebJEw+bX92aju+s9N7Yli/e4AH6mIiOzjKedZSB4/Dy6ef2+x tIgDgPTi009sg== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Sun, 21 Jan 2018 18:34:57 +0900 Message-Id: <1516527297-10969-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Subject: [U-Boot] [PATCH] host-tools: use python2 explicitly for shebang X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" All of these host tools are apparently written for Python2, not Python3. Use 'python2' in the shebang line according to PEP 394 (https://www.python.org/dev/peps/pep-0394/). Signed-off-by: Masahiro Yamada Reviewed-by: Simon Glass --- I sent some time before figuring out why Patman does not work on my machine. If 'python' points to python3, Patman does not epit any error message, it just stays silent until it consumes all memory on the system. scripts/dtc/pylibfdt/setup.py | 2 +- scripts/mailmapper | 2 +- test/py/test.py | 2 +- tools/buildman/buildman.py | 2 +- tools/dtoc/dtoc.py | 2 +- tools/microcode-tool.py | 2 +- tools/patman/patman.py | 2 +- tools/rkmux.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/dtc/pylibfdt/setup.py b/scripts/dtc/pylibfdt/setup.py index daf1089..4f7cf04 100755 --- a/scripts/dtc/pylibfdt/setup.py +++ b/scripts/dtc/pylibfdt/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 """ setup.py file for SWIG libfdt diff --git a/scripts/mailmapper b/scripts/mailmapper index 922ada6..78b23d1 100755 --- a/scripts/mailmapper +++ b/scripts/mailmapper @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # # Copyright (C) 2014, Masahiro Yamada # diff --git a/test/py/test.py b/test/py/test.py index 74e560a..4695079 100755 --- a/test/py/test.py +++ b/test/py/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # Copyright (c) 2015 Stephen Warren # Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. diff --git a/tools/buildman/buildman.py b/tools/buildman/buildman.py index 11a4f16..473117c 100755 --- a/tools/buildman/buildman.py +++ b/tools/buildman/buildman.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # # Copyright (c) 2012 The Chromium OS Authors. # diff --git a/tools/dtoc/dtoc.py b/tools/dtoc/dtoc.py index ce7bc05..6eacfc9 100755 --- a/tools/dtoc/dtoc.py +++ b/tools/dtoc/dtoc.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 # # Copyright (C) 2016 Google, Inc # Written by Simon Glass diff --git a/tools/microcode-tool.py b/tools/microcode-tool.py index 790c27e..069d961 100755 --- a/tools/microcode-tool.py +++ b/tools/microcode-tool.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # # Copyright (c) 2014 Google, Inc # diff --git a/tools/patman/patman.py b/tools/patman/patman.py index 4b3bc78..7647440 100755 --- a/tools/patman/patman.py +++ b/tools/patman/patman.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # # Copyright (c) 2011 The Chromium OS Authors. # diff --git a/tools/rkmux.py b/tools/rkmux.py index 3917335..11c192a 100755 --- a/tools/rkmux.py +++ b/tools/rkmux.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 # Script to create enums from datasheet register tables #