containers: add a dummy provider for /bin/sh and /bin/env

In some scenarios (and package managers), packages post install
scripts may have references to /bin/sh.

The package manager doesn't know if the scripts will run on the
build host or target, so we get a calculated redepnds on /bin/sh

base-files and base-passwd fall into this category of having
post installs, but no need for /bin/sh on the target.

If you know what you are installing, and want the smallest
container possible, this package will satisfy the dependency when
assembling the rootfs.

To enable it, put the following in a configuration file (local.conf
or otherwise):

   PACKAGE_EXTRA_ARCHS_append = " container-dummy-provides"

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Bruce Ashfield 2020-09-30 12:30:40 -04:00
parent 74e0b8d2ac
commit e9a8756758

View File

@ -0,0 +1,6 @@
DUMMYARCH = "container-dummy-provides"
DUMMYPROVIDES = "\
/bin/sh \
/usr/bin/env \
"
require recipes-core/meta/dummy-sdk-package.inc