]> code.ossystems Code Review - openembedded-core.git/commit
coreutils: don't split stdbuf to own package with single-binary
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Thu, 9 Jul 2020 07:06:15 +0000 (09:06 +0200)
committerSteve Sakoman <steve@sakoman.com>
Tue, 14 Jul 2020 03:14:28 +0000 (17:14 -1000)
commitc2ad3af9da9bb3a98c1d5d1b3d21eb8db643c189
tree941de573718dc604df075fd680d49839f6b76b02
parent30b4d8b5fd45c78f5da3706dd91c43d795de6eb0
coreutils: don't split stdbuf to own package with single-binary

Commit 992cec44 (coreutils: Move stdbuf into an own package
coreutils-stdbuf) breaks package-qa when the single-binary
PACKAGECONFIG is used:

ERROR: coreutils-8.32-r0 do_package_qa: QA Issue: /usr/bin/stdbuf contained in package coreutils-stdbuf requires /usr/bin/coreutils, but no providers found in RDEPENDS_coreutils-stdbuf? [file-rdeps]
ERROR: coreutils-8.32-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.

With that PACKAGECONFIG, /usr/bin/stdbuf is just a simple "script"
containing the single line

  #!/usr/bin/coreutils --coreutils-prog-shebang=stdbuf

Since there's no point splitting stdbuf to its own package when all
the functionality is in the single big coreutils binary anyway, fix
this by not creating the separate stdbuf package for the single-binary
case. But also make sure that the coreutils-stdbuf item always exists
so recipes can always RDEPEND on coreutils-stdbuf.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 74d24b5b895198898944260136d05e991a203c11)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-core/coreutils/coreutils_8.31.bb