]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
glibc-locale: explicitly remove empty dirs in ${libdir}
authorDenys Dmytriyenko <denis@denix.org>
Wed, 28 Sep 2022 22:06:45 +0000 (22:06 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Sep 2022 20:13:36 +0000 (21:13 +0100)
commitb2565de1d9fb513c61f80a4f02be39ee9c31e7dd
treedbaa01623e10a8dcf6c3cca6a897d781bbdecede
parent6d9364e5f3535954f65cbbc694ee7933ac1d664f
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.

Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/glibc/glibc-locale.inc