X-Git-Url: http://git.pld-linux.org/?p=packages%2Frpm.git;a=blobdiff_plain;f=rpm-builddir-readlink.patch;h=0453045fc8eb04eebabb1ad5d77fa64b4670bfb3;hp=11afecfdd895c9841e3be2f02c7e291e14622e7d;hb=7db865f2bcabd6634b78e94aae5f19c47fcc9a97;hpb=a3809792b1fd84d358ee44b131d3f713713a344e diff --git a/rpm-builddir-readlink.patch b/rpm-builddir-readlink.patch index 11afecf..0453045 100644 --- a/rpm-builddir-readlink.patch +++ b/rpm-builddir-readlink.patch @@ -1,9 +1,9 @@ --- rpm-4.5/scripts/find-debuginfo.sh~ 2010-01-27 19:25:48.000000000 +0200 +++ rpm-4.5/scripts/find-debuginfo.sh 2010-01-27 20:23:37.279516094 +0200 @@ -24,6 +24,11 @@ - # Barf on missing build IDs. strict=false + RPM_BUILD_DIR="`pwd`" +# canon RPM_BUILD_DIR, the DW_AT_comp_dir in ELF objects is real a real path +# and debugedit will ignore them as they are out of build dir. +RPM_BUILD_DIR=$(readlink -f "$RPM_BUILD_DIR") @@ -21,6 +21,6 @@ + $strict && exit 2 + fi + + [ -x /usr/bin/gdb-add-index ] && /usr/bin/gdb-add-index "$f" > /dev/null 2>&1 + # A binary already copied into /usr/lib/debug doesn't get stripped, - # just has its file names collected and adjusted. - case "$dn" in