From 15931be6ed297f6b107e73a969fd256778dc9b2e Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Aug 14 2007 07:44:23 +0000 Subject: - 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 - 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)