* [PATCH 0/1] Fix buildhistory issue with recommends and RPM
@ 2011-12-22 17:20 Paul Eggleton
2011-12-22 17:20 ` [PATCH 1/1] classes/rootfs_rpm: handle recommends in query functions Paul Eggleton
2012-01-03 21:12 ` [PATCH 0/1] Fix buildhistory issue with recommends and RPM Saul Wold
0 siblings, 2 replies; 3+ messages in thread
From: Paul Eggleton @ 2011-12-22 17:20 UTC (permalink / raw)
To: openembedded-core
The following changes since commit db446421933d640528328e46a29f828a36d6649b:
multilib.conf: Enable shadow-sysroot and libffi (2011-12-21 17:24:37 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib paule/rpm-suggests
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/rpm-suggests
Paul Eggleton (1):
classes/rootfs_rpm: handle recommends in query functions
meta/classes/rootfs_rpm.bbclass | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
--
1.7.5.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] classes/rootfs_rpm: handle recommends in query functions
2011-12-22 17:20 [PATCH 0/1] Fix buildhistory issue with recommends and RPM Paul Eggleton
@ 2011-12-22 17:20 ` Paul Eggleton
2012-01-03 21:12 ` [PATCH 0/1] Fix buildhistory issue with recommends and RPM Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Paul Eggleton @ 2011-12-22 17:20 UTC (permalink / raw)
To: openembedded-core
Implement list_package_recommends() for rpm, and filter out the
"suggests" (RPM's equivalent of recommends) in list_package_depends().
Respectively, these changes fix buildhistory handling of recommends for
RPM (so that they are included in the image graphs) and also prevents
failures during do_rootfs with buildhistory enabled if a recommend is
unsatisfied.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
meta/classes/rootfs_rpm.bbclass | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 5fd45d7..966b074 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -174,7 +174,9 @@ get_package_filename() {
list_package_depends() {
pkglist=`list_installed_packages`
- for req in `${RPM_QUERY_CMD} -q --qf "[%{REQUIRES}\n]" $1`; do
+ # REQUIRE* lists "soft" requirements (which we know as recommends and RPM refers to
+ # as "suggests") so filter these out with the help of awk
+ for req in `${RPM_QUERY_CMD} -q --qf "[%{REQUIRENAME} %{REQUIREFLAGS}\n]" $1 | awk '{ if( and($2, 0x80000) == 0) print $1 }'`; do
if echo "$req" | grep -q "^rpmlib" ; then continue ; fi
realpkg=""
@@ -193,7 +195,7 @@ list_package_depends() {
}
list_package_recommends() {
- :
+ ${RPM_QUERY_CMD} -q --suggests $1
}
install_all_locales() {
--
1.7.5.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 0/1] Fix buildhistory issue with recommends and RPM
2011-12-22 17:20 [PATCH 0/1] Fix buildhistory issue with recommends and RPM Paul Eggleton
2011-12-22 17:20 ` [PATCH 1/1] classes/rootfs_rpm: handle recommends in query functions Paul Eggleton
@ 2012-01-03 21:12 ` Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-01-03 21:12 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Paul Eggleton
On 12/22/2011 09:20 AM, Paul Eggleton wrote:
> The following changes since commit db446421933d640528328e46a29f828a36d6649b:
>
> multilib.conf: Enable shadow-sysroot and libffi (2011-12-21 17:24:37 +0000)
>
> are available in the git repository at:
> git://git.openembedded.org/openembedded-core-contrib paule/rpm-suggests
> http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/rpm-suggests
>
> Paul Eggleton (1):
> classes/rootfs_rpm: handle recommends in query functions
>
> meta/classes/rootfs_rpm.bbclass | 6 ++++--
> 1 files changed, 4 insertions(+), 2 deletions(-)
>
Merged into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-03 21:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-22 17:20 [PATCH 0/1] Fix buildhistory issue with recommends and RPM Paul Eggleton
2011-12-22 17:20 ` [PATCH 1/1] classes/rootfs_rpm: handle recommends in query functions Paul Eggleton
2012-01-03 21:12 ` [PATCH 0/1] Fix buildhistory issue with recommends and RPM Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox