diff --git a/rpm-4.4.2.1-buildid-thinko.patch b/rpm-4.4.2.1-buildid-thinko.patch new file mode 100644 index 0000000..f88b896 --- /dev/null +++ b/rpm-4.4.2.1-buildid-thinko.patch @@ -0,0 +1,24 @@ +changeset: 6113:1e7e1ab92d32 +tag: tip +user: Panu Matilainen +date: Sun Aug 12 15:27:46 2007 +0300 +files: tools/debugedit.c +description: +Fix debugedit buildid thinko. +Patch from Roland McGrath +(transplanted from fb1ee4c438c929f0b2af376fd23e05e52947b977) + + +diff -r 7fde0de974ee -r 1e7e1ab92d32 tools/debugedit.c +--- a/tools/debugedit.c Thu Aug 09 15:15:24 2007 +0300 ++++ b/tools/debugedit.c Sun Aug 12 15:27:46 2007 +0300 +@@ -1329,7 +1329,7 @@ handle_build_id (DSO *dso, Elf_Data *bui + } + + /* Clear the old bits so they do not affect the new hash. */ +- memset ((char *) build_id->d_buf + build_id_offset, 0, build_id_offset); ++ memset ((char *) build_id->d_buf + build_id_offset, 0, build_id_size); + + hashFunctionContextInit (&ctx, hf); + + diff --git a/rpm.spec b/rpm.spec index 3c97577..dc214b4 100644 --- a/rpm.spec +++ b/rpm.spec @@ -14,7 +14,7 @@ Summary: The RPM package management system Name: rpm Version: 4.4.2.1 %{expand: %%define rpm_version %{version}} -Release: 5%{?dist} +Release: 6%{?dist} Group: System Environment/Base Url: http://www.rpm.org/ Source: rpm-%{rpm_version}.tar.gz @@ -34,6 +34,7 @@ Patch13: rpm-4.4.2.1-bdb-glibc.patch Patch14: rpm-4.4.2.1-rpm-glibc.patch Patch15: rpm-4.4.2.1-config-mtime.patch Patch16: rpm-4.4.2.1-strict-docdir.patch +Patch17: rpm-4.4.2.1-buildid-thinko.patch # XXX Beware, this is one murky license, partially GPL/LGPL dual-licensed # and several different components with their own licenses included... License: (GPLv2 and LGPLv2 with exceptions) and BSD and MIT and Sleepycat @@ -161,6 +162,7 @@ shell-like rules. %patch14 -p1 -b .rpm-glibc %patch15 -p1 -b .config-mtime %patch16 -p1 -b .strict-docdir +%patch17 -p1 -b .buildid-thinko cp -f %{SOURCE2} scripts/find-debuginfo.sh %build @@ -465,6 +467,9 @@ exit 0 %{__includedir}/popt.h %changelog +* Sun Aug 12 2007 Panu Matilainen - 4.4.2.1-6 +- debugedit buildid thinko fix from Roland McGrath + * Thu Aug 9 2007 Panu Matilainen - 4.4.2.1-5 - avoid unnecessary .rpmsave / .rpmnew files by Tomas Mraz (#29470, #128622) - stricter docdir checking by Ralf S. Engelschall (#246819)