coreutils-native: make mandatory dep for all packages
authorRoman I Khimov <khimov@altell.ru>
Wed, 29 Apr 2009 19:57:54 +0000 (23:57 +0400)
committerRoman I Khimov <khimov@altell.ru>
Thu, 30 Apr 2009 19:17:10 +0000 (23:17 +0400)
Gives us guaranteed sane GNU coreutils on any host. Should greatly ease
support for various non-GNU host systems and allow to safely remove some other
native packages like 'install-native'.

Acked-by: Otavio Salvador <otavio@ossystems.com.br>
classes/base.bbclass

index e5fd814..270b05d 100644 (file)
@@ -125,9 +125,11 @@ def base_dep_prepend(d):
        # the case where host == build == target, for now we don't work in
        # that case though.
        #
-       deps = "shasum-native "
-       if bb.data.getVar('PN', d, True) == "shasum-native":
+       deps = "shasum-native coreutils-native"
+       if bb.data.getVar('PN', d, True) == "shasum-native" or bb.data.getVar('PN', d, True) == "stagemanager-native":
                deps = ""
+       if bb.data.getVar('PN', d, True) == "coreutils-native":
+               deps = "shasum-native"
 
        # INHIBIT_DEFAULT_DEPS doesn't apply to the patch command.  Whether or  not
        # we need that built is the responsibility of the patch function / class, not