diff options
| -rw-r--r-- | meta/recipes-devtools/rpm/rpm/rpm-no-loop.patch | 38 | ||||
| -rw-r--r-- | meta/recipes-devtools/rpm/rpm_5.1.10.bb | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/rpm-no-loop.patch b/meta/recipes-devtools/rpm/rpm/rpm-no-loop.patch new file mode 100644 index 0000000000..1f0dbcbef9 --- /dev/null +++ b/meta/recipes-devtools/rpm/rpm/rpm-no-loop.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | The LOOP: ... messages appear to be errors, but in reality they are | ||
| 2 | simply debug messages that indicate there is one or more dependency | ||
| 3 | loop within the system. | ||
| 4 | |||
| 5 | Due to Poky packages owning all of the directories they use, a large | ||
| 6 | number of depedency loops may be present. So disabling this message | ||
| 7 | seems to make the most sense. | ||
| 8 | |||
| 9 | Signed-off-by: mark.hatle@windriver.com | ||
| 10 | |||
| 11 | diff -ur rpm-5.1.10.orig/lib/depends.c rpm-5.1.10/lib/depends.c | ||
| 12 | --- rpm-5.1.10.orig/lib/depends.c 2010-09-29 12:23:48.307048065 -0500 | ||
| 13 | +++ rpm-5.1.10/lib/depends.c 2010-09-29 12:33:23.306022259 -0500 | ||
| 14 | @@ -2044,9 +2044,11 @@ | ||
| 15 | * Attempt to unravel a dependency loop by eliminating Requires's. | ||
| 16 | */ | ||
| 17 | if (zap) { | ||
| 18 | +#if 0 | ||
| 19 | rpmlog(msglvl, | ||
| 20 | _("removing %s \"%s\" from tsort relations.\n"), | ||
| 21 | (rpmteNEVRA(p) ? rpmteNEVRA(p) : "???"), dp); | ||
| 22 | +#endif | ||
| 23 | rpmteTSI(p)->tsi_count--; | ||
| 24 | if (tsi_prev) tsi_prev->tsi_next = tsi->tsi_next; | ||
| 25 | tsi->tsi_next = NULL; | ||
| 26 | @@ -2676,10 +2678,12 @@ | ||
| 27 | /* Unchain predecessor loop. */ | ||
| 28 | rpmteTSI(p)->tsi_chain = NULL; | ||
| 29 | |||
| 30 | +#if 0 | ||
| 31 | if (!printed) { | ||
| 32 | rpmlog(msglvl, _("LOOP:\n")); | ||
| 33 | printed = 1; | ||
| 34 | } | ||
| 35 | +#endif | ||
| 36 | |||
| 37 | /* Find (and destroy if co-requisite) "q <- p" relation. */ | ||
| 38 | dp = zapRelation(q, p, 1, &nzaps, msglvl); | ||
diff --git a/meta/recipes-devtools/rpm/rpm_5.1.10.bb b/meta/recipes-devtools/rpm/rpm_5.1.10.bb index e5ccf8e99d..cbae3f3b31 100644 --- a/meta/recipes-devtools/rpm/rpm_5.1.10.bb +++ b/meta/recipes-devtools/rpm/rpm_5.1.10.bb | |||
| @@ -12,6 +12,7 @@ SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.1/SNAPSHOT/${BPN}-${PV}.tar.gz \ | |||
| 12 | file://rpm-autoconf.patch \ | 12 | file://rpm-autoconf.patch \ |
| 13 | file://remove-compiled-tests.patch;apply=no \ | 13 | file://remove-compiled-tests.patch;apply=no \ |
| 14 | file://perfile_rpmdeps.sh \ | 14 | file://perfile_rpmdeps.sh \ |
| 15 | file://rpm-no-loop.patch \ | ||
| 15 | " | 16 | " |
| 16 | inherit autotools gettext | 17 | inherit autotools gettext |
| 17 | 18 | ||
