[oe-commits] [meta-openembedded] 25/44: python-imaging: Add patch to fix host sysroot fails
git at git.openembedded.org
git at git.openembedded.org
Mon Jul 11 13:39:18 UTC 2016
martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.
commit fb269edd4ab992eca3fc5ec34a39e5ec73489f91
Author: Andrei Gherzan <andrei at gherzan.ro>
AuthorDate: Fri Jul 8 11:29:04 2016 +0100
python-imaging: Add patch to fix host sysroot fails
Signed-off-by: Andrei Gherzan <andrei at resin.io>
Acked-by: Tim Orling <ticotimo at gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
.../python/python-imaging/remove-host-libdir.patch | 25 ++++++++++++++++++++++
.../python/python-imaging_1.1.7.bb | 3 ++-
2 files changed, 27 insertions(+), 1 deletion(-)
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 0000000..028a51a
--- /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 <andrei at 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
+
diff --git a/meta-python/recipes-devtools/python/python-imaging_1.1.7.bb b/meta-python/recipes-devtools/python/python-imaging_1.1.7.bb
index a678328..d2f1a8c 100644
--- a/meta-python/recipes-devtools/python/python-imaging_1.1.7.bb
+++ b/meta-python/recipes-devtools/python/python-imaging_1.1.7.bb
@@ -9,7 +9,8 @@ PR = "r5"
SRC_URI = "http://effbot.org/downloads/Imaging-${PV}.tar.gz \
file://0001-python-imaging-setup.py-force-paths-for-zlib-freetyp.patch \
file://allow.to.disable.some.features.patch \
- file://fix-freetype-includes.patch"
+ file://fix-freetype-includes.patch \
+ file://remove-host-libdir.patch"
SRC_URI[md5sum] = "fc14a54e1ce02a0225be8854bfba478e"
SRC_URI[sha256sum] = "895bc7c2498c8e1f9b99938f1a40dc86b3f149741f105cf7c7bd2e0725405211"
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list