]>
Commit | Line | Data |
---|---|---|
1f51625f ER |
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 | |
af705b77 | 3 | @@ -24,6 +24,11 @@ |
1f51625f ER |
4 | # Barf on missing build IDs. |
5 | strict=false | |
6 | ||
7 | +# canon RPM_BUILD_DIR, 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 | +RPM_BUILD_DIR=$(readlink -f "$RPM_BUILD_DIR") | |
af705b77 | 10 | +echo "RPM_BUILD_DIR=$RPM_BUILD_DIR" |
1f51625f ER |
11 | + |
12 | BUILDDIR=. | |
13 | out=debugfiles.list | |
14 | nout=0 | |
af705b77 ER |
15 | @@ -201,6 +203,11 @@ |
16 | $strict && exit 2 | |
17 | fi | |
18 | ||
19 | + if [ ! -s "$SOURCEFILE" ]; then | |
f5532fb7 ER |
20 | + echo >&2 "*** ${strict_error}: no sources found for $f (stripped without sourcefile information?)" |
21 | + $strict && exit 2 | |
af705b77 ER |
22 | + fi |
23 | + | |
24 | # A binary already copied into /usr/lib/debug doesn't get stripped, | |
25 | # just has its file names collected and adjusted. | |
26 | case "$dn" in |