]> code.ossystems Code Review - openembedded-core.git/commit
glibc-package: fix locale cleanup logic
authorKoen Kooi <koen@dominion.thruhere.net>
Tue, 27 Mar 2018 07:04:16 +0000 (09:04 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Mar 2018 23:28:37 +0000 (00:28 +0100)
commitd8f4c7794f15f7071ee8e621d7964cb4b4134630
treefc3e62eed8c78ad10d03181af59a6cd36124aa17
parent3f203582ac646f96e6b86ec4b19721e7a78d55f8
glibc-package: fix locale cleanup logic

If ${libdir} is a subdirectory of ${prefix}/lib, e.g. /usr/lib/aarch64-linux, the cleanup logic will delete libc.so.

This bit of code was added in 2012 (git show b744f4cc) to remove /usr/lib/locale, this commit makes it remove that directory recursively and afterwards remove /usr/lib, erroring out if it's non-empty.

Tested with a plain (/usr/lib), a 64-bit (/usr/lib64) and a multiarch (/usr/lib/aarch64-linux) build. I strongly suspect this whole bit of cleanup isn't needed anymore, but my testing is too limited to be certain.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/glibc/glibc-package.inc