]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-debuginfo.patch
- updated
[packages/rpm.git] / rpm-debuginfo.patch
1 diff -ur rpm.org/macros.in rpm/macros.in
2 --- rpm.org/macros.in   2007-10-02 20:31:56.905775000 +0200
3 +++ rpm/macros.in       2007-10-02 20:35:30.122401828 +0200
4 @@ -195,14 +195,19 @@
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 +%description debuginfo -l pl_PL.UTF-8\
20 +Ten pakiet dostarcza informacje dla debuggera dla pakietu %{name}.\
21 +Informacje te są przydatne przy rozwijaniu aplikacji używających tego\
22 +pakietu oraz przy odpluskwianiu samego pakietu.\
23  %files debug -f debugfiles.list\
24  %defattr(-,root,root)\
25  %endif\
26 @@ -1123,7 +1128,7 @@
27  %{?buildroot:%{__rm} -rf '%{buildroot}'}
28  %__spec_install_body   %{___build_body}
29  %__spec_install_post\
30 -%{?__debug_package:%{__debug_install_post}}\
31 +%{expand:%%define __sip_%{?_enable_debug_packages} 1}%{?__sip_1:%{?__debug_package:%{__debug_install_post}}}%{expand:%%undefine __sip_%{?_enable_debug_packages}}\
32  %{__arch_install_post}\
33  %{__os_install_post}\
34  %{nil}
35 diff -ur rpm.org/scripts/find-debuginfo.sh rpm/scripts/find-debuginfo.sh
36 --- rpm.org/scripts/find-debuginfo.sh   2007-09-06 09:36:38.000000000 +0200
37 +++ rpm/scripts/find-debuginfo.sh       2007-10-02 20:38:57.745519759 +0200
38 @@ -92,7 +92,8 @@
39    $strip_g && case "$(file -bi "$2")" in
40    application/x-sharedlib,*) g=-g ;;
41    esac
42 -  eu-strip --remove-comment $g -f "$1" "$2" || exit
43 +  objcopy --only-keep-debug --remove-section .comment "$2" "$1" || exit
44 +  objcopy --add-gnu-debuglink="$1" "$2" || exit
45  }
46  
47  # Make a relative symlink to $1 called $3$2
This page took 0.036657 seconds and 4 git commands to generate.