Blame SOURCES/redhat-rpm-config-9.1.0-fix-requires.patch

76c1b9
commit 635437c7bfe6053dcfe112705b809bb78aba1a73
76c1b9
Author: Panu Matilainen <pmatilai@redhat.com>
76c1b9
Date:   Mon Feb 15 13:42:36 2010 +0200
76c1b9
76c1b9
    Unbreak find-requires (#443015, #564527)
76c1b9
    - regression originating from commit 9ed9b4e3459e3125befd324f579f751a239c26ca
76c1b9
      which was supposed to fix something for on ARM but broke pretty much
76c1b9
      all else
76c1b9
    - this should've been in 9.1.0 but somehow gone missing, ugh...
76c1b9
    - fix originally from Bill Nottingham
76c1b9
76c1b9
diff --git a/find-requires b/find-requires
76c1b9
index fa5ab95..eb3ee54 100755
76c1b9
--- a/find-requires
76c1b9
+++ b/find-requires
76c1b9
@@ -106,6 +106,7 @@ for f in $liblist $exelist ; do
76c1b9
 		print $2 ;
76c1b9
 	    }
76c1b9
 	}
76c1b9
+	(START==2) && /^[A-Za-z]/ { START=3; }
76c1b9
 	/^Version References:$/ { START=2; }
76c1b9
 	(START==2) && /required from/ {
76c1b9
 	    sub(/:/, "", $3);
76c1b9
@@ -114,7 +115,6 @@ for f in $liblist $exelist ; do
76c1b9
 	(START==2) && (LIBNAME!="") && ($4!="") {
76c1b9
 	    print LIBNAME "(" $4 ")'$lib64'";
76c1b9
 	}
76c1b9
-	/^[A-Za-z]/ { START=3; }
76c1b9
     '
76c1b9
 done | sort -u
76c1b9