From cc13fe8402e3c322f988df6578f15ed564e2821d Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 15 Feb 2010 11:49:10 +0000 Subject: [PATCH] - unbreak find-requires again, doh (#564527) --- redhat-rpm-config-9.1.0-fix-requires.patch | 31 ++++++++++++++++++++++ redhat-rpm-config.spec | 7 ++++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 redhat-rpm-config-9.1.0-fix-requires.patch diff --git a/redhat-rpm-config-9.1.0-fix-requires.patch b/redhat-rpm-config-9.1.0-fix-requires.patch new file mode 100644 index 0000000..8c07eed --- /dev/null +++ b/redhat-rpm-config-9.1.0-fix-requires.patch @@ -0,0 +1,31 @@ +commit 635437c7bfe6053dcfe112705b809bb78aba1a73 +Author: Panu Matilainen +Date: Mon Feb 15 13:42:36 2010 +0200 + + Unbreak find-requires (#443015, #564527) + - regression originating from commit 9ed9b4e3459e3125befd324f579f751a239c26ca + which was supposed to fix something for on ARM but broke pretty much + all else + - this should've been in 9.1.0 but somehow gone missing, ugh... + - fix originally from Bill Nottingham + +diff --git a/find-requires b/find-requires +index fa5ab95..eb3ee54 100755 +--- a/find-requires ++++ b/find-requires +@@ -106,6 +106,7 @@ for f in $liblist $exelist ; do + print $2 ; + } + } ++ (START==2) && /^[A-Za-z]/ { START=3; } + /^Version References:$/ { START=2; } + (START==2) && /required from/ { + sub(/:/, "", $3); +@@ -114,7 +115,6 @@ for f in $liblist $exelist ; do + (START==2) && (LIBNAME!="") && ($4!="") { + print LIBNAME "(" $4 ")'$lib64'"; + } +- /^[A-Za-z]/ { START=3; } + ' + done | sort -u + diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 74ba5cd..bb2c6ce 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -1,13 +1,14 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config Version: 9.1.0 -Release: 2%{?dist} +Release: 3%{?dist} # No version specified. License: GPL+ Group: Development/System URL: http://git.fedoraproject.org/git/redhat-rpm-config Source: redhat-rpm-config-%{version}.tar.bz2 Patch0: redhat-rpm-config-9.1.0-strict-python-bytecompile.patch +Patch1: redhat-rpm-config-9.1.0-fix-requires.patch BuildArch: noarch Requires: mktemp Requires: rpm >= 4.6.0 @@ -20,6 +21,7 @@ Red Hat specific rpm configuration files. %prep %setup -q %patch0 -p1 +%patch1 -p1 %build @@ -39,6 +41,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_prefix}/lib/rpm/redhat %changelog +* Mon Feb 15 2010 Panu Matilainen - 9.1.0-3 +- unbreak find-requires again, doh (#564527) + * Wed Feb 3 2010 Panu Matilainen - 9.1.0-2 - python byte-compilation errors abort the build by default