diff options
author | Marko Lindqvist <cazfi74@gmail.com> | 2012-12-28 00:05:34 +0200 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-01-04 22:12:04 -0800 |
commit | f2a530be5941ddf708720b920d0213d7d3928cd1 (patch) | |
tree | 82cb45f2fc1534b578d2b9c509731b0a4f83a5ef /meta/recipes-devtools/automake/automake/py-compile-compile-only-optimized-byte-code.patch | |
parent | 3b5fe6d2cd58b5db70c3d319ffc66b1cbff1f43a (diff) | |
download | openembedded-core-contrib-f2a530be5941ddf708720b920d0213d7d3928cd1.tar.gz |
automake: update to upstream version 1.12.6
python-libdir.patch and py-compile-only-optimized-byte-code.patch
updated to apply to new codebase.
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
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.patch | 28 |
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 |