cracklib: fix for base_libdir == libdir

Don't try and move the python packages from base_libdir to libdir
if they are the same location.

(From OE-Core rev: bb6a34a6c70206e46011e6d946f47a9acba7371d)

Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joshua Lock 2015-12-01 21:41:00 +00:00 committed by Richard Purdie
parent d9f73ca6df
commit 11b952412f
1 changed files with 7 additions and 4 deletions

View File

@ -28,10 +28,13 @@ do_install_append() {
src_dir="${D}${base_libdir}/${PYTHON_DIR}/site-packages"
rm -f $src_dir/*.pyo
rm -f $src_dir/test_cracklib.py
# Move python files from ${base_libdir} to ${libdir} since used --libdir=${base_libdir}
install -d -m 0755 ${D}${PYTHON_SITEPACKAGES_DIR}/
mv $src_dir/* ${D}${PYTHON_SITEPACKAGES_DIR}
rm -fr ${D}${base_libdir}/${PYTHON_DIR}
if [ "${base_libdir}" != "${libdir}" ] ; then
# Move python files from ${base_libdir} to ${libdir} since used --libdir=${base_libdir}
install -d -m 0755 ${D}${PYTHON_SITEPACKAGES_DIR}/
mv $src_dir/* ${D}${PYTHON_SITEPACKAGES_DIR}
rm -fr ${D}${base_libdir}/${PYTHON_DIR}
fi
}
BBCLASSEXTEND = "native nativesdk"