rpm-5.4.10-22.i686 loops forever when installing ntpd-4.2.6p5-5.i686.rpm

Jeffrey Johnson n3npq at me.com
Sat Dec 1 17:03:54 CET 2012


On Dec 1, 2012, at 10:55 AM, Jeffrey Johnson <n3npq at me.com> wrote:

> 
> I'm inclined atm to prefer the above actual behavior to "fudging" an
> extra +1 for "legacy compatible" behavior; I'm sure we disagree here.
> 
> Short answer: patch in an extra +1 (there will be two code paths in need
> of patching, check for symmetry as above) if you wish "legacy compatible" behavior.
> 

This is likely all that is needed (untested):

cvs diff psm.c
Index: psm.c
===================================================================
RCS file: /v/rpm/cvs/rpm/lib/psm.c,v
retrieving revision 2.399.2.5
diff -p -u -w -r2.399.2.5 psm.c
--- psm.c	19 Apr 2012 17:26:06 -0000	2.399.2.5
+++ psm.c	1 Dec 2012 16:02:48 -0000
@@ -2755,7 +2755,7 @@ assert(psm->te != NULL);
 	    psm->scriptTag = RPMTAG_POSTIN;
 	    psm->progTag = RPMTAG_POSTINPROG;
 	    psm->sense = RPMSENSE_TRIGGERIN;
-	    psm->countCorrection = 0;
+	    psm->countCorrection = 1;
 
 	    if (!(rpmtsFlags(ts) & RPMTRANS_FLAG_NOPOST)) {
 		rc = (rpmRC) rpmpsmNext(psm, PSM_SCRIPT);



More information about the pld-devel-en mailing list