aboutsummaryrefslogtreecommitdiffstats
path: root/testing/emscripten/fix-python-shebang.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/emscripten/fix-python-shebang.patch')
-rw-r--r--testing/emscripten/fix-python-shebang.patch104
1 files changed, 104 insertions, 0 deletions
diff --git a/testing/emscripten/fix-python-shebang.patch b/testing/emscripten/fix-python-shebang.patch
new file mode 100644
index 0000000000..4cb0c3d6a8
--- /dev/null
+++ b/testing/emscripten/fix-python-shebang.patch
@@ -0,0 +1,104 @@
+--- a/em++
++++ b/em++
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python2
+
+ # This script should work in python 2 *or* 3. It loads emcc.py, which needs python 2.
+ # It also tells emcc.py that we want C++ and not C by default
+--- a/em++.py
++++ b/em++.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python2
+
+ # This script should work in python 2 *or* 3. It loads emcc.py, which needs python 2.
+ # It also tells emcc.py that we want C++ and not C by default
+--- a/emar
++++ b/emar
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python2
+
+ # This script should work in python 2 *or* 3. It loads emar.py, which needs python 2.
+
+--- a/emcc
++++ b/emcc
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python2
+
+ # This script should work in python 2 *or* 3. It loads emcc.py, which needs python 2.
+
+--- a/emcmake
++++ b/emcmake
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python2
+
+ # This script should work in python 2 *or* 3. It loads emcmake.py, which needs python 2.
+
+--- a/emconfigure
++++ b/emconfigure
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python2
+
+ # This script should work in python 2 *or* 3. It loads emconfigure.py, which needs python 2.
+
+--- a/emmake
++++ b/emmake
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python2
+
+ # This script should work in python 2 *or* 3. It loads emmake.py, which needs python 2.
+
+--- a/emranlib
++++ b/emranlib
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python2
+
+ '''
+ emcc - ranlib helper script
+--- a/emrun
++++ b/emrun
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python2
+
+ # emrun: Implements machinery that allows running a .html page as if it was a standard executable file.
+ # Usage: emrun <options> filename.html <args to program>
+--- a/system/bin/sdl-config
++++ b/system/bin/sdl-config
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python2
+
+ from __future__ import print_function
+ import sys
+--- a/system/bin/sdl2-config
++++ b/system/bin/sdl2-config
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python2
+
+ from __future__ import print_function
+ import sys
+--- a/tools/emprofile.py
++++ b/tools/emprofile.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python2
+
+ import sys, shutil, os, json, tempfile, time
+
+--- a/tools/ffdb.py
++++ b/tools/ffdb.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python2
+
+ import socket, json, sys, uuid, datetime, time, logging, cgi, zipfile, os, tempfile, atexit, subprocess, re, base64, struct, imghdr
+