1 From 12292444e1b3662b994bc223d92b8338fb0895ff Mon Sep 17 00:00:00 2001
2 From: Changqing Li <changqing.li@windriver.com>
3 Date: Thu, 25 Oct 2018 07:32:14 +0000
4 Subject: [PATCH] python-native: fix one do_populate_sysroot warning
7 WARNING: Skipping RPATH /usr/lib64 as is a standard search path for
8 work/x86_64-linux/python-native/2.7.15-r1.1/recipe-sysroot-native/
9 usr/lib/python2.7/lib-dynload/_bsddb.so
11 setup.py will check db.h under include_dirs, for native build,
12 /usr/lib64 will be insert to postion 0 of include_dirs, so
13 it's priority is higher then our sysroot, cause db.h sysroot
14 is ignored, and rpath set to /usr/lib64. and this cause warning
15 when do_populate_sysroot. use append to fix it.
17 Upstream-Status: Inappropriate [oe-specific]
19 Signed-off-by: Changqing Li <changqing.li@windriver.com>
22 1 file changed, 1 insertion(+), 1 deletion(-)
24 diff --git a/setup.py b/setup.py
25 index 7bf13ed..6c0f29b 100644
28 @@ -40,7 +40,7 @@ def add_dir_to_list(dirlist, dir):
29 1) 'dir' is not already in 'dirlist'
30 2) 'dir' actually exists, and is a directory."""
31 if dir is not None and os.path.isdir(dir) and dir not in dirlist:
32 - dirlist.insert(0, dir)
35 def macosx_sdk_root():