]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-debuginfo.patch
- fixed (finally?) GConf scripts, rel 0.6
[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 diff -urN rpm-4.3.org/scripts/find-debuginfo.sh rpm-4.3/scripts/find-debuginfo.sh
59 --- rpm-4.3.org/scripts/find-debuginfo.sh       2004-05-31 17:16:16.146175184 +0200
60 +++ rpm-4.3/scripts/find-debuginfo.sh   2004-05-31 17:16:51.153853208 +0200
61 @@ -26,12 +26,14 @@
62  
63         mkdir -p "${debugdn}"
64         echo extracting debug info from $f
65 -       /usr/lib/rpm/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug -l "$SOURCEFILE" "$f"
66 +       /usr/bin/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug -l "$SOURCEFILE" "$f"
67         if test -w "$f"; then
68 -               eu-strip -f "${debugfn}" "$f" || :
69 +               eu-strip -f "${debugfn}" -o "$f.tmp" "$f" || :
70 +               rm -f "$f.tmp"
71         else
72                 chmod u+w "$f"
73 -               eu-strip -f "${debugfn}" "$f" || :
74 +               eu-strip -f "${debugfn}" -o "$f.tmp" "$f" || :
75 +               rm -f "$f.tmp"
76                 chmod u-w "$f"
77         fi
78  done
79 --- rpm-4.3/platform.in.orig    2004-07-28 21:35:25.000000000 +0200
80 +++ rpm-4.3/platform.in 2004-07-28 21:37:22.000000000 +0200
81 @@ -60,7 +60,7 @@
82  %{nil}
83  
84  %__spec_install_post\
85 -    %{?__debug_package:%{__debug_install_post}}\
86 +    %{expand:%%define __sip_%{?_enable_debug_packages} 1}%{?__sip_1:%{?__debug_package:%{__debug_install_post}}}%{expand:%%undefine __sip_%{?_enable_debug_packages}}\
87      %{__arch_install_post}\
88      %{__os_install_post}\
89  %{nil}
This page took 0.044466 seconds and 3 git commands to generate.