]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-debuginfo.patch
- do not do any stripping in find-debuginfo script
[packages/rpm.git] / rpm-debuginfo.patch
1 diff -urN rpm-4.3.org/macros.in rpm-4.3/macros.in
2 --- rpm-4.3.org/macros.in       2004-05-20 22:09:48.582353920 +0200
3 +++ rpm-4.3/macros.in   2004-05-20 22:40:19.156064416 +0200
4 @@ -118,15 +118,20 @@
5  %debug_package \
6  %ifnarch noarch\
7  %global __debug_package 1\
8 -%package debug\
9 +%package debuginfo\
10  Summary: Debug information for package %{name}\
11 +Summary(pl): Informacje dla debuggera dla pakietu %{name}\
12  Group: Development/Debug\
13  AutoReqProv: 0\
14 -%description debug\
15 +%description debuginfo\
16  This package provides debug information for package %{name}.\
17  Debug information is useful when developing applications that use this\
18  package or when debugging this package.\
19 -%files debug -f debugfiles.list\
20 +%description debuginfo -l pl\
21 +Ten pakiet dostarcza informacje dla debuggera dla pakietu %{name}.\
22 +Informacje te s± przydatne przy rozwijaniu aplikacji u¿ywaj±cych tego\
23 +pakietu oraz przy odpluskwianiu samego pakietu.\
24 +%files debuginfo -f debugfiles.list\
25  %defattr(-,root,root)\
26  %endif\
27  %{nil}
28 @@ -1247,7 +1252,12 @@
29  unset DISPLAY ||:\
30  %{nil}
31  
32 -%install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\
33 +%install \
34 +%if %{?_enable_debug_packages:1}%{!?_enable_debug_packages:0}\
35 +%if %{_enable_debug_packages}\
36 +%{?buildsubdir:%{debug_package}}\
37 +%endif\
38 +%endif\
39  %%install\
40  LANG=C\
41  export LANG\
42 @@ -1404,7 +1414,7 @@
43      %{?verbose:set -x;} \
44      if [ -d "$RPM_BUILD_ROOT" ]; then \
45         echo "Strip executable binaries, archives and shared object files."; \
46 -       filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*" %{?_noautostrip:! -regex "%{_noautostrip}"}`; \
47 +       filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*" ! -regex ".*/usr/lib[0-9]*/debug/.*\.debug" %{?_noautostrip:! -regex "%{_noautostrip}"}`; \
48         elfexelist=`echo $filelist | xargs -r file | \
49                 awk '/ELF.*executable/ {print $1}' | cut -d: -f1`; \
50         elfsharedlist=`echo $filelist | xargs -r file | \
51 diff -urN rpm-4.3.org/scripts/find-debuginfo.sh rpm-4.3/scripts/find-debuginfo.sh
52 --- rpm-4.3.org/scripts/find-debuginfo.sh       2004-05-20 22:09:25.767822256 +0200
53 +++ rpm-4.3/scripts/find-debuginfo.sh   2004-05-20 23:12:43.367499352 +0200
54 @@ -26,12 +26,14 @@
55  
56         mkdir -p "${debugdn}"
57         echo extracting debug info from $f
58 -       /usr/lib/rpm/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug -l "$SOURCEFILE" "$f"
59 +       /usr/bin/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug -l "$SOURCEFILE" "$f"
60         if test -w "$f"; then
61 -               eu-strip -f "${debugfn}" "$f" || :
62 +               eu-strip -f "${debugfn}" -o "$f.tmp" "$f" || :
63 +               rm -f "$f.tmp"
64         else
65                 chmod u+w "$f"
66 -               eu-strip -f "${debugfn}" "$f" || :
67 +               eu-strip -f "${debugfn}" -o "$f.tmp" "$f" || :
68 +               rm -f "$f.tmp"
69                 chmod u-w "$f"
70         fi
71  done
This page took 0.046578 seconds and 4 git commands to generate.