]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-debuginfo.patch
- updated for 4.4.2
[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-31 17:16:23.251095072 +0200
3 +++ rpm-4.3/macros.in   2004-05-31 17:35:47.653079064 +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 @@ -844,7 +849,7 @@
29  %__spec_install_pre    %{___build_pre}
30  %__spec_install_body   %{___build_body}
31  %__spec_install_post\
32 -%{?__debug_package:%{__debug_install_post}}\
33 +%{expand:%%define __sip_%{?_enable_debug_packages} 1}%{?__sip_1:%{?__debug_package:%{__debug_install_post}}}%{expand:%%undefine __sip_%{?_enable_debug_packages}}\
34  %{__arch_install_post}\
35  %{__os_install_post}\
36  %{nil}
37 @@ -1250,7 +1250,10 @@
38  unset DISPLAY ||:\
39  %{nil}
40  
41 -%install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\
42 +%install \
43 +%if 0%{?_enable_debug_packages}\
44 +%{?buildsubdir:%{debug_package}}\
45 +%endif\
46  %%install\
47  LANG=C\
48  export LANG\
49 @@ -1407,7 +1410,7 @@
50      %{?verbose:set -x;} \
51      if [ -d "$RPM_BUILD_ROOT" ]; then \
52         echo "Strip executable binaries, archives and shared object files."; \
53 -       filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*" %{?_noautostrip:! -regex "%{_noautostrip}"}`; \
54 +       filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*" ! -regex ".*/usr/lib[0-9]*/debug/.*\.debug" %{?_noautostrip:! -regex "%{_noautostrip}"}`; \
55         elfexelist=`echo $filelist | xargs -r file | \
56                 awk '/ELF.*executable/ {print $1}' | cut -d: -f1`; \
57         elfsharedlist=`echo $filelist | xargs -r file | \
58 --- rpm-4.4.2/scripts/find-debuginfo.sh.orig    2005-07-14 17:52:31.000000000 +0200
59 +++ rpm-4.4.2/scripts/find-debuginfo.sh 2005-07-23 13:57:04.542906944 +0200
60 @@ -25,7 +25,7 @@
61         [ -f "${debugfn}" ] && continue
62  
63         echo extracting debug info from $f
64 -       /usr/lib/rpm/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug -l "$SOURCEFILE" "$f"
65 +       /usr/bin/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug -l "$SOURCEFILE" "$f"
66  
67         # A binary already copied into /usr/lib/debug doesn't get stripped,
68         # just has its file names collected and adjusted.
69 @@ -35,10 +35,12 @@
70  
71         mkdir -p "${debugdn}"
72         if test -w "$f"; then
73 -               eu-strip -f "${debugfn}" "$f" || :
74 +               eu-strip -f "${debugfn}" -o "$f.tmp" "$f" || :
75 +               rm -f "$f.tmp"
76         else
77                 chmod u+w "$f"
78 -               eu-strip -f "${debugfn}" "$f" || :
79 +               eu-strip -f "${debugfn}" -o "$f.tmp" "$f" || :
80 +               rm -f "$f.tmp"
81                 chmod u-w "$f"
82         fi
83  done
84 --- rpm-4.3/platform.in.orig    2004-07-28 21:35:25.000000000 +0200
85 +++ rpm-4.3/platform.in 2004-07-28 21:37:22.000000000 +0200
86 @@ -60,7 +60,7 @@
87  %{nil}
88  
89  %__spec_install_post\
90 -    %{?__debug_package:%{__debug_install_post}}\
91 +    %{expand:%%define __sip_%{?_enable_debug_packages} 1}%{?__sip_1:%{?__debug_package:%{__debug_install_post}}}%{expand:%%undefine __sip_%{?_enable_debug_packages}}\
92      %{__arch_install_post}\
93      %{__os_install_post}\
94  %{nil}
This page took 0.034514 seconds and 4 git commands to generate.