summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorPhil Blundell <pb@pbcl.net>2013-04-24 17:39:59 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-29 14:43:50 +0100
commit23b5dd2ab8a556fcef3aa34689310d9d5f61b3d1 (patch)
treefe49d4fc60b272d5049a3a924344820fef2fa01e /meta
parent6389b4c6c58def894bd895e797c2d579439f69d5 (diff)
downloadopenembedded-core-23b5dd2ab8a556fcef3aa34689310d9d5f61b3d1.tar.gz
openembedded-core-23b5dd2ab8a556fcef3aa34689310d9d5f61b3d1.tar.bz2
openembedded-core-23b5dd2ab8a556fcef3aa34689310d9d5f61b3d1.zip
eglibc: Avoid "installed but not shipped" warning for ld.so.conf
If USE_LDCONFIG is not set then we won't ship ld.so.conf. However, eglibc still installs it which leads to a QA warning. Prevent that by removing the file (and the subsequently-empty directory /etc) in this situation. Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/eglibc/eglibc-package.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-package.inc b/meta/recipes-core/eglibc/eglibc-package.inc
index 88a00a49a8..f144273c19 100644
--- a/meta/recipes-core/eglibc/eglibc-package.inc
+++ b/meta/recipes-core/eglibc/eglibc-package.inc
@@ -84,6 +84,16 @@ do_install_append () {
if [ -e "${D}${infodir}/dir" ]; then
rm -f ${D}${infodir}/dir
fi
+
+ if [ "${USE_LDCONFIG}" != "1" ]; then
+ # We won't ship this file (see FILES above) so let's not install it
+ rm -f ${D}${sysconfdir}/ld.so.conf
+ # This directory will be empty now so remove it too.
+ # But check whether it exists first, since it won't for eglibc-initial.
+ if [ -d ${D}${sysconfdir} ]; then
+ rmdir ${D}${sysconfdir}
+ fi
+ fi
}
do_install_locale () {