diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-17 19:56:57 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-17 19:56:57 -0500 |
commit | a9605d90ebde79903c87f335a4a8c293a1618302 (patch) | |
tree | 695d4c706b73710a8f5780c5daff1d162c0f011f /experimental/qt5-qtwebkit/js-py3.patch | |
parent | 19f380a76b6b7d231ae34b9b28480db9ea3bf1de (diff) | |
download | packages-a9605d90ebde79903c87f335a4a8c293a1618302.tar.gz packages-a9605d90ebde79903c87f335a4a8c293a1618302.tar.bz2 packages-a9605d90ebde79903c87f335a4a8c293a1618302.tar.xz packages-a9605d90ebde79903c87f335a4a8c293a1618302.zip |
experimental/qt5-qtwebkit: Add Qt WebKit 5.212 alpha2 (does not build)
Python 2 -> 3 needed
JIT support for tier1 arches nice-to-have
Diffstat (limited to 'experimental/qt5-qtwebkit/js-py3.patch')
-rw-r--r-- | experimental/qt5-qtwebkit/js-py3.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/experimental/qt5-qtwebkit/js-py3.patch b/experimental/qt5-qtwebkit/js-py3.patch new file mode 100644 index 000000000..44e77cde0 --- /dev/null +++ b/experimental/qt5-qtwebkit/js-py3.patch @@ -0,0 +1,35 @@ +--- qtwebkit-5.212.0-alpha2/Source/JavaScriptCore/generate-bytecode-files (original) ++++ qtwebkit-5.212.0-alpha2/Source/JavaScriptCore/generate-bytecode-files (refactored) +@@ -91,7 +91,7 @@ + try: + return open(path, mode) + except IOError as e: +- print "I/O error opening {0}, ({1}): {2}".format(path, e.errno, e.strerror) ++ print("I/O error opening {0}, ({1}): {2}".format(path, e.errno, e.strerror)) + exit(1) + + def hashFile(file): +@@ -165,7 +165,7 @@ + try: + bytecodeSections = json.load(bytecodeFile, encoding = "utf-8") + except: +- print "Unexpected error parsing {0}: {1}".format(bytecodeJSONFile, sys.exc_info()) ++ print("Unexpected error parsing {0}: {1}".format(bytecodeJSONFile, sys.exc_info())) + + if bytecodeHFilename: + bytecodeHFile.write(hFileHashString) +--- qtwebkit-5.212.0-alpha2/Source/JavaScriptCore/generate-bytecode-files.old 2018-07-16 10:18:49.850000000 +0000 ++++ qtwebkit-5.212.0-alpha2/Source/JavaScriptCore/generate-bytecode-files 2018-07-16 10:22:35.290000000 +0000 +@@ -157,10 +157,10 @@ + exit(0) + + if bytecodeHFilename: +- bytecodeHFile = openOrExit(bytecodeHFilename, "wb") ++ bytecodeHFile = openOrExit(bytecodeHFilename, "w") + + if initASMFileName: +- initBytecodesFile = openOrExit(initASMFileName, "wb") ++ initBytecodesFile = openOrExit(initASMFileName, "w") + + try: + bytecodeSections = json.load(bytecodeFile, encoding = "utf-8") |