From 63e6a294071ce68b1c8ec10554d64d1892faf4a8 Mon Sep 17 00:00:00 2001 From: Paul Nasrat Date: Jul 19 2006 19:56:10 +0000 Subject: Fix debugedit for ppc relocations (#199473) --- diff --git a/rpm-4.4.2-debugedit-ppc-reloc.patch b/rpm-4.4.2-debugedit-ppc-reloc.patch new file mode 100644 index 0000000..05c9d0b --- /dev/null +++ b/rpm-4.4.2-debugedit-ppc-reloc.patch @@ -0,0 +1,11 @@ +--- tools/debugedit.c 20 May 2004 21:30:00 -0000 2.8 ++++ tools/debugedit.c 19 Jul 2006 19:17:49 -0000 +@@ -1034,7 +1034,7 @@ edit_dwarf2 (DSO *dso) + break; + case EM_PPC: + case EM_PPC64: +- if (rtype != R_PPC_ADDR32 || rtype != R_PPC_UADDR32) ++ if (rtype != R_PPC_ADDR32 && rtype != R_PPC_UADDR32) + goto fail; + break; + case EM_S390: diff --git a/rpm.spec b/rpm.spec index f9ee3ba..c44f6d6 100644 --- a/rpm.spec +++ b/rpm.spec @@ -20,7 +20,7 @@ Name: rpm %define version 4.4.2 Version: %{version} %{expand: %%define rpm_version %{version}} -Release: 29 +Release: 30 Group: System Environment/Base Source: ftp://wraptastic.org/pub/rpm-4.4.x/rpm-%{rpm_version}.tar.gz Source1: mono-find-provides @@ -56,6 +56,7 @@ Patch27: rpm-4.4.2-noselinux-verify.patch Patch28: rpm-4.4.2-python-aslist.patch Patch29: rpm-4.4.2-rpmio-ipv6.patch Patch30: rpm-4.4.2-gnuhash.patch +Patch31: rpm-4.4.2-debugedit-ppc-reloc.patch License: GPL Conflicts: patch < 2.5 %ifos linux @@ -199,6 +200,7 @@ shell-like rules. %patch28 -p1 -b .aslist %patch29 -p1 -b .ipv6 %patch30 -p1 -b .gnuhash +%patch31 -p0 -b .dbgppc # rebuild configure for ipv6 autoconf @@ -595,6 +597,9 @@ exit 0 %{__includedir}/popt.h %changelog +* Wed Jul 19 2006 Paul Nasrat - 4.4.2-30 +- Fix debugedit for ppc relocations (#199473) + * Fri Jul 14 2006 David Cantrell - 4.4.2-29 - Fixed null pointer problem in rpmfcELF() DT_GNU_HASH handling