diff options
| author | Phil Blundell <pb@pbcl.net> | 2013-04-24 17:39:59 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-29 14:45:06 +0100 |
| commit | 46b021c931684325e4e46712087756354d4459b4 (patch) | |
| tree | c9757ac0c1fa883241620355767a62b3776c83a9 | |
| parent | 0825378aaa1f2b4f1b680d17393a2f6bc58cf2b5 (diff) | |
| download | poky-46b021c931684325e4e46712087756354d4459b4.tar.gz | |
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.
(From OE-Core rev: 23b5dd2ab8a556fcef3aa34689310d9d5f61b3d1)
Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-core/eglibc/eglibc-package.inc | 10 |
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 () { | |||
| 84 | if [ -e "${D}${infodir}/dir" ]; then | 84 | if [ -e "${D}${infodir}/dir" ]; then |
| 85 | rm -f ${D}${infodir}/dir | 85 | rm -f ${D}${infodir}/dir |
| 86 | fi | 86 | fi |
| 87 | |||
| 88 | if [ "${USE_LDCONFIG}" != "1" ]; then | ||
| 89 | # We won't ship this file (see FILES above) so let's not install it | ||
| 90 | rm -f ${D}${sysconfdir}/ld.so.conf | ||
| 91 | # This directory will be empty now so remove it too. | ||
| 92 | # But check whether it exists first, since it won't for eglibc-initial. | ||
| 93 | if [ -d ${D}${sysconfdir} ]; then | ||
| 94 | rmdir ${D}${sysconfdir} | ||
| 95 | fi | ||
| 96 | fi | ||
| 87 | } | 97 | } |
| 88 | 98 | ||
| 89 | do_install_locale () { | 99 | do_install_locale () { |
