From 97c9ccbfec701dd1ce186480f45ef4867388a035 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Oct 31 2008 08:22:48 +0000 Subject: - adjust find-debuginfo for "file" output change (#468129) --- diff --git a/rpm-4.6.0-rc1-file-debuginfo.patch b/rpm-4.6.0-rc1-file-debuginfo.patch new file mode 100644 index 0000000..7530fc9 --- /dev/null +++ b/rpm-4.6.0-rc1-file-debuginfo.patch @@ -0,0 +1,20 @@ +commit 81660b26bc8e2c03f55cf928955f7ed84e00785a +Author: Panu Matilainen +Date: Fri Oct 31 10:17:07 2008 +0200 + + Adjust for file output change (rhbz#468129) + - file util used reported file details along with mime type, newer ones don't + +diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh +index 287c512..21366bf 100644 +--- a/scripts/find-debuginfo.sh ++++ b/scripts/find-debuginfo.sh +@@ -90,7 +90,7 @@ strip_to_debug() + { + local g= + $strip_g && case "$(file -bi "$2")" in +- application/x-sharedlib,*) g=-g ;; ++ application/x-sharedlib*) g=-g ;; + esac + eu-strip --remove-comment $g -f "$1" "$2" || exit + } diff --git a/rpm.spec b/rpm.spec index b2d80dd..b65281a 100644 --- a/rpm.spec +++ b/rpm.spec @@ -18,7 +18,7 @@ Summary: The RPM package management system Name: rpm Version: %{rpmver} -Release: 0.%{snapver}.6 +Release: 0.%{snapver}.7 Group: System Environment/Base Url: http://www.rpm.org/ Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2 @@ -38,6 +38,7 @@ Patch201: rpm-4.6.0-rc1-skip-equal-nevr.patch Patch202: rpm-4.6.0-rc1-noarch-subpkg.patch Patch203: rpm-4.6.0-rc1-defaultdocdir.patch Patch204: rpm-4.6.0-rc1-fp-hash.patch +Patch205: rpm-4.6.0-rc1-file-debuginfo.patch # These are not yet upstream Patch300: rpm-4.5.90-posttrans.patch @@ -176,6 +177,7 @@ that will manipulate RPM packages and databases. %patch202 -p1 -b .noarch-subpkg %patch203 -p1 -b .defaultdocdir %patch204 -p1 -b .fp-hash +%patch205 -p1 -b .file-debuginfo # needs a bit of upstream love first... #%patch300 -p1 -b .posttrans @@ -366,6 +368,9 @@ exit 0 %doc doc/librpm/html/* %changelog +* Fri Oct 31 2008 Panu Matilainen +- adjust find-debuginfo for "file" output change (#468129) + * Tue Oct 28 2008 Panu Matilainen - Florian's improved fingerprinting hash algorithm from upstream