[OE-core] [PATCH 35/36] nativesdk.bbclass: add a /bin/sh RPROVIDES
André Draszik
git at andred.net
Wed Feb 15 10:28:18 UTC 2017
On Mon, 2017-02-13 at 17:06 +0200, Alexander Kanavin wrote:
> nativesdk-* rpm packages all require /bin/sh because postinst scriptlets
> are run with it. We can either teach rpm4 and dnf to ignore that
> dependency
> (a lot of non-upstreamable work), or add auto-satisfy the dependency
> in each package. I've chosen to do the latter.
Shouldn't there be a package that actually RPROVIDES /bin/sh, rather than
having to add a fake RPROVIDES?
Alternatively, shouldn't this be added to package_rpm.bbclass instead?
Cheers,
Andre'
>
> Signed-off-by: Alexander Kanavin <alexander.kanavin at linux.intel.com>
> ---
> meta/classes/nativesdk.bbclass | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/meta/classes/nativesdk.bbclass
> b/meta/classes/nativesdk.bbclass
> index a97f5a7114d..a050fe548ff 100644
> --- a/meta/classes/nativesdk.bbclass
> +++ b/meta/classes/nativesdk.bbclass
> @@ -97,3 +97,7 @@ do_packagedata[stamp-extra-info] = ""
> USE_NLS = "${SDKUSE_NLS}"
>
> OLDEST_KERNEL = "${SDK_OLDEST_KERNEL}"
> +
> +python populate_packages_prepend() {
> + d.appendVar(d.expand('RPROVIDES_${PN}'), ' /bin/sh')
> +}
> --
> 2.11.0
>
More information about the Openembedded-core
mailing list