diff options
author | Denys Dmytriyenko <denis@denix.org> | 2022-09-28 22:06:45 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-29 21:15:50 +0100 |
commit | 0d3e0138c5a2e45ca2ade30832161e7cbedacee8 (patch) | |
tree | 354c5dbcabdbe0f76331105dcbb4a96404c5c718 /meta | |
parent | 0533edac277080e1bd130c14df0cbac61ba01a0c (diff) | |
download | poky-0d3e0138c5a2e45ca2ade30832161e7cbedacee8.tar.gz |
glibc-locale: explicitly remove empty dirs in ${libdir}
glibc-locale defaults to ENABLE_BINARY_LOCALE_GENERATION ?= "0", but gets
changed to "1" in the default-distrovars.inc
When it is explicitly set back to "0", it fails with this error:
ERROR: glibc-locale-2.36-r0 do_package: QA Issue: glibc-locale: Files/directories were installed but not shipped in any package:
/usr/lib/locale
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
glibc-locale: 1 installed and not shipped files. [installed-vs-shipped]
ERROR: glibc-locale-2.36-r0 do_package: Fatal QA errors were found, failing task.
There's a code to remove empty dirs in ${libdir}, but it's keyed off of
PACKAGE_NO_GCONV to clean up $[libdir]/gconv, just extend it to also cover
other empty dirs, including ${libdir}/locale.
(From OE-Core rev: b2565de1d9fb513c61f80a4f02be39ee9c31e7dd)
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/glibc/glibc-locale.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/recipes-core/glibc/glibc-locale.inc b/meta/recipes-core/glibc/glibc-locale.inc index b8de7d3192..7c14abfe99 100644 --- a/meta/recipes-core/glibc/glibc-locale.inc +++ b/meta/recipes-core/glibc/glibc-locale.inc | |||
@@ -87,10 +87,9 @@ do_install() { | |||
87 | if [ ${PACKAGE_NO_GCONV} -eq 0 ]; then | 87 | if [ ${PACKAGE_NO_GCONV} -eq 0 ]; then |
88 | copy_locale_files ${libdir}/gconv 0755 | 88 | copy_locale_files ${libdir}/gconv 0755 |
89 | copy_locale_files ${datadir}/i18n 0644 | 89 | copy_locale_files ${datadir}/i18n 0644 |
90 | else | ||
91 | # Remove the libdir if it is empty when gconv is not copied | ||
92 | find ${D}${libdir} -type d -empty -delete | ||
93 | fi | 90 | fi |
91 | # Remove empty dirs in libdir when gconv or locales are not copied | ||
92 | find ${D}${libdir} -type d -empty -delete | ||
94 | copy_locale_files ${datadir}/locale 0644 | 93 | copy_locale_files ${datadir}/locale 0644 |
95 | install -m 0644 ${LOCALETREESRC}/SUPPORTED ${WORKDIR}/SUPPORTED | 94 | install -m 0644 ${LOCALETREESRC}/SUPPORTED ${WORKDIR}/SUPPORTED |
96 | } | 95 | } |