aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/automake/automake/py-compile-compile-only-optimized-byte-code.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/automake/automake/py-compile-compile-only-optimized-byte-code.patch')
-rw-r--r--meta/recipes-devtools/automake/automake/py-compile-compile-only-optimized-byte-code.patch28
1 files changed, 14 insertions, 14 deletions
diff --git a/meta/recipes-devtools/automake/automake/py-compile-compile-only-optimized-byte-code.patch b/meta/recipes-devtools/automake/automake/py-compile-compile-only-optimized-byte-code.patch
index f09bfbca5d..f8334a7212 100644
--- a/meta/recipes-devtools/automake/automake/py-compile-compile-only-optimized-byte-code.patch
+++ b/meta/recipes-devtools/automake/automake/py-compile-compile-only-optimized-byte-code.patch
@@ -5,20 +5,20 @@ Upstream-Status: Inappropriate [embedded specific]
pyc files by automake.
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
----
- lib/py-compile | 17 -----------------
- 1 files changed, 0 insertions(+), 17 deletions(-)
-diff --git a/lib/py-compile b/lib/py-compile
-index 3f9d05b..101c814 100755
---- a/lib/py-compile
-+++ b/lib/py-compile
-@@ -101,23 +101,6 @@ else
+Updated for automake-1.12.6
+
+Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
+
+diff -Nurd automake-1.12.6/lib/py-compile automake-1.12.6/lib/py-compile
+--- automake-1.12.6/lib/py-compile 2012-12-13 21:57:31.000000000 +0200
++++ automake-1.12.6/lib/py-compile 2012-12-27 19:34:01.426015140 +0200
+@@ -115,26 +115,6 @@
filetrans="filepath = os.path.normpath('$destdir' + os.sep + path)"
fi
-$PYTHON -c "
--import sys, os, py_compile
+-import sys, os, py_compile, imp
-
-files = '''$files'''
-
@@ -31,12 +31,12 @@ index 3f9d05b..101c814 100755
- continue
- sys.stdout.write(file)
- sys.stdout.flush()
-- py_compile.compile(filepath, filepath + 'c', path)
+- if hasattr(imp, 'get_tag'):
+- py_compile.compile(filepath, imp.cache_from_source(filepath), path)
+- else:
+- py_compile.compile(filepath, filepath + 'c', path)
-sys.stdout.write('\n')" || exit $?
-
# this will fail for python < 1.5, but that doesn't matter ...
$PYTHON -O -c "
- import sys, os, py_compile
---
-1.7.0.4
-
+ import sys, os, py_compile, imp