public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - Continue ordering loop elimination as long as progress is made (#437041)
Date: Mon, 23 Nov 2026 09:24:53 GMT	[thread overview]
Message-ID: <179542589310.1.46053244087419118.rpms-rpm-7f2427d0a137@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 7f2427d0a137607e32d952b0666f394cc3f3d975
Author : Panu Matilainen <pmatilai@fedoraproject.org>
Date   : 2008-03-12T07:10:17+00:00
Stats  : +31/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/7f2427d0a137607e32d952b0666f394cc3f3d975?branch=pmatilai-v6

Log:
- Continue ordering loop elimination as long as progress is made (#437041)

---
diff --git a/rpm-4.4.2.3-no-order-rescan-limit.patch b/rpm-4.4.2.3-no-order-rescan-limit.patch
new file mode 100644
index 0000000..a88ef7e
--- /dev/null
+++ b/rpm-4.4.2.3-no-order-rescan-limit.patch
@@ -0,0 +1,25 @@
+diff -up rpm-4.4.2.3-rc1/lib/depends.c.no-limit rpm-4.4.2.3-rc1/lib/depends.c
+--- rpm-4.4.2.3-rc1/lib/depends.c.no-limit	2008-03-12 08:40:08.000000000 +0200
++++ rpm-4.4.2.3-rc1/lib/depends.c	2008-03-12 08:58:15.000000000 +0200
+@@ -1229,7 +1229,7 @@ int rpmtsOrder(rpmts ts)
+     int numOrderList;
+     int npeer = 128;	/* XXX more than deep enough for now. */
+     int * peer = memset(alloca(npeer*sizeof(*peer)), 0, (npeer*sizeof(*peer)));
+-    int nrescans = 10;
++    int nrescans = 0;
+     int _printed = 0;
+     char deptypechar;
+     size_t tsbytes;
+@@ -1563,8 +1563,10 @@ rescan:
+ 
+ 	/* If a relation was eliminated, then continue sorting. */
+ 	/* XXX TODO: add control bit. */
+-	if (nzaps && nrescans-- > 0) {
+-	    rpmMessage(RPMMESS_DEBUG, _("========== continuing tsort ...\n"));
++	if (nzaps > 0) {
++	    rpmMessage(RPMMESS_DEBUG, 
++		       _("========== continuing tsort ... (rescan %d)\n"),
++		       ++nrescans);
+ 	    goto rescan;
+ 	}
+ 

diff --git a/rpm.spec b/rpm.spec
index 0f5f888..83357b6 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -6,7 +6,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: 4.4.2.3
-Release: 0.2.rc1
+Release: 0.3.rc1
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source: http://rpm.org/releases/rpm-4.4.x/%{name}-%{version}-rc1.tar.gz
@@ -21,6 +21,7 @@ Patch8: rpm-4.4.2.3-nss.patch
 Patch9: rpm-4.4.2.2-autofoo.patch
 Patch10: rpm-4.4.2.2-pkgconfig-path.patch
 Patch11: rpm-4.4.2.3-queryformat-arch.patch
+Patch12: rpm-4.4.2.3-no-order-rescan-limit.patch
 
 Patch50: rpm-4.4.2.3-geode-instplat.patch
 
@@ -145,6 +146,7 @@ that will manipulate RPM packages and databases.
 %patch9 -p1 -b .autofoo
 %patch10 -p1 -b .pkgconfig-path
 %patch11 -p1 -b .qfmt-arch
+%patch12 -p1 -b .no-order-limit
 
 %patch50 -p1 -b .geode-instplat
 
@@ -399,6 +401,9 @@ exit 0
 %endif
 
 %changelog
+* Wed Mar 12 2008 Panu Matilainen <pmatilai@redhat.com> 4.4.2.3-0.3.rc1
+- Continue ordering loop elimination as long as progress is made (#437041)
+
 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.4.2.3-0.2.rc1
 - Autorebuild for GCC 4.3
 

                 reply	other threads:[~2026-11-23  9:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179542589310.1.46053244087419118.rpms-rpm-7f2427d0a137@fedoraproject.org \
    --to=pmatilai@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox