diff options
author | Fatih Aşıcı <fatih.asici@gmail.com> | 2013-10-02 09:32:02 +0300 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2013-10-02 09:44:31 +0200 |
commit | 62802d24c07b0b5c5c4b9f5775ed49463c2a6891 (patch) | |
tree | a1b91e768714982f6b1836470f8b2a2d21f65b97 /package/qt5/qt5jsbackend/qt5jsbackend-0001-dont-import-bz2-python-module.patch | |
parent | 63682ae471856c93a60b8173bf929006493d374d (diff) | |
download | buildroot-62802d24c07b0b5c5c4b9f5775ed49463c2a6891.tar.gz buildroot-62802d24c07b0b5c5c4b9f5775ed49463c2a6891.zip |
qt5: give numbers to patch files
Signed-off-by: Fatih Aşıcı <fatih.asici@gmail.com>
Acked-by: "Samuel Martin" <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/qt5/qt5jsbackend/qt5jsbackend-0001-dont-import-bz2-python-module.patch')
-rw-r--r-- | package/qt5/qt5jsbackend/qt5jsbackend-0001-dont-import-bz2-python-module.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/package/qt5/qt5jsbackend/qt5jsbackend-0001-dont-import-bz2-python-module.patch b/package/qt5/qt5jsbackend/qt5jsbackend-0001-dont-import-bz2-python-module.patch new file mode 100644 index 0000000000..08f343e5ea --- /dev/null +++ b/package/qt5/qt5jsbackend/qt5jsbackend-0001-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) |