]>
Commit | Line | Data |
---|---|---|
9d68bb95 AM |
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 | |
c0d03115 | 4 | @@ -195,15 +195,20 @@ |
529784bf | 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.\ | |
c0d03115 | 19 | -%files debug -f debugfiles.list\ |
9d68bb95 | 20 | +%description debuginfo -l pl_PL.UTF-8\ |
529784bf | 21 | +Ten pakiet dostarcza informacje dla debuggera dla pakietu %{name}.\ |
9d68bb95 | 22 | +Informacje te są przydatne przy rozwijaniu aplikacji używających tego\ |
529784bf | 23 | +pakietu oraz przy odpluskwianiu samego pakietu.\ |
c0d03115 | 24 | +%files debuginfo -f debugfiles.list\ |
529784bf | 25 | %defattr(-,root,root)\ |
26 | %endif\ | |
c0d03115 | 27 | %{nil} |
9d68bb95 AM |
28 | @@ -1123,7 +1128,7 @@ |
29 | %{?buildroot:%{__rm} -rf '%{buildroot}'} | |
ebdaaf76 AM |
30 | %__spec_install_body %{___build_body} |
31 | %__spec_install_post\ | |
e0c83b5d JB |
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}}\ | |
ebdaaf76 AM |
34 | %{__arch_install_post}\ |
35 | %{__os_install_post}\ | |
36 | %{nil} | |
9d68bb95 AM |
37 | diff -ur rpm.org/scripts/find-debuginfo.sh rpm/scripts/find-debuginfo.sh |
38 | --- rpm.org/scripts/find-debuginfo.sh 2007-09-06 09:36:38.000000000 +0200 | |
39 | +++ rpm/scripts/find-debuginfo.sh 2007-10-02 20:38:57.745519759 +0200 | |
40 | @@ -92,7 +92,8 @@ | |
41 | $strip_g && case "$(file -bi "$2")" in | |
42 | application/x-sharedlib,*) g=-g ;; | |
43 | esac | |
44 | - eu-strip --remove-comment $g -f "$1" "$2" || exit | |
45 | + objcopy --only-keep-debug --remove-section .comment "$2" "$1" || exit | |
46 | + objcopy --add-gnu-debuglink="$1" "$2" || exit | |
6fc678f5 JB |
47 | } |
48 | ||
9d68bb95 | 49 | # Make a relative symlink to $1 called $3$2 |