python-wand: Add patch to ensure our built ImageMagick is used
[AGL/meta-agl.git] / meta-agl-bsp / meta-rcar-gen3 / recipes-backport / python_bp / python-wand / 0001-wand-api.py-Change-search-order.patch
1 From 7691ebcf38c59332eb819f909250a22ba5e8e50b Mon Sep 17 00:00:00 2001
2 From: Tom Rini <trini@konsulko.com>
3 Date: Tue, 24 Oct 2017 12:01:51 -0400
4 Subject: [PATCH 1/1] wand/api.py: Change search order
5
6 In addition to specifying MAGICK_HOME to ensure that we will even look
7 within our desired paths, we need to also check for the type of library
8 that we know we have.  Otherwise we may find a different form of the
9 library in one of the system paths before we try ours.
10
11 Upstream-Status: Inappropriate [configuration]
12 Signed-off-by: Tom Rini <trini@konsulko.com>
13 ---
14  wand/api.py | 2 +-
15  1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/wand/api.py b/wand/api.py
18 index 19cf6d2..dde9c5e 100644
19 --- a/wand/api.py
20 +++ b/wand/api.py
21 @@ -55,7 +55,7 @@ def library_paths():
22      """
23      libwand = None
24      libmagick = None
25 -    versions = '', '-6', '-Q16', '-Q8', '-6.Q16'
26 +    versions = '-6.Q16', '-6', '-Q16', '-Q8', ''
27      options = '', 'HDRI', 'HDRI-2'
28      system = platform.system()
29      magick_home = os.environ.get('MAGICK_HOME')
30 -- 
31 2.11.0
32