changeset 36b064696175 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=36b064696175
description:
        misc: Update #!env calls for python to explicit version

        In some newer Linux distributions, env python default to Python 3.0. 
This
        patch explicitly uses "python2" instead of just "python" for all scripts
        that use #!

        Reported-by: Sanchayan Maity <[email protected]>
        Signed-off-by: Jason Lowe-Power <[email protected]>

diffstat:

 ext/mcpat/regression/regression.py    |  2 +-
 ext/mcpat/regression/verify_output.py |  2 +-
 ext/ply/example/classcalc/calc.py     |  2 +-
 ext/ply/example/newclasscalc/calc.py  |  2 +-
 src/unittest/genini.py                |  2 +-
 tests/testing/__init__.py             |  2 +-
 tests/testing/helpers.py              |  2 +-
 tests/testing/results.py              |  2 +-
 tests/testing/tests.py                |  2 +-
 tests/testing/units.py                |  2 +-
 tests/tests.py                        |  2 +-
 util/batch/job.py                     |  2 +-
 util/batch/send.py                    |  2 +-
 util/checkpoint-tester.py             |  2 +-
 util/compile                          |  2 +-
 util/cpt_upgrader.py                  |  2 +-
 util/decode_inst_dep_trace.py         |  2 +-
 util/decode_inst_trace.py             |  2 +-
 util/decode_packet_trace.py           |  2 +-
 util/dram_lat_mem_rd_plot.py          |  2 +-
 util/dram_sweep_plot.py               |  2 +-
 util/encode_inst_dep_trace.py         |  2 +-
 util/encode_packet_trace.py           |  2 +-
 util/find_copyrights.py               |  2 +-
 util/git-pre-commit.py                |  2 +-
 util/hgstyle.py                       |  2 +-
 util/maint/git-patch-to-hg-patch      |  2 +-
 util/memtest-soak.py                  |  2 +-
 util/minorview.py                     |  2 +-
 util/o3-pipeview.py                   |  2 +-
 util/oprofile-top.py                  |  2 +-
 util/pbs/job.py                       |  2 +-
 util/pbs/send.py                      |  2 +-
 util/protolib.py                      |  2 +-
 util/qdo                              |  2 +-
 util/regress                          |  2 +-
 util/slicc                            |  2 +-
 util/stats/stats.py                   |  2 +-
 util/streamline/m5stats2streamline.py |  2 +-
 util/style.py                         |  2 +-
 util/style/__init__.py                |  2 +-
 util/style/repo.py                    |  2 +-
 util/style/sort_includes.py           |  2 +-
 util/style/style.py                   |  2 +-
 util/style/verifiers.py               |  2 +-
 45 files changed, 45 insertions(+), 45 deletions(-)

diffs (truncated from 405 to 300 lines):

diff -r 7788325d6855 -r 36b064696175 ext/mcpat/regression/regression.py
--- a/ext/mcpat/regression/regression.py        Fri Feb 10 10:00:18 2017 -0500
+++ b/ext/mcpat/regression/regression.py        Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2010-2013 Advanced Micro Devices, Inc.
 # All rights reserved.
diff -r 7788325d6855 -r 36b064696175 ext/mcpat/regression/verify_output.py
--- a/ext/mcpat/regression/verify_output.py     Fri Feb 10 10:00:18 2017 -0500
+++ b/ext/mcpat/regression/verify_output.py     Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2010-2013 Advanced Micro Devices, Inc.
 # All rights reserved.
diff -r 7788325d6855 -r 36b064696175 ext/ply/example/classcalc/calc.py
--- a/ext/ply/example/classcalc/calc.py Fri Feb 10 10:00:18 2017 -0500
+++ b/ext/ply/example/classcalc/calc.py Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # -----------------------------------------------------------------------------
 # calc.py
diff -r 7788325d6855 -r 36b064696175 ext/ply/example/newclasscalc/calc.py
--- a/ext/ply/example/newclasscalc/calc.py      Fri Feb 10 10:00:18 2017 -0500
+++ b/ext/ply/example/newclasscalc/calc.py      Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # -----------------------------------------------------------------------------
 # calc.py
diff -r 7788325d6855 -r 36b064696175 src/unittest/genini.py
--- a/src/unittest/genini.py    Fri Feb 10 10:00:18 2017 -0500
+++ b/src/unittest/genini.py    Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2005 The Regents of The University of Michigan
 # All rights reserved.
 #
diff -r 7788325d6855 -r 36b064696175 tests/testing/__init__.py
--- a/tests/testing/__init__.py Fri Feb 10 10:00:18 2017 -0500
+++ b/tests/testing/__init__.py Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 #
 # Copyright (c) 2016 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 tests/testing/helpers.py
--- a/tests/testing/helpers.py  Fri Feb 10 10:00:18 2017 -0500
+++ b/tests/testing/helpers.py  Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 #
 # Copyright (c) 2016 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 tests/testing/results.py
--- a/tests/testing/results.py  Fri Feb 10 10:00:18 2017 -0500
+++ b/tests/testing/results.py  Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 #
 # Copyright (c) 2016 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 tests/testing/tests.py
--- a/tests/testing/tests.py    Fri Feb 10 10:00:18 2017 -0500
+++ b/tests/testing/tests.py    Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 #
 # Copyright (c) 2016 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 tests/testing/units.py
--- a/tests/testing/units.py    Fri Feb 10 10:00:18 2017 -0500
+++ b/tests/testing/units.py    Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 #
 # Copyright (c) 2016 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 tests/tests.py
--- a/tests/tests.py    Fri Feb 10 10:00:18 2017 -0500
+++ b/tests/tests.py    Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 #
 # Copyright (c) 2016 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 util/batch/job.py
