All of lore.kernel.org
 help / color / mirror / Atom feed
From: Armin Kuster <akuster808@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [warrior 40/43] glibc-locale: Fix build error with PACKAGE_NO_GCONV = "1"
Date: Sun,  1 Sep 2019 07:36:18 -0700	[thread overview]
Message-ID: <2ed66891e3afed338740a73c0b7c0e6947f2ea77.1567348433.git.akuster808@gmail.com> (raw)
In-Reply-To: <cover.1567348433.git.akuster808@gmail.com>

From: Jason Wessel <jason.wessel@windriver.com>

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:
  /usr/lib
  /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: 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@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 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 a985d26..17f5b78 100644
--- a/meta/recipes-core/glibc/glibc-locale.inc
+++ b/meta/recipes-core/glibc/glibc-locale.inc
@@ -89,6 +89,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
 	fi
 	copy_locale_files ${datadir}/locale 0644
 	install -m 0644 ${LOCALETREESRC}/SUPPORTED ${WORKDIR}/SUPPORTED
-- 
2.7.4



  parent reply	other threads:[~2019-09-01 14:37 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-01 14:35 [warrior 00/43] Patch review Armin Kuster
2019-09-01 14:35 ` [warrior 01/43] binutils: fix CVE-2019-12972 CVE-2019-9071 Armin Kuster
2019-09-01 14:35 ` [warrior 02/43] binutils: CVE-2019-9070 is same as CVE-2019-9071 Armin Kuster
2019-09-01 14:35 ` [warrior 03/43] python: fix CVE-2019-9740 Armin Kuster
2019-09-01 14:35 ` [warrior 04/43] libxslt: fix CVE-2019-13117 CVE-2019-13118 Armin Kuster
2019-09-01 14:35 ` [warrior 05/43] glibc: CVE-2018-20796 is same as CVE-2019-9169 Armin Kuster
2019-09-01 14:35 ` [warrior 06/43] libid3tag: handle unknown encodings (CVE-2017-11550) Armin Kuster
2019-09-01 14:35 ` [warrior 07/43] libid3tag: CVE-2017-11551 is the same as CVE-2004-2779 Armin Kuster
2019-09-01 14:35 ` [warrior 08/43] tiff: fix CVE-2019-6128 Armin Kuster
2019-09-01 14:35 ` [warrior 09/43] tiff: fix CVE-2019-7663 Armin Kuster
2019-09-01 14:35 ` [warrior 10/43] libsdl: CVE fixes Armin Kuster
2019-09-01 14:35 ` [warrior 11/43] gstreamer1.0-vaapi: backport jpeg encode/decode fixes Armin Kuster
2019-09-01 14:35 ` [warrior 12/43] package: Improve determinism Armin Kuster
2019-09-01 14:35 ` [warrior 13/43] patch: fix CVE-2019-13636 Armin Kuster
2019-09-01 14:35 ` [warrior 14/43] python3: fix CVE-2019-9740 Armin Kuster
2019-09-01 14:35 ` [warrior 15/43] ghostscript: fix CVE-2019-3839 Armin Kuster
2019-09-01 14:35 ` [warrior 16/43] rng-tools: fix very long shutdown delay with systemd Armin Kuster
2019-09-01 14:35 ` [warrior 17/43] psmisc: Fix dependency for USE_NLS=no Armin Kuster
2019-09-01 14:35 ` [warrior 18/43] systemd: Backport OpenSSL BUF_MEM fix Armin Kuster
2019-09-04 11:56   ` Adrian Bunk
2019-09-04 15:22     ` akuster808
2019-09-01 14:35 ` [warrior 19/43] package.bbclass: fix directories setuid and setgid bits Armin Kuster
2019-09-01 14:35 ` [warrior 20/43] qemu: add a patch fixing the native build on newer kernels Armin Kuster
2019-09-01 14:35 ` [warrior 21/43] mesa: Update 19.0.1 -> 19.0.8 Armin Kuster
2019-09-01 14:36 ` [warrior 22/43] qemu: fix CVE-2018-20815 Armin Kuster
2019-09-01 14:36 ` [warrior 23/43] linux-yocto/4.19: update to 4.19.57 and -rt22 Armin Kuster
2019-09-01 14:36 ` [warrior 24/43] linux-yocto/4.19: update to v4.19.61 Armin Kuster
2019-09-01 14:36 ` [warrior 25/43] boost: Fix build and enable context and coroutines on aarch64 Armin Kuster
2019-09-01 14:36 ` [warrior 26/43] rsync: fix CVEs for included zlib Armin Kuster
2019-09-01 14:36 ` [warrior 27/43] patch: fix CVE-2019-13638 Armin Kuster
2019-09-01 14:36 ` [warrior 28/43] patch: backport fixes Armin Kuster
2019-09-01 14:36 ` [warrior 29/43] dpkg: Use less as pager Armin Kuster
2019-09-01 14:36 ` [warrior 30/43] icecc.bbclass: catch subprocess.CalledProcessError Armin Kuster
2019-09-01 14:36 ` [warrior 31/43] meson: backport fix for builds with -Werror=return-type Armin Kuster
2019-09-01 14:36 ` [warrior 32/43] powertop: import a fix from buildroot Armin Kuster
2019-09-01 14:36 ` [warrior 33/43] binutils: fix CVE-2019-14250 CVE-2019-14444 Armin Kuster
2019-09-01 14:36 ` [warrior 34/43] pango: fix CVE-2019-1010238 Armin Kuster
2019-09-01 14:36 ` [warrior 35/43] glib-2.0: fix CVE-2019-13012 Armin Kuster
2019-09-01 14:36 ` [warrior 36/43] gcc: reduce the variables in symtab Armin Kuster
2019-09-01 14:36 ` [warrior 37/43] gcc: CVE-2018-12886 Armin Kuster
2019-09-01 14:36 ` [warrior 38/43] binutils: Fix mips patch which changes default emulation Armin Kuster
2019-09-01 14:36 ` [warrior 39/43] glibc: Fix multilibs + usrmerge builds Armin Kuster
2019-09-01 14:36 ` Armin Kuster [this message]
2019-09-01 14:36 ` [warrior 41/43] glibc/glibc-locale: Fix do_stash_locale to work with usrmerge and multilibs Armin Kuster
2019-09-01 14:36 ` [warrior 42/43] glibc / glibc-locale: Fix stash_locale determinism problems Armin Kuster
2019-09-01 14:36 ` [warrior 43/43] gcc-8.3: Security fix for CVE-2019-14250 Armin Kuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2ed66891e3afed338740a73c0b7c0e6947f2ea77.1567348433.git.akuster808@gmail.com \
    --to=akuster808@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.