diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2018-09-27 10:59:18 +0800 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2018-10-23 13:17:35 +0100 |
commit | 39e7ceaa9fc1f8f16d11ce43f60029b6f102145f (patch) | |
tree | 83eb4e3cf5f2e4163ff7152f68c4d7b0d544a5cd | |
parent | 295223cd94c46e4315998784188714d13eb873e2 (diff) | |
download | meta-selinux-39e7ceaa9fc1f8f16d11ce43f60029b6f102145f.tar.gz |
libpcre_selinux.inc: fix do_install failure if .so file does not exist
In case of the existence of meta-mingw, the library is .dll instead of
.so and these .dll files are in ${bindir}.
We need to check the existence of the .so file before doing readlink,
otherwise do_install fails.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r-- | recipes-support/libpcre/libpcre_selinux.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-support/libpcre/libpcre_selinux.inc b/recipes-support/libpcre/libpcre_selinux.inc index 59c0184..d886792 100644 --- a/recipes-support/libpcre/libpcre_selinux.inc +++ b/recipes-support/libpcre/libpcre_selinux.inc | |||
@@ -1,5 +1,5 @@ | |||
1 | do_install_append () { | 1 | do_install_append () { |
2 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then | 2 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} -a -e ${D}${libdir}/libpcre.so ]; then |
3 | realsofile=`readlink ${D}${libdir}/libpcre.so` | 3 | realsofile=`readlink ${D}${libdir}/libpcre.so` |
4 | mkdir -p ${D}/${base_libdir}/ | 4 | mkdir -p ${D}/${base_libdir}/ |
5 | mv -f ${D}${libdir}/libpcre.so.* ${D}${base_libdir}/ | 5 | mv -f ${D}${libdir}/libpcre.so.* ${D}${base_libdir}/ |