X-Git-Url: https://git.tld-linux.org/?p=packages%2Frpm.git;a=blobdiff_plain;f=rpm-builddir-readlink.patch;h=069650f306415ea686caa29243b921aea5d37b13;hp=11afecfdd895c9841e3be2f02c7e291e14622e7d;hb=a4316b5afc30b9f3e8e667bcd44e4feccd020080;hpb=685372ccad422be5593dabe2ed2d89f19037e7ca diff --git a/rpm-builddir-readlink.patch b/rpm-builddir-readlink.patch index 11afecf..069650f 100644 --- a/rpm-builddir-readlink.patch +++ b/rpm-builddir-readlink.patch @@ -1,18 +1,16 @@ --- 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 - -+# canon RPM_BUILD_DIR, the DW_AT_comp_dir in ELF objects is real a real path +@@ -385,6 +385,9 @@ + debug_base_name="$BUILDDIR" + debug_dest_name="/usr/src/debug/${unique_debug_src_base}" + fi ++# canon debug_base_name, 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") -+echo "RPM_BUILD_DIR=$RPM_BUILD_DIR" -+ - BUILDDIR=. - out=debugfiles.list - nout=0 -@@ -201,6 +203,11 @@ ++ debug_base_name=$(readlink -f "$debug_base_name") + no_recompute= + if [ "$no_recompute_build_id" = "true" ]; then + no_recompute="-n" +@@ -398,6 +400,11 @@ $strict && exit 2 fi @@ -21,6 +19,6 @@ + $strict && exit 2 + fi + - # A binary already copied into /usr/lib/debug doesn't get stripped, - # just has its file names collected and adjusted. - case "$dn" in + # Add .gdb_index if requested. + if $include_gdb_index; then + if type gdb-add-index >/dev/null 2>&1; then