rpms/rpm/devel rpm-4.4.2.3-no-order-rescan-limit.patch, NONE, 1.1 rpm.spec, 1.278, 1.279

Panu Matilainen (pmatilai) fedora-extras-commits at redhat.com
Wed Mar 12 07:10:53 UTC 2008


Author: pmatilai

Update of /cvs/pkgs/rpms/rpm/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20150

Modified Files:
	rpm.spec 
Added Files:
	rpm-4.4.2.3-no-order-rescan-limit.patch 
Log Message:
- Continue ordering loop elimination as long as progress is made (#437041)


rpm-4.4.2.3-no-order-rescan-limit.patch:

--- NEW FILE rpm-4.4.2.3-no-order-rescan-limit.patch ---
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;
 	}
 


Index: rpm.spec
===================================================================
RCS file: /cvs/pkgs/rpms/rpm/devel/rpm.spec,v
retrieving revision 1.278
retrieving revision 1.279
diff -u -r1.278 -r1.279
--- rpm.spec	19 Feb 2008 20:03:05 -0000	1.278
+++ rpm.spec	12 Mar 2008 07:10:17 -0000	1.279
@@ -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 @@
 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 @@
 %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 @@
 %endif
 
 %changelog
+* Wed Mar 12 2008 Panu Matilainen <pmatilai at 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 at fedoraproject.org> - 4.4.2.3-0.2.rc1
 - Autorebuild for GCC 4.3
 




More information about the fedora-extras-commits mailing list