]> code.ossystems Code Review - openembedded-core.git/commitdiff
nativesdk-sdk-provides-dummy: Add /bin/sh
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Aug 2020 23:19:34 +0000 (00:19 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 22 Aug 2020 14:46:51 +0000 (15:46 +0100)
By doing this we can revert b18c32ab6bc9c4f1953e9f79aa39bc92d1c4e30d which
was a pretty ugly hack anyway and now means the different providers are all
being handled consistently.

Anyone with SDK recipes will need to ensure nativesdk-sdk-provides-dummy
is included in those builds (or an equivalent). This is a good thing to
do anyway.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_rpm.bbclass
meta/recipes-core/meta/buildtools-tarball.bb
meta/recipes-core/meta/nativesdk-sdk-provides-dummy.bb
meta/recipes-core/meta/testexport-tarball.bb
meta/recipes-core/meta/uninative-tarball.bb

index 519c22be47206a3dfc253e0f6e46b3622053fe7f..53b4700cddbbf90b072653fceb6ea33ac901ccff 100644 (file)
@@ -557,7 +557,7 @@ python write_specfile () {
 
     print_deps(srcrrecommends, "Recommends", spec_preamble_top, d)
     print_deps(srcrsuggests, "Suggests", spec_preamble_top, d)
-    print_deps(srcrprovides + (" /bin/sh" if srcname.startswith("nativesdk-") else ""), "Provides", spec_preamble_top, d)
+    print_deps(srcrprovides, "Provides", spec_preamble_top, d)
     print_deps(srcrobsoletes, "Obsoletes", spec_preamble_top, d)
     print_deps(srcrconflicts, "Conflicts", spec_preamble_top, d)
 
index 3785941c2cf9630530169c9647b92a264aad959d..75b71f553278877b3fb78ee3a020aa95a28fca8e 100644 (file)
@@ -6,6 +6,7 @@ LICENSE = "MIT"
 TOOLCHAIN_TARGET_TASK ?= ""
 
 TOOLCHAIN_HOST_TASK ?= "\
+    nativesdk-sdk-provides-dummy \
     nativesdk-python3-core \
     nativesdk-python3-modules \
     nativesdk-python3-misc \
index 29f4dd36339b44fac2121372035fabf030039a1f..1d71f373a4e53a6faffadac3cdb064b4966c7cfa 100644 (file)
@@ -4,8 +4,8 @@ DUMMYPROVIDES_PACKAGES = "\
     pkgconfig \
 "
 
-# Add /bin/sh?
 DUMMYPROVIDES = "\
+    /bin/sh \
     /bin/bash \
     /usr/bin/env \
     libGL.so()(64bit) \
index c38ac902a06eb96e1b2af63ce7764d60be25ff04..daedd78cb444089592fc120c66da398bf9835c08 100644 (file)
@@ -8,7 +8,7 @@ TEST_EXPORT_SDK_PACKAGES ??= ""
 
 TOOLCHAIN_TARGET_TASK ?= ""
 
-TOOLCHAIN_HOST_TASK ?= "${TEST_EXPORT_SDK_PACKAGES}"
+TOOLCHAIN_HOST_TASK ?= "${TEST_EXPORT_SDK_PACKAGES} nativesdk-sdk-provides-dummy"
 
 MULTIMACH_TARGET_SYS = "${SDK_ARCH}-nativesdk${SDK_VENDOR}-${SDK_OS}"
 PACKAGE_ARCH = "${SDK_ARCH}_${SDK_OS}"
index 39638eb8c553bb2f4e142c2a189b26927a25c56c..c4a6c96b4dc89ee79a232954709bb9402fa6b871 100644 (file)
@@ -18,6 +18,7 @@ TOOLCHAIN_HOST_TASK = "\
     nativesdk-libxcrypt \
     nativesdk-libxcrypt-compat \
     nativesdk-libnss-nis \
+    nativesdk-sdk-provides-dummy \
     "
 
 INHIBIT_DEFAULT_DEPS = "1"