aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-devtools/python/python-imaging
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2016-07-08 11:29:04 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2016-07-22 21:45:32 +0200
commitabbd0b520e6a5c18c5464b7f2c78b66ea512bc56 (patch)
tree196b7b7365bc624905e0588191bb547807dba5b0 /recipes-devtools/python/python-imaging
parent7918c1b0f1c81ab47338e5809a477f158e099e9e (diff)
downloadmeta-python2-abbd0b520e6a5c18c5464b7f2c78b66ea512bc56.tar.gz
python-imaging: Add patch to fix host sysroot fails
(From meta-openembedded commit: 4b65102012d7278be56485c2df5a38b75bfd9147) Signed-off-by: Andrei Gherzan <andrei@resin.io> Acked-by: Tim Orling <ticotimo@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Tim Orling <ticotimo@gmail.com>
Diffstat (limited to 'recipes-devtools/python/python-imaging')
-rw-r--r--recipes-devtools/python/python-imaging/remove-host-libdir.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/recipes-devtools/python/python-imaging/remove-host-libdir.patch b/recipes-devtools/python/python-imaging/remove-host-libdir.patch
new file mode 100644
index 0000000..028a51a
--- /dev/null
+++ b/recipes-devtools/python/python-imaging/remove-host-libdir.patch
@@ -0,0 +1,25 @@
+Avoid getting host sysroot paths in the library paths to fix issue like:
+
+| /home/andrei/work/yocto/build-rpi-master/tmp/sysroots/x86_64-linux/usr/lib/libz.so: file not recognized: File format not recognized
+
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
+
+
+Index: Imaging-1.1.7/setup.py
+===================================================================
+--- Imaging-1.1.7.orig/setup.py
++++ Imaging-1.1.7/setup.py
+@@ -155,11 +155,6 @@ class pil_build_ext(build_ext):
+
+ # FIXME: check /opt/stuff directories here?
+
+- prefix = sysconfig.get_config_var("prefix")
+- if prefix:
+- add_directory(library_dirs, os.path.join(prefix, "lib"))
+- add_directory(include_dirs, os.path.join(prefix, "include"))
+-
+ #
+ # locate tkinter libraries
+