--- a/util/batch/job.py Fri Feb 10 10:00:18 2017 -0500
+++ b/util/batch/job.py Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2006 The Regents of The University of Michigan
 # All rights reserved.
 #
diff -r 7788325d6855 -r 36b064696175 util/batch/send.py
--- a/util/batch/send.py        Fri Feb 10 10:00:18 2017 -0500
+++ b/util/batch/send.py        Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2006 The Regents of The University of Michigan
 # All rights reserved.
 #
diff -r 7788325d6855 -r 36b064696175 util/checkpoint-tester.py
--- a/util/checkpoint-tester.py Fri Feb 10 10:00:18 2017 -0500
+++ b/util/checkpoint-tester.py Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
 
 # Copyright (c) 2010 Advanced Micro Devices, Inc.
 # All rights reserved.
diff -r 7788325d6855 -r 36b064696175 util/compile
--- a/util/compile      Fri Feb 10 10:00:18 2017 -0500
+++ b/util/compile      Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2006 The Regents of The University of Michigan
 # All rights reserved.
 #
diff -r 7788325d6855 -r 36b064696175 util/cpt_upgrader.py
--- a/util/cpt_upgrader.py      Fri Feb 10 10:00:18 2017 -0500
+++ b/util/cpt_upgrader.py      Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2012-2013,2015 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 util/decode_inst_dep_trace.py
--- a/util/decode_inst_dep_trace.py     Fri Feb 10 10:00:18 2017 -0500
+++ b/util/decode_inst_dep_trace.py     Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2013 - 2015 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 util/decode_inst_trace.py
--- a/util/decode_inst_trace.py Fri Feb 10 10:00:18 2017 -0500
+++ b/util/decode_inst_trace.py Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2013-2014 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 util/decode_packet_trace.py
--- a/util/decode_packet_trace.py       Fri Feb 10 10:00:18 2017 -0500
+++ b/util/decode_packet_trace.py       Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2013-2014 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 util/dram_lat_mem_rd_plot.py
--- a/util/dram_lat_mem_rd_plot.py      Fri Feb 10 10:00:18 2017 -0500
+++ b/util/dram_lat_mem_rd_plot.py      Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2015 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 util/dram_sweep_plot.py
--- a/util/dram_sweep_plot.py   Fri Feb 10 10:00:18 2017 -0500
+++ b/util/dram_sweep_plot.py   Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2014 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 util/encode_inst_dep_trace.py
--- a/util/encode_inst_dep_trace.py     Fri Feb 10 10:00:18 2017 -0500
+++ b/util/encode_inst_dep_trace.py     Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2015 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 util/encode_packet_trace.py
--- a/util/encode_packet_trace.py       Fri Feb 10 10:00:18 2017 -0500
+++ b/util/encode_packet_trace.py       Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2013-2014 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 util/find_copyrights.py
--- a/util/find_copyrights.py   Fri Feb 10 10:00:18 2017 -0500
+++ b/util/find_copyrights.py   Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 import os
 import re
diff -r 7788325d6855 -r 36b064696175 util/git-pre-commit.py
--- a/util/git-pre-commit.py    Fri Feb 10 10:00:18 2017 -0500
+++ b/util/git-pre-commit.py    Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 #
 # Copyright (c) 2016 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 util/hgstyle.py
--- a/util/hgstyle.py   Fri Feb 10 10:00:18 2017 -0500
+++ b/util/hgstyle.py   Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
 # Copyright (c) 2014 ARM Limited
 # All rights reserved
 #
diff -r 7788325d6855 -r 36b064696175 util/maint/git-patch-to-hg-patch
--- a/util/maint/git-patch-to-hg-patch  Fri Feb 10 10:00:18 2017 -0500
+++ b/util/maint/git-patch-to-hg-patch  Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 #
 # This file originated from the moz-git-tools repo on GitHub
 # (https://github.com/mozilla/moz-git-tools), which contains the
diff -r 7788325d6855 -r 36b064696175 util/memtest-soak.py
--- a/util/memtest-soak.py      Fri Feb 10 10:00:18 2017 -0500
+++ b/util/memtest-soak.py      Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
 
 # Copyright (c) 2015 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 util/minorview.py
--- a/util/minorview.py Fri Feb 10 10:00:18 2017 -0500
+++ b/util/minorview.py Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 #
 # Copyright (c) 2013 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 util/o3-pipeview.py
--- a/util/o3-pipeview.py       Fri Feb 10 10:00:18 2017 -0500
+++ b/util/o3-pipeview.py       Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
 
 # Copyright (c) 2011 ARM Limited
 # All rights reserved
diff -r 7788325d6855 -r 36b064696175 util/oprofile-top.py
--- a/util/oprofile-top.py      Fri Feb 10 10:00:18 2017 -0500
+++ b/util/oprofile-top.py      Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
 
 # Copyright (c) 2005 The Regents of The University of Michigan
 # All rights reserved.
diff -r 7788325d6855 -r 36b064696175 util/pbs/job.py
--- a/util/pbs/job.py   Fri Feb 10 10:00:18 2017 -0500
+++ b/util/pbs/job.py   Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2005 The Regents of The University of Michigan
 # All rights reserved.
 #
diff -r 7788325d6855 -r 36b064696175 util/pbs/send.py
--- a/util/pbs/send.py  Fri Feb 10 10:00:18 2017 -0500
+++ b/util/pbs/send.py  Fri Feb 10 10:00:18 2017 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2005 The Regents of The University of Michigan
 # All rights reserved.
 #
diff -r 7788325d6855 -r 36b064696175 util/protolib.py
--- a/util/protolib.py  Fri Feb 10 10:00:18 2017 -0500
+++ b/util/protolib.py  Fri Feb 10 10:00:18 2017 -0500
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to