[oe-commits] [openembedded-core] 16/20: glibc-locale: Fix build error with PACKAGE_NO_GCONV = "1"

git at git.openembedded.org git at git.openembedded.org
Wed Jul 3 08:11:36 UTC 2019

This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 4b3c5ec80e696fc2c7ce7ceba118095f9b8f6439
Author: Jason Wessel <jason.wessel at windriver.com>
AuthorDate: Tue Jul 2 13:16:08 2019 -0700

    glibc-locale: Fix build error with PACKAGE_NO_GCONV = "1"
    When the PACKAGE_NO_GCONV is set to 1 an empty directory is left behind from the do_install rule:
    ERROR: glibc-locale-2.29-r0 do_package: QA Issue: glibc-locale: Files/directories were installed but not shipped in any package:
    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: 2 installed and not shipped files. [installed-vs-shipped]
    ERROR: glibc-locale-2.29-r0 do_package: Fatal QA errors found, failing task.
    The simple fix is to prune the empty directory.
    Signed-off-by: Jason Wessel <jason.wessel at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
 meta/recipes-core/glibc/glibc-locale.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-core/glibc/glibc-locale.inc b/meta/recipes-core/glibc/glibc-locale.inc
index f033635..bf5eaee 100644
--- a/meta/recipes-core/glibc/glibc-locale.inc
+++ b/meta/recipes-core/glibc/glibc-locale.inc
@@ -87,6 +87,9 @@ do_install() {
 	if [ ${PACKAGE_NO_GCONV} -eq 0 ]; then
 		copy_locale_files ${libdir}/gconv 0755
 		copy_locale_files ${datadir}/i18n 0644
+	else
+		# Remove the libdir if it is empty when gconv is not copied
+		find ${D}${libdir} -type d -empty -delete
 	copy_locale_files ${datadir}/locale 0644

To stop receiving notification emails like this one, please contact
the administrator of this repository.

More information about the Openembedded-commits mailing list