diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2013-04-07 09:57:22 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-04-11 17:02:58 +0200 |
commit | 130a48356b79f1a78b3d25b14ae07a32bb4437e5 (patch) | |
tree | fdb74f2d62a14b6042422180c5d201e9ed654654 /package/qt5/qt5jsbackend/qt5jsbackend-dont-import-bz2-python-module.patch | |
parent | 55fde61f67d0e4c9a1473d5d27aa3ebf6c32f103 (diff) | |
download | buildroot-novena-130a48356b79f1a78b3d25b14ae07a32bb4437e5.tar.gz buildroot-novena-130a48356b79f1a78b3d25b14ae07a32bb4437e5.zip |
qt5/qt5jsbackend: new package
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/qt5/qt5jsbackend/qt5jsbackend-dont-import-bz2-python-module.patch')
-rw-r--r-- | package/qt5/qt5jsbackend/qt5jsbackend-dont-import-bz2-python-module.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/package/qt5/qt5jsbackend/qt5jsbackend-dont-import-bz2-python-module.patch b/package/qt5/qt5jsbackend/qt5jsbackend-dont-import-bz2-python-module.patch new file mode 100644 index 000000000..08f343e5e --- /dev/null +++ b/package/qt5/qt5jsbackend/qt5jsbackend-dont-import-bz2-python-module.patch @@ -0,0 +1,29 @@ +Only import bz2 python module when needed + +The js2c.py script imports the bz2 module unconditionnally, which +would require us to build the bzip2 support in host-python. Since in +fact bzip2 support is not technically used when building this package, +we ensure that the bz2 module is only imported when needed. + +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> + +Index: b/src/3rdparty/v8/tools/js2c.py +=================================================================== +--- a/src/3rdparty/v8/tools/js2c.py ++++ b/src/3rdparty/v8/tools/js2c.py +@@ -33,7 +33,6 @@ + + import os, re, sys, string + import jsmin +-import bz2 + + + def ToCAsciiArray(lines): +@@ -344,6 +343,7 @@ + else: + raw_sources_declaration = RAW_SOURCES_COMPRESSION_DECLARATION + if env['COMPRESSION'] == 'bz2': ++ import bz2 + all_sources = bz2.compress("".join(all_sources)) + total_length = len(all_sources) + sources_data = ToCArray(all_sources) |