From 2f68de1e88fb196c301039ad994782b1a0c6ac94 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Wed, 1 Sep 2010 16:04:45 -0500 Subject: 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 --- meta/classes/package_rpm.bbclass | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'meta/classes/package_rpm.bbclass') 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) -- cgit v1.2.3