diff options
| -rw-r--r-- | meta/classes/packagegroup.bbclass | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/meta/classes/packagegroup.bbclass b/meta/classes/packagegroup.bbclass index af6ee5dff1..201309c28f 100644 --- a/meta/classes/packagegroup.bbclass +++ b/meta/classes/packagegroup.bbclass | |||
| @@ -1,9 +1,5 @@ | |||
| 1 | # Class for packagegroup (package group) recipes | 1 | # Class for packagegroup (package group) recipes |
| 2 | 2 | ||
| 3 | # packagegroup packages are only used to pull in other packages | ||
| 4 | # via their dependencies. They are empty. | ||
| 5 | ALLOW_EMPTY = "1" | ||
| 6 | |||
| 7 | # By default, only the packagegroup package itself is in PACKAGES. | 3 | # By default, only the packagegroup package itself is in PACKAGES. |
| 8 | # -dbg and -dev flavours are handled by the anonfunc below. | 4 | # -dbg and -dev flavours are handled by the anonfunc below. |
| 9 | # This means that packagegroup recipes used to build multiple packagegroup | 5 | # This means that packagegroup recipes used to build multiple packagegroup |
| @@ -18,16 +14,16 @@ inherit allarch | |||
| 18 | # This automatically adds -dbg and -dev flavours of all PACKAGES | 14 | # This automatically adds -dbg and -dev flavours of all PACKAGES |
| 19 | # to the list. Their dependencies (RRECOMMENDS) are handled as usual | 15 | # to the list. Their dependencies (RRECOMMENDS) are handled as usual |
| 20 | # by package_depchains in a following step. | 16 | # by package_depchains in a following step. |
| 17 | # Also mark all packages as ALLOW_EMPTY | ||
| 21 | python () { | 18 | python () { |
| 22 | if d.getVar('PACKAGEGROUP_DISABLE_COMPLEMENTARY', True) == '1': | ||
| 23 | return | ||
| 24 | |||
| 25 | packages = d.getVar('PACKAGES', True).split() | 19 | packages = d.getVar('PACKAGES', True).split() |
| 26 | genpackages = [] | 20 | genpackages = [] |
| 27 | for pkg in packages: | 21 | for pkg in packages: |
| 22 | d.setVar("ALLOW_EMPTY_%s" % pkg, "1") | ||
| 28 | for postfix in ['-dbg', '-dev', '-ptest']: | 23 | for postfix in ['-dbg', '-dev', '-ptest']: |
| 29 | genpackages.append(pkg+postfix) | 24 | genpackages.append(pkg+postfix) |
| 30 | d.setVar('PACKAGES', ' '.join(packages+genpackages)) | 25 | if d.getVar('PACKAGEGROUP_DISABLE_COMPLEMENTARY', True) != '1': |
| 26 | d.setVar('PACKAGES', ' '.join(packages+genpackages)) | ||
| 31 | } | 27 | } |
| 32 | 28 | ||
| 33 | # We don't want to look at shared library dependencies for the | 29 | # We don't want to look at shared library dependencies for the |
