]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-debuginfo.patch
- updated for 4.4.8
[packages/rpm.git] / rpm-debuginfo.patch
1 diff -ur rpm-4.4.6.org/macros.in rpm-4.4.6/macros.in
2 --- rpm-4.4.6.org/macros.in     2006-04-08 21:04:54.000000000 +0200
3 +++ rpm-4.4.6/macros.in 2006-06-30 22:03:15.076727750 +0200
4 @@ -168,15 +168,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 @@ -961,7 +966,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 diff -ur rpm-4.4.6.org/platform.in rpm-4.4.6/platform.in
38 --- rpm-4.4.6.org/platform.in   2006-06-30 22:01:46.743207000 +0200
39 +++ rpm-4.4.6/platform.in       2006-06-30 22:03:15.080728000 +0200
40 @@ -61,7 +61,7 @@
41  %{nil}
42  
43  %__spec_install_post\
44 -    %{?__debug_package:%{__debug_install_post}}\
45 +    %{expand:%%define __sip_%{?_enable_debug_packages} 1}%{?__sip_1:%{?__debug_package:%{__debug_install_post}}}%{expand:%%undefine __sip_%{?_enable_debug_packages}}\
46      %{__arch_install_post}\
47      %{__os_install_post}\
48  %{nil}
49 diff -ur rpm-4.4.6.org/scripts/find-debuginfo.sh rpm-4.4.6/scripts/find-debuginfo.sh
50 --- rpm-4.4.6.org/scripts/find-debuginfo.sh     2006-02-12 15:59:51.000000000 +0100
51 +++ rpm-4.4.6/scripts/find-debuginfo.sh 2006-06-30 22:03:53.451126000 +0200
52 @@ -15,7 +15,8 @@
53  
54  strip_to_debug()
55  {
56 -  eu-strip --remove-comment -f "$1" "$2" || :
57 +  objcopy --only-keep-debug --remove-section .comment "$2" "$1"
58 +  objcopy --add-gnu-debuglink="$1" "$2"
59  }
60  
61  # Strip ELF binaries
62 @@ -30,7 +31,7 @@
63         [ -f "${debugfn}" ] && continue
64  
65         echo extracting debug info from $f
66 -       /usr/lib/rpm/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug -l "$SOURCEFILE" "$f"
67 +       /usr/bin/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug -l "$SOURCEFILE" "$f"
68  
69         # A binary already copied into /usr/lib/debug doesn't get stripped,
70         # just has its file names collected and adjusted.
71 @@ -54,4 +55,5 @@
72  find ${RPM_BUILD_ROOT}/usr/src/debug -type d -print0 | xargs -0 chmod a+rx
73  
74  find ${RPM_BUILD_ROOT}/usr/lib/debug -type f | sed -n -e "s#^$RPM_BUILD_ROOT##p" > $LISTFILE
75 +find ${RPM_BUILD_ROOT}/usr/lib/debug -mindepth 1 -type d | sed -n -e "s#^$RPM_BUILD_ROOT#%dir #p" >> $LISTFILE
76  find ${RPM_BUILD_ROOT}/usr/src/debug -mindepth 1 -maxdepth 1 | sed -n -e "s#^$RPM_BUILD_ROOT##p" >> $LISTFILE
This page took 0.053293 seconds and 3 git commands to generate.