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

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