From 4b65102012d7278be56485c2df5a38b75bfd9147 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Fri, 8 Jul 2016 11:29:04 +0100 Subject: python-imaging: Add patch to fix host sysroot fails Signed-off-by: Andrei Gherzan Acked-by: Tim Orling Signed-off-by: Martin Jansa --- .../python/python-imaging/remove-host-libdir.patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python-imaging/remove-host-libdir.patch (limited to 'meta-python/recipes-devtools/python/python-imaging/remove-host-libdir.patch') diff --git a/meta-python/recipes-devtools/python/python-imaging/remove-host-libdir.patch b/meta-python/recipes-devtools/python/python-imaging/remove-host-libdir.patch new file mode 100644 index 000000000..028a51ad5 --- /dev/null +++ b/meta-python/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 + + +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 + -- cgit v1.2.3-54-g00ecf