]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-builddir-readlink.patch
add bcond for building with cheating (disabled by default)
[packages/rpm.git] / rpm-builddir-readlink.patch
1 --- rpm-4.5/scripts/find-debuginfo.sh~  2010-01-27 19:25:48.000000000 +0200
2 +++ rpm-4.5/scripts/find-debuginfo.sh   2010-01-27 20:23:37.279516094 +0200
3 @@ -385,6 +385,9 @@
4      debug_base_name="$BUILDDIR"
5      debug_dest_name="/usr/src/debug/${unique_debug_src_base}"
6    fi
7 +# canon debug_base_name, the DW_AT_comp_dir in ELF objects is real a real path
8 +# and debugedit will ignore them as they are out of build dir.
9 +  debug_base_name=$(readlink -f "$debug_base_name")
10    no_recompute=
11    if [ "$no_recompute_build_id" = "true" ]; then
12      no_recompute="-n"
13 @@ -398,6 +400,11 @@
14      $strict && exit 2
15    fi
16  
17 +  if [ ! -s "$SOURCEFILE" ]; then
18 +    echo >&2 "*** ${strict_error}: no sources found for $f (stripped without sourcefile information?)"
19 +    $strict && exit 2
20 +  fi
21 +
22    # Add .gdb_index if requested.
23    if $include_gdb_index; then
24      if type gdb-add-index >/dev/null 2>&1; then
This page took 0.028668 seconds and 3 git commands to generate.