X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=rpm-pydebuginfo.patch;fp=rpm-pydebuginfo.patch;h=0000000000000000000000000000000000000000;hb=247bd0f753a3ec731d95cbde67da421f2908ff94;hp=1c9eac4cb695a739ac9b36e04cf266d8b415c3a9;hpb=51da5f32a8ba2fd2557459cc6bf048525be5872c;p=packages%2Frpm.git diff --git a/rpm-pydebuginfo.patch b/rpm-pydebuginfo.patch deleted file mode 100644 index 1c9eac4..0000000 --- a/rpm-pydebuginfo.patch +++ /dev/null @@ -1,52 +0,0 @@ ---- rpm-4.5/scripts/find-debuginfo.sh 2008-08-18 22:54:31.109085807 +0300 -+++ rpm-4.5/scripts/find-debuginfo.sh 2008-08-29 23:27:02.516217319 +0300 -@@ -10,30 +10,38 @@ - - LISTFILE=$BUILDDIR/debugfiles.list - SOURCEFILE=$BUILDDIR/debugsources.list -+DEBUGFILES=$BUILDDIR/debugfiles-add.list - - : > $SOURCEFILE --: > $LISTFILE -+touch $LISTFILE - --strip_to_debug() --{ -+strip_to_debug() { - objcopy --only-keep-debug --remove-section .comment "$2" "$1" - objcopy --add-gnu-debuglink="$1" "$2" - } - -+extract_debuginfo() { -+ : -+} -+ - if [ ! -d $RPM_BUILD_ROOT ]; then - # no buildroot, exit - exit 0 - fi - -+if [ -f $DEBUGFILES ]; then -+ cat $DEBUGFILES > $LISTFILE -+fi -+ - filelist=$(find $RPM_BUILD_ROOT ! -path "$RPM_BUILD_ROOT/usr/lib/debug/*.debug" -type f '(' -perm -0100 -or -perm -0010 -or -perm -0001 ')') --if [ -z "$filelist" ]; then -+if [ -z "$filelist" -a ! -f $DEBUGFILES ]; then - # no files, exit - exit 0 - fi - - filetypes=$(echo "$filelist" | xargs -r -d'\n' file) - elflist=$(echo "$filetypes" | awk -F: '/ELF.*, not stripped/ {print $1}') --if [ -z "$elflist" ]; then -+if [ -z "$elflist" -a ! -f $DEBUGFILES ]; then - # no elf objects, exit - exit 0 - fi -@@ -74,2 +82,5 @@ - find ${RPM_BUILD_ROOT}/usr/lib/debug -type f | sed -n -e "s#^$RPM_BUILD_ROOT##p" > $LISTFILE -+if [ -f $DEBUGFILES ]; then -+ sed -e "s#^$RPM_BUILD_ROOT##" $DEBUGFILES >> $LISTFILE -+fi - find ${RPM_BUILD_ROOT}/usr/src/debug -mindepth 1 -maxdepth 1 | sed -n -e "s#^$RPM_BUILD_ROOT##p" >> $LISTFILE