public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - debugedit fixes from Roland McGrath (#336951, #337011)
Date: Mon, 23 Nov 2026 09:24:40 GMT	[thread overview]
Message-ID: <179542588015.1.11976967110516507569.rpms-rpm-d25c1c785c96@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : d25c1c785c966e6dafd8820514bac15966678345
Author : Panu Matilainen <pmatilai@fedoraproject.org>
Date   : 2007-10-18T06:48:21+00:00
Stats  : +47/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/d25c1c785c966e6dafd8820514bac15966678345?branch=pmatilai-v6

Log:
- debugedit fixes from Roland McGrath (#336951, #337011)

---
diff --git a/rpm-4.4.2.2-debugedit-fpc.patch b/rpm-4.4.2.2-debugedit-fpc.patch
new file mode 100644
index 0000000..0237c2c
--- /dev/null
+++ b/rpm-4.4.2.2-debugedit-fpc.patch
@@ -0,0 +1,41 @@
+diff -r f531397e7635 -r 751cf2c7614e tools/debugedit.c
+--- a/tools/debugedit.c	Sun Oct 14 12:49:18 2007 +0300
++++ b/tools/debugedit.c	Thu Oct 18 09:34:54 2007 +0300
+@@ -560,11 +560,16 @@ edit_dwarf2_line (DSO *dso, uint_32 off,
+ 	}
+       else
+ 	{
+-	  memcpy (s, comp_dir, comp_dir_len);
+-	  s[comp_dir_len] = '/';
+-	  memcpy (s + comp_dir_len + 1, dirt[value], dir_len);
+-	  s[comp_dir_len + 1 + dir_len] = '/';
+-	  memcpy (s + comp_dir_len + 1 + dir_len + 1, file, file_len + 1);
++	  char *p = s;
++	  if (comp_dir_len != 0)
++	    {
++	      memcpy (s, comp_dir, comp_dir_len);
++	      s[comp_dir_len] = '/';
++	      p += comp_dir_len + 1;
++	    }
++	  memcpy (p, dirt[value], dir_len);
++	  p[dir_len] = '/';
++	  memcpy (p + dir_len + 1, file, file_len + 1);
+ 	}
+       canonicalize_path (s, s);
+       if (list_file_fd != -1)
+@@ -822,6 +827,7 @@ edit_attributes (DSO *dso, unsigned char
+ 
+ 	  switch (form)
+ 	    {
++	    case DW_FORM_ref_addr: /* ptr_size in DWARF 2, offset in DWARF 3 */
+ 	    case DW_FORM_addr:
+ 	      ptr += ptr_size;
+ 	      break;
+@@ -847,7 +853,6 @@ edit_attributes (DSO *dso, unsigned char
+ 	    case DW_FORM_udata:
+ 	      read_uleb128 (ptr);
+ 	      break;
+-	    case DW_FORM_ref_addr:
+ 	    case DW_FORM_strp:
+ 	      ptr += 4;
+ 	      break;

diff --git a/rpm.spec b/rpm.spec
index 3c554a0..4d4c9e1 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -6,7 +6,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: 4.4.2.2
-Release: 3%{?dist}
+Release: 4%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source: http://rpm.org/releases/rpm-4.4.x/%{name}-%{version}.tar.gz
@@ -19,6 +19,7 @@ Patch6: rpm-4.4.2.2-matchpathcon.patch
 Patch7: rpm-4.4.2.1-no-popt.patch
 Patch8: rpm-4.4.2.2-nonutf-comment.patch
 Patch9: rpm-4.4.2.2-osgideps.patch
+Patch10: rpm-4.4.2.2-debugedit-fpc.patch
 
 # XXX Beware, this is one murky license, partially GPL/LGPL dual-licensed
 # and several different components with their own licenses included...
@@ -143,6 +144,7 @@ that will manipulate RPM packages and databases.
 %patch7 -p1 -b .no-popt
 %patch8 -p1 -b .nonutf-comment
 %patch9 -p1 -b .osgideps
+%patch10 -p1 -b .debugedit-fpc
 
 # force external popt
 rm -rf popt/
@@ -405,6 +407,9 @@ exit 0
 %endif
 
 %changelog
+* Thu Oct 18 2007 Panu Matilainen <pmatilai@redhat.com> 4.4.2.2-4
+- debugedit fixes from Roland McGrath (#336951, #337011)
+
 * Fri Oct 12 2007 Panu Matilainen <pmatilai@redhat.com> 4.4.2.2-3
 - add OSGi dependency generator script
 

                 reply	other threads:[~2026-11-23  9:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179542588015.1.11976967110516507569.rpms-rpm-d25c1c785c96@fedoraproject.org \
    --to=pmatilai@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox