[oe-commits] [openembedded-core] 30/37: package_rpm.bbclass: add a /bin/sh Provides for nativesdk- packages

git at git.openembedded.org git at git.openembedded.org
Sat Mar 11 16:19:07 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 47579c3f925defe42dc4011851bf245d324673d5
Author: Alexander Kanavin <alexander.kanavin at linux.intel.com>
AuthorDate: Mon Feb 20 12:23:20 2017 +0200

    package_rpm.bbclass: add a /bin/sh Provides for nativesdk- packages
    
    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.
    
    Signed-off-by: Alexander Kanavin <alexander.kanavin at linux.intel.com>
---
 meta/classes/package_rpm.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index ff86dc8..2cdaae0 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -560,7 +560,7 @@ python write_specfile () {
 
     print_deps(srcrrecommends, "Recommends", spec_preamble_top, d)
     print_deps(srcrsuggests, "Suggests", spec_preamble_top, d)
-    print_deps(srcrprovides, "Provides", spec_preamble_top, d)
+    print_deps(srcrprovides + (" /bin/sh" if srcname.startswith("nativesdk-") else ""), "Provides", spec_preamble_top, d)
     print_deps(srcrobsoletes, "Obsoletes", spec_preamble_top, d)
     
     # conflicts can not be in a provide!  We will need to filter it.

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list