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: - updated find-debuginfo from Roland
Date: Mon, 23 Nov 2026 09:24:24 GMT	[thread overview]
Message-ID: <179542586479.1.17682846009756793615.rpms-rpm-15931be6ed29@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 15931be6ed297f6b107e73a969fd256778dc9b2e
Author : Panu Matilainen <pmatilai@fedoraproject.org>
Date   : 2007-08-14T07:44:23+00:00
Stats  : +7/-10 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/15931be6ed297f6b107e73a969fd256778dc9b2e?branch=pmatilai-v6

Log:
- updated find-debuginfo from Roland

---
diff --git a/find-debuginfo.sh b/find-debuginfo.sh
index 63d195c..73e5417 100755
--- a/find-debuginfo.sh
+++ b/find-debuginfo.sh
@@ -93,7 +93,7 @@ strip_to_debug()
   $strip_g && case "$(file -bi "$2")" in
   application/x-sharedlib,*) g=-g ;;
   esac
-  eu-strip --remove-comment -f "$1" "$2" || exit
+  eu-strip --remove-comment $g -f "$1" "$2" || exit
 }
 
 # Make a relative symlink to $1 called $3$2
@@ -254,13 +254,10 @@ if [ -s "$SOURCEFILE" ]; then
 fi
 
 if [ -d ${RPM_BUILD_ROOT}/usr/lib -o -d ${RPM_BUILD_ROOT}/usr/src ]; then
-  gendirs=src
-  ((nout > 0)) || gendirs='lib src'
-  for d in $gendirs; do
-    test ! -d ${RPM_BUILD_ROOT}/usr/$d ||
-    (cd ${RPM_BUILD_ROOT}/usr/$d; find debug -type d) |
-    sed "s,^,%dir /usr/$d/," >> $LISTFILE
-  done
+  ((nout > 0)) ||
+  test ! -d ${RPM_BUILD_ROOT}/usr/lib ||
+  (cd ${RPM_BUILD_ROOT}/usr/lib; find debug -type d) |
+  sed 's,^,%dir /usr/lib/,' >> $LISTFILE
 
   (cd ${RPM_BUILD_ROOT}/usr
    test ! -d lib/debug || find lib/debug ! -type d
@@ -324,7 +321,7 @@ while ((i < nout)); do
 done
 if ((nout > 0)); then
   # Now add the right %dir lines to each output list.
-  (cd ${RPM_BUILD_ROOT}; find usr/{lib,src}/debug -type d) |
+  (cd ${RPM_BUILD_ROOT}; find usr/lib/debug -type d) |
   sed 's#^.*$#\\@^/&/@{h;s@^.*$@%dir /&@p;g;}#' |
   LC_ALL=C sort -ur > ${LISTFILE}.dirs.sed
   i=0

diff --git a/rpm.spec b/rpm.spec
index ef2443b..14d4040 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -474,7 +474,7 @@ exit 0
 
 %changelog
 * Mon Aug 13 2007 Panu Matilainen <pmatilai@redhat.com> - 4.4.2.1-7
-- another debugedit fix from Roland McGrath
+- another debugedit fix and updated find-debuginfo script from Roland McGrath
 - make popt provide popt-devel to further ease split-off transition
 - skip ESTALE and EACCESS on mountpoints from Jeff Johnson (#190496, #220991)
 

                 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=179542586479.1.17682846009756793615.rpms-rpm-15931be6ed29@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