diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-07-07 14:59:02 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-24 00:46:57 +0100 |
commit | 8760cde94aca80a920cb50230d61c187d3cfeee4 (patch) | |
tree | 208300c2be553d55b36ebc6e5f644d3b19cb429a /meta/packages/rpm/files/missingok.patch | |
parent | 60fa21d157823b9c6ffd4a066d3afdd2f0224d17 (diff) | |
download | openembedded-core-8760cde94aca80a920cb50230d61c187d3cfeee4.tar.gz openembedded-core-8760cde94aca80a920cb50230d61c187d3cfeee4.tar.bz2 openembedded-core-8760cde94aca80a920cb50230d61c187d3cfeee4.tar.xz openembedded-core-8760cde94aca80a920cb50230d61c187d3cfeee4.zip |
rpm: switch to using RPM 5
Switch to RPM5 as our rpm provider of choice and update the recipe to the latest
stable release.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Modify the package_rpm.bbclass to understand the macro and command line changes
present in rpm5.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'meta/packages/rpm/files/missingok.patch')
-rw-r--r-- | meta/packages/rpm/files/missingok.patch | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/meta/packages/rpm/files/missingok.patch b/meta/packages/rpm/files/missingok.patch deleted file mode 100644 index b008c9a02..000000000 --- a/meta/packages/rpm/files/missingok.patch +++ /dev/null @@ -1,44 +0,0 @@ -Obey MISSINGOK flag for dependencies. Backport from rpm-4.4.7. - -Index: lib/depends.c -=================================================================== ---- lib/depends.c.orig 2008-04-01 08:28:22.000000000 +0100 -+++ lib/depends.c 2008-09-04 14:09:58.000000000 +0100 -@@ -593,8 +593,13 @@ - /*@=boundsread@*/ - - unsatisfied: -- rc = 1; /* dependency is unsatisfied */ -- rpmdsNotify(dep, NULL, rc); -+ if (rpmdsFlags(dep) & RPMSENSE_MISSINGOK) { -+ rc = 0; /* dependency is unsatisfied, but just a hint. */ -+ rpmdsNotify(dep, _("(hint skipped)"), rc); -+ } else { -+ rc = 1; /* dependency is unsatisfied */ -+ rpmdsNotify(dep, NULL, rc); -+ } - - exit: - /* -@@ -963,6 +968,8 @@ - return "Requires(postun):"; - if (f & RPMSENSE_SCRIPT_VERIFY) - return "Requires(verify):"; -+ if (f & RPMSENSE_MISSINGOK) -+ return "Requires(hint):"; - if (f & RPMSENSE_FIND_REQUIRES) - return "Requires(auto):"; - return "Requires:"; -Index: lib/rpmlib.h -=================================================================== ---- lib/rpmlib.h.orig 2008-09-03 22:22:43.000000000 +0100 -+++ lib/rpmlib.h 2008-09-04 15:17:17.000000000 +0100 -@@ -562,6 +562,8 @@ - RPMSENSE_SCRIPT_POSTUN | \ - RPMSENSE_SCRIPT_VERIFY | \ - RPMSENSE_FIND_REQUIRES | \ -+ RPMSENSE_MISSINGOK | \ -+ RPMSENSE_STRONG | \ - RPMSENSE_SCRIPT_PREP | \ - RPMSENSE_SCRIPT_BUILD | \ - RPMSENSE_SCRIPT_INSTALL | \ |