Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r11504 - in main/branches/prefix: bin doc doc/package/ebuild/eapi
Date: Thu, 11 Sep 2008 17:32:21
Message-Id: E1Kdq1h-0000N6-Gh@stork.gentoo.org
1 Author: grobian
2 Date: 2008-09-11 17:32:16 +0000 (Thu, 11 Sep 2008)
3 New Revision: 11504
4
5 Modified:
6 main/branches/prefix/bin/prepstrip
7 main/branches/prefix/doc/custom.xsl
8 main/branches/prefix/doc/package/ebuild/eapi/2.docbook
9 Log:
10 Merged from trunk -r11499:11503
11
12 |11500 |New debugedit support for FEATURES=splitdebug, by Sven Wegener: This |
13 |zmedico|will create new-style buildid symlinks for the splitted debuginfo and|
14 | |also a symlink to the binary that belongs to the debuginfo. Requires |
15 | |debugedit from rpm 5. Old versions of debugedit ignore all unkown |
16 | |command line arguments, so this is a no-op for them. Information: |
17 | |http://fedoraproject.org/wiki/Releases/FeatureBuildId New debugedit |
18 | |tarball: |
19 | |http://dev.gentoo.org/~swegener/distfiles/debugedit-5.0.0.tar.bz2 |
20
21 |11501 |Remove docs for the proposed unpack() gitweb snapshot extension since|
22 |zmedico|it's unpopular. |
23
24 |11502 |Remove docs for the proposed eapi* default phase functions since they|
25 |zmedico|are unpopular. |
26
27 |11503 |Adjust chunk.section.depth and generate.section.toc.level so that the|
28 |zmedico|EAPI 2 draft docs appear on a single page which includes it's own |
29 | |table of contents. |
30
31
32 Modified: main/branches/prefix/bin/prepstrip
33 ===================================================================
34 --- main/branches/prefix/bin/prepstrip 2008-09-11 05:50:42 UTC (rev 11503)
35 +++ main/branches/prefix/bin/prepstrip 2008-09-11 17:32:16 UTC (rev 11504)
36 @@ -56,12 +56,23 @@
37 # dont save debug info twice
38 [[ ${x} == *".debug" ]] && return 0
39
40 + # this will recompute the build-id, but for now that's ok
41 + local buildid="$( type -P debugedit >/dev/null && debugedit -i "${x}" )"
42 +
43 mkdir -p $(dirname "${y}")
44 ${OBJCOPY} --only-keep-debug "${x}" "${y}"
45 ${OBJCOPY} --add-gnu-debuglink="${y}" "${x}"
46 [[ -g ${x} ]] && chmod go-r "${y}"
47 [[ -u ${x} ]] && chmod go-r "${y}"
48 chmod a-x,o-w "${y}"
49 +
50 + if [[ -n ${buildid} ]] ; then
51 + local buildid_dir="${D}usr/lib/debug/.build-id/${buildid:0:2}"
52 + local buildid_file="${buildid_dir}/${buildid:2}"
53 + mkdir -p "${buildid_dir}"
54 + ln -s "../../${x:${#D}}.debug" "${buildid_file}.debug"
55 + ln -s "/${x:${#D}}" "${buildid_file}"
56 + fi
57 }
58
59 # The existance of the section .symtab tells us that a binary is stripped.
60
61 Modified: main/branches/prefix/doc/custom.xsl
62 ===================================================================
63 --- main/branches/prefix/doc/custom.xsl 2008-09-11 05:50:42 UTC (rev 11503)
64 +++ main/branches/prefix/doc/custom.xsl 2008-09-11 17:32:16 UTC (rev 11504)
65 @@ -1,3 +1,5 @@
66 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
67 <xsl:param name="toc.section.depth" select="20"/>
68 +<xsl:param name="chunk.section.depth" select="2"/>
69 +<xsl:param name="generate.section.toc.level" select="2"/>
70 </xsl:stylesheet>
71
72 Modified: main/branches/prefix/doc/package/ebuild/eapi/2.docbook
73 ===================================================================
74 --- main/branches/prefix/doc/package/ebuild/eapi/2.docbook 2008-09-11 05:50:42 UTC (rev 11503)
75 +++ main/branches/prefix/doc/package/ebuild/eapi/2.docbook 2008-09-11 17:32:16 UTC (rev 11504)
76 @@ -309,19 +309,7 @@
77 </table>
78 </section>
79 </section>
80 - <section id='package-ebuild-eapi-2-draft-helpers-unpack'>
81 - <title>unpack</title>
82 - <section id='package-ebuild-eapi-2-draft-helpers-unpack-gitweb-snapshots'>
83 - <title>Gitweb Snapshots</title>
84 - <para>
85 - To aid interoperatiblity with gitweb, files with the suffixes of ;sf=tbz2
86 - and ;sf=tgz are now treated as .tar.bz2 and .tar.gz archives, respectively.
87 - This allows for ebuilds to consume gitweb snapshots and still use the
88 - default src_unpack implementation.
89 - </para>
90 </section>
91 - </section>
92 - </section>
93 <section id='package-ebuild-eapi-2-draft-metadata'>
94 <title>Metadata</title>
95 <section id='package-ebuild-eapi-2-draft-metadata-dependencies'>
96 @@ -555,67 +543,6 @@
97 </tbody>
98 </tgroup>
99 </table>
100 - <para>
101 - The default phase functions for a particular EAPI are also
102 - accessible as functions having names that start with 'eapi'
103 - followed by the EAPI value. For example, a call to a function
104 - named eapi0_src_compile is equivalent to a call to the
105 - default src_compile implementation that is provided with EAPI 0.
106 - </para>
107 - <table><title>Default EAPI Phase Functions</title>
108 - <tgroup cols='1' align='left' >
109 - <colspec colname='name'/>
110 - <thead>
111 - <row>
112 - <entry>Function Name</entry>
113 - </row>
114 - </thead>
115 - <tbody>
116 - <row>
117 - <entry>eapi0_pkg_nofetch</entry>
118 - </row>
119 - <row>
120 - <entry>eapi0_src_unpack</entry>
121 - </row>
122 - <row>
123 - <entry>eapi0_src_compile</entry>
124 - </row>
125 - <row>
126 - <entry>eapi0_src_test</entry>
127 - </row>
128 - <row>
129 - <entry>eapi1_pkg_nofetch</entry>
130 - </row>
131 - <row>
132 - <entry>eapi1_src_unpack</entry>
133 - </row>
134 - <row>
135 - <entry>eapi1_src_compile</entry>
136 - </row>
137 - <row>
138 - <entry>eapi1_src_test</entry>
139 - </row>
140 - <row>
141 - <entry>eapi2_pkg_nofetch</entry>
142 - </row>
143 - <row>
144 - <entry>eapi2_src_unpack</entry>
145 - </row>
146 - <row>
147 - <entry>eapi2_src_prepare</entry>
148 - </row>
149 - <row>
150 - <entry>eapi2_src_configure</entry>
151 - </row>
152 - <row>
153 - <entry>eapi2_src_compile</entry>
154 - </row>
155 - <row>
156 - <entry>eapi2_src_test</entry>
157 - </row>
158 - </tbody>
159 - </tgroup>
160 - </table>
161 </section>
162 <section id='package-ebuild-eapi-2-draft-phases-default-function-alias'>
163 <title>Default Phase Function Alias</title>