diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2010-09-01 16:04:45 -0500 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-03 09:44:56 +0100 |
commit | 2f68de1e88fb196c301039ad994782b1a0c6ac94 (patch) | |
tree | ebf03840ec8de390a81bce16b0ae04a48ae1101f /meta/classes/package_rpm.bbclass | |
parent | 84e1f5a68962e35f796fbfddacddd6d16a4532b6 (diff) | |
download | openembedded-core-2f68de1e88fb196c301039ad994782b1a0c6ac94.tar.gz openembedded-core-2f68de1e88fb196c301039ad994782b1a0c6ac94.tar.bz2 openembedded-core-2f68de1e88fb196c301039ad994782b1a0c6ac94.tar.xz openembedded-core-2f68de1e88fb196c301039ad994782b1a0c6ac94.zip |
roots_rpm: Enable installation of recommended packages
Within RPM there is a field called "Suggests". This filed behaves like
"Recommends" does in ipk. So we write out the packages using the Suggests
field with the Poky 'Recommends' values... and then use the arbitrary tags to
capture the Poky 'Suggests' within a new "Recommends" tag.
Slightly confusing, but the end result is a functioning install.
Also some performance enhancements were add at the same time.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index a5225dd80..3967ae294 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass @@ -270,8 +270,10 @@ python write_specfile () { splitrobsoletes = dep print_deps(splitrdepends, "Requires", spec_preamble_bottom, d) - print_deps(splitrrecommends, "Recommends", spec_preamble_bottom, d) - print_deps(splitrsuggests, "Suggests", spec_preamble_bottom, d) + # Suggests in RPM are like recommends in Poky! + print_deps(splitrrecommends, "Suggests", spec_preamble_bottom, d) + # While there is no analog for suggests... (So call them recommends for now) + print_deps(splitrsuggests, "Recommends", spec_preamble_bottom, d) print_deps(splitrprovides, "Provides", spec_preamble_bottom, d) print_deps(splitrobsoletes, "Obsoletes", spec_preamble_bottom, d) @@ -352,8 +354,10 @@ python write_specfile () { print_deps(srcdepends, "BuildRequires", spec_preamble_top, d) print_deps(srcrdepends, "Requires", spec_preamble_top, d) - print_deps(srcrrecommends, "Recommends", spec_preamble_top, d) - print_deps(srcrsuggests, "Suggests", spec_preamble_top, d) + # Suggests in RPM are like recommends in Poky! + print_deps(srcrrecommends, "Suggests", spec_preamble_top, d) + # While there is no analog for suggests... (So call them recommends for now) + print_deps(srcrsuggests, "Recommends", spec_preamble_top, d) print_deps(srcrprovides, "Provides", spec_preamble_top, d) print_deps(srcrobsoletes, "Obsoletes", spec_preamble_top, d) |