1 |
zmedico 08/11/22 05:43:45 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: portage-2.2_rc15.ebuild |
5 |
Removed: portage-2.2_rc12.ebuild portage-2.2_rc13.ebuild |
6 |
Log: |
7 |
21 Nov 2008; Zac Medico <zmedico@g.o> ChangeLog, |
8 |
-portage-2.2_rc12.ebuild, -portage-2.2_rc13.ebuild: |
9 |
Remove old versions and prune old ChangeLog entries. |
10 |
|
11 |
*portage-2.2_rc15 (21 Nov 2008) |
12 |
|
13 |
21 Nov 2008; Zac Medico <zmedico@g.o> +portage-2.2_rc15.ebuild: |
14 |
2.2_rc15 bump. This fixes bugs #173284 (make etc-update ignore hidden |
15 |
dirs), #216190 (don't install file names containing newlines), #236207 |
16 |
(fix hardcoded colors), #236683 (handle permission denied for ebuild |
17 |
command), #236714 (handle PortagePackageException for ebuild command), |
18 |
#243022 (handle broken symlinks when merging directories), #244485 |
19 |
(document EAPI 2 in ebuild man page), #245716 (ignore 'command not |
20 |
found' from configure scripts), #245779 (document new PKGDIR layout), |
21 |
#246451 (fix @security IndexError), #246667 (allow repoman vcs option |
22 |
customization), #246821 (fix TypeError when PORTAGE_BINHOST is unset), |
23 |
#246853 (send output to stderr consistently for installed masked |
24 |
packages), #247370 (don't lock build dir in --fetchonly mode), #247625 |
25 |
(fix PORTAGE_IONICE_COMMAND docs), #247776 (warn if CONFIG_PROTECT is |
26 |
empty), #248053 (fix inappropriate interaction of blockers with || deps), |
27 |
#248059 (handle invalid deps with --depclean). Bug #210077 tracks all |
28 |
bugs fixed since 2.1.5.x. |
29 |
(Portage version: 2.2_rc15/cvs/Linux 2.6.27-1111-x86-64 i686) |
30 |
|
31 |
Revision Changes Path |
32 |
1.551 sys-apps/portage/ChangeLog |
33 |
|
34 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.551&view=markup |
35 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.551&content-type=text/plain |
36 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.550&r2=1.551 |
37 |
|
38 |
Index: ChangeLog |
39 |
=================================================================== |
40 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v |
41 |
retrieving revision 1.550 |
42 |
retrieving revision 1.551 |
43 |
diff -u -r1.550 -r1.551 |
44 |
--- ChangeLog 11 Nov 2008 22:09:04 -0000 1.550 |
45 |
+++ ChangeLog 22 Nov 2008 05:43:45 -0000 1.551 |
46 |
@@ -1,6 +1,29 @@ |
47 |
# ChangeLog for sys-apps/portage |
48 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
49 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.550 2008/11/11 22:09:04 zmedico Exp $ |
50 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.551 2008/11/22 05:43:45 zmedico Exp $ |
51 |
+ |
52 |
+ 21 Nov 2008; Zac Medico <zmedico@g.o> ChangeLog, |
53 |
+ -portage-2.2_rc12.ebuild, -portage-2.2_rc13.ebuild: |
54 |
+ Remove old versions and prune old ChangeLog entries. |
55 |
+ |
56 |
+*portage-2.2_rc15 (21 Nov 2008) |
57 |
+ |
58 |
+ 21 Nov 2008; Zac Medico <zmedico@g.o> +portage-2.2_rc15.ebuild: |
59 |
+ 2.2_rc15 bump. This fixes bugs #173284 (make etc-update ignore hidden |
60 |
+ dirs), #216190 (don't install file names containing newlines), #236207 |
61 |
+ (fix hardcoded colors), #236683 (handle permission denied for ebuild |
62 |
+ command), #236714 (handle PortagePackageException for ebuild command), |
63 |
+ #243022 (handle broken symlinks when merging directories), #244485 |
64 |
+ (document EAPI 2 in ebuild man page), #245716 (ignore 'command not |
65 |
+ found' from configure scripts), #245779 (document new PKGDIR layout), |
66 |
+ #246451 (fix @security IndexError), #246667 (allow repoman vcs option |
67 |
+ customization), #246821 (fix TypeError when PORTAGE_BINHOST is unset), |
68 |
+ #246853 (send output to stderr consistently for installed masked |
69 |
+ packages), #247370 (don't lock build dir in --fetchonly mode), #247625 |
70 |
+ (fix PORTAGE_IONICE_COMMAND docs), #247776 (warn if CONFIG_PROTECT is |
71 |
+ empty), #248053 (fix inappropriate interaction of blockers with || deps), |
72 |
+ #248059 (handle invalid deps with --depclean). Bug #210077 tracks all |
73 |
+ bugs fixed since 2.1.5.x. |
74 |
|
75 |
*portage-2.2_rc14 (11 Nov 2008) |
76 |
|
77 |
@@ -192,231 +215,6 @@ |
78 |
-portage-2.2_pre8.ebuild, +portage-2.2_rc1.ebuild: |
79 |
First release candidate of portage-2.2 |
80 |
|
81 |
-*portage-2.1.5.6 (17 Jun 2008) |
82 |
- |
83 |
- 17 Jun 2008; Zac Medico <zmedico@g.o> +portage-2.1.5.6.ebuild: |
84 |
- 2.1.5.6 bump. This fixes bug #223417 (random KeyError during merge |
85 |
- phase with <python-2.5). Bug #216231 tracks all bugs fixed since |
86 |
- 2.1.4.x. |
87 |
- |
88 |
- 16 Jun 2008; Zac Medico <zmedico@g.o> |
89 |
- portage-2.1.5.5.ebuild, portage-2.2_pre7-r1.ebuild, |
90 |
- portage-2.2_pre8.ebuild: |
91 |
- Bug #223417 - Temporarily bump the python dep to >=python-2.5 for |
92 |
- float mtime support. This dep can revert to python-2.4 when bug |
93 |
- #223417 is fixed. |
94 |
- |
95 |
-*portage-2.1.5.5 (12 Jun 2008) |
96 |
- |
97 |
- 12 Jun 2008; Zac Medico <zmedico@g.o> +portage-2.1.5.5.ebuild: |
98 |
- 2.1.5.5 bump. This release has support for package contents indexing, |
99 |
- to optimize owner lookups for things like `portageq owners`. You may |
100 |
- notice an abnormally large amount of disk activity when the package |
101 |
- contents are indexed for the first time (triggered after a few merges |
102 |
- or when a file collision occurs). There are two new repoman checks |
103 |
- called 'inherit.autotools' and 'IUSE.undefined' (bug #224271). A |
104 |
- KeyError triggered by ROOT definition in make.conf is fixed. Keyword |
105 |
- mask warnings for installed package are suppressed in some more cases |
106 |
- (bug #225767). Bug #216231 tracks all bugs fixed since 2.1.4.x. |
107 |
- |
108 |
-*portage-2.2_pre8 (10 Jun 2008) |
109 |
- |
110 |
- 10 Jun 2008; Marius Mauch <genone@g.o> +portage-2.2_pre8.ebuild: |
111 |
- Add another testrelease to fix bugs #223591 and #220671, and to sync |
112 |
- features with 2.1 |
113 |
- |
114 |
-*portage-2.1.5.4 (05 Jun 2008) |
115 |
- |
116 |
- 05 Jun 2008; Zac Medico <zmedico@g.o> +portage-2.1.5.4.ebuild: |
117 |
- 2.1.5.4 bump. This fixes bug #224713 (unhandled TypeError exception |
118 |
- when make.conf is missing). Mask warnings for installed packages (from |
119 |
- bug #223447) should be less annoying now since they are triggered less |
120 |
- frequently. A bash regular expression inside 'doman' is fixed for |
121 |
- compatibility with FreeBSD (regression from 2.1.5.3). Bug #216231 |
122 |
- tracks all bugs fixed since 2.1.4.x. |
123 |
- |
124 |
-*portage-2.2_pre7-r1 (02 Jun 2008) |
125 |
- |
126 |
- 02 Jun 2008; Marius Mauch <genone@g.o> -portage-2.2_pre3.ebuild, |
127 |
- -portage-2.2_pre5.ebuild, -portage-2.2_pre6.ebuild, |
128 |
- -portage-2.2_pre7.ebuild, +portage-2.2_pre7-r1.ebuild: |
129 |
- Fix several critical bugs in the NEEDED conversion code, requiring all |
130 |
- NEEDED.ELF.2 files to be regenerated. |
131 |
- |
132 |
-*portage-2.1.5.3 (01 Jun 2008) |
133 |
- |
134 |
- 01 Jun 2008; Zac Medico <zmedico@g.o> +portage-2.1.5.3.ebuild: |
135 |
- 2.1.5.3 bump. This fixes bugs #223417 (KeyError in merge phase), |
136 |
- #223447 (depclean removes newly installed packages), and #223685 |
137 |
- (elog messages lost after build failure). Bug #216231 tracks all |
138 |
- bugs fixed since 2.1.4.x. |
139 |
- |
140 |
- 29 May 2008; Ali Polatel <hawking@g.o> portage-2.2_pre3.ebuild, |
141 |
- portage-2.2_pre5.ebuild, portage-2.2_pre6.ebuild, portage-2.2_pre7.ebuild: |
142 |
- python_mod_{cleanup,optimize} are ROOT aware. |
143 |
- |
144 |
- 23 May 2008; Zac Medico <zmedico@g.o> portage-2.2_pre7.ebuild: |
145 |
- Stop building and installing tbz2tool for Bug #220701. |
146 |
- |
147 |
-*portage-2.2_pre7 (22 May 2008) |
148 |
- |
149 |
- 22 May 2008; Marius Mauch <genone@g.o> +portage-2.2_pre7.ebuild: |
150 |
- Adding new (last?) testrelease snapshot, removing bogus notifications |
151 |
- about preserved libs. |
152 |
- |
153 |
-*portage-2.1.5.2 (20 May 2008) |
154 |
- |
155 |
- 20 May 2008; Zac Medico <zmedico@g.o> +portage-2.1.5.2.ebuild: |
156 |
- 2.1.5.2 bump. This fixes a regression which prevented sys-apps/portage |
157 |
- updates from being promoted to the front of the merge list. There are |
158 |
- a few other small fixes, including bug #222623. Bug #216231 tracks all |
159 |
- bugs fixed since 2.1.4.x. |
160 |
- |
161 |
-*portage-2.1.5 (14 May 2008) |
162 |
- |
163 |
- 14 May 2008; Zac Medico <zmedico@g.o> +portage-2.1.5.ebuild: |
164 |
- 2.1.5 release. This fixes bugs #220533, #221537, and #221755. |
165 |
- Bug #216231 tracks all bugs fixed since 2.1.4.x. |
166 |
- |
167 |
-*portage-2.1.5_rc10 (10 May 2008) |
168 |
- |
169 |
- 10 May 2008; Zac Medico <zmedico@g.o> +portage-2.1.5_rc10.ebuild: |
170 |
- 2.1.5_rc10 bump. This fixes the KeyError reported in bug #221107, |
171 |
- comment #4. Also, satisfied blockers are now shown in the merge list |
172 |
- in any case when blocking packages will be temporarily installed |
173 |
- simultaneously. For Bug #220701, the ebuild no longer installs tbz2tool. |
174 |
- Bug #216231 tracks all bugs fixed since 2.1.4.x. |
175 |
- |
176 |
-*portage-2.1.5_rc9 (09 May 2008) |
177 |
- |
178 |
- 09 May 2008; Zac Medico <zmedico@g.o> +portage-2.1.5_rc9.ebuild: |
179 |
- 2.1.5_rc9 bump. This fixes bugs #221053 (enable --skipfirst as a means |
180 |
- to bypass digest failures), #221071 (merge list displayed twice), and |
181 |
- #221107 (KeyError triggered by blockers). Bug #216231 tracks all bugs |
182 |
- fixed since 2.1.4.x. |
183 |
- |
184 |
-*portage-2.1.5_rc8 (09 May 2008) |
185 |
- |
186 |
- 09 May 2008; Zac Medico <zmedico@g.o> +portage-2.1.5_rc8.ebuild: |
187 |
- 2.1.5_rc8 bump. This includes support for having packages that block |
188 |
- eachother temporarily installed at the same time, which requires |
189 |
- special handling of file collisions. Also fixed are bugs #220341 |
190 |
- (unnecessary reinstall of multislot packages), #220689 (unnecessary |
191 |
- downgrades), #220775 (dodoc calls vecho unsuccessfully), and #220987 |
192 |
- (UnboundLocalError during dep calculations for alternate ROOT). |
193 |
- Bug #216231 tracks all bugs fixed since 2.1.4.x. |
194 |
- |
195 |
-*portage-2.1.5_rc7 (06 May 2008) |
196 |
- |
197 |
- 06 May 2008; Zac Medico <zmedico@g.o> +portage-2.1.5_rc7.ebuild: |
198 |
- 2.1.5_rc7 bump. The most notable bug fixed in this release is #172812. |
199 |
- Blockers are now resolved automatically in cases when it makes |
200 |
- sense to uninstall a conflicting package. Automatically uninstalled |
201 |
- packages are displayed in the merge list, marked "uninstall" and |
202 |
- highlighted in red. Other bugs fixed in this release include #172812, |
203 |
- #211833, #218854, #219286, #219294, #219369, #219837, #219918, #219957, |
204 |
- and #220171. Bug #216231 tracks all bugs fixed since 2.1.4.x. |
205 |
- |
206 |
-*portage-2.2_pre6 (05 May 2008) |
207 |
- |
208 |
- 05 May 2008; Marius Mauch <genone@g.o> +portage-2.2_pre6.ebuild: |
209 |
- New testrelease including rewritten support for FEATURES=preserve-libs and |
210 |
- several updates regarding package set handling |
211 |
- |
212 |
-*portage-2.1.5_rc6 (21 Apr 2008) |
213 |
- |
214 |
- 21 Apr 2008; Zac Medico <zmedico@g.o> +portage-2.1.5_rc6.ebuild: |
215 |
- 2.1.5_rc6 bump. The metadata-transfer feature is now disabled by default. |
216 |
- This disables the "Updating Portage cache" routine that used to run at |
217 |
- the tail end of each `emerge --sync` operation. If you use something like |
218 |
- the sqlite module and want to keep all metadata in that format alone |
219 |
- (useful for querying), enable FEATURES="metadata-transfer" in make.conf. |
220 |
- Also fixed in this release are bugs #218439 (emerge --help formatting) |
221 |
- and #218559 (sandbox violations in /var/cache/edb/dep by portage api |
222 |
- consumers). Bug #216231 tracks all bugs fixed since 2.1.4.x. |
223 |
- |
224 |
-*portage-2.1.5_rc5 (19 Apr 2008) |
225 |
- |
226 |
- 19 Apr 2008; Zac Medico <zmedico@g.o> +portage-2.1.5_rc5.ebuild: |
227 |
- 2.1.5_rc5 bump. This fixes bug #217905 (broken evaluation of conditionals |
228 |
- in SRC_URI), bug #218202 (unwanted spinner output with --nodeps), and |
229 |
- also fixes spurious permission adjustments from bug #162542. Bug #216231 |
230 |
- tracks all bugs fixed since 2.1.4.x. |
231 |
- |
232 |
-*portage-2.1.5_rc4 (15 Apr 2008) |
233 |
- |
234 |
- 15 Apr 2008; Zac Medico <zmedico@g.o> +portage-2.1.5_rc4.ebuild: |
235 |
- 2.1.5_rc4 bump. The dependency resolver now has a feedback mechanism that |
236 |
- helps make atom selections more consistent with previous selections that |
237 |
- have been added to the graph. This solves some common cases of bug #1343 |
238 |
- such as the issue with kaffe pulling in an unnecessary jdk slot in bug |
239 |
- #163801. Also fixed is bug #217664. Bug #216231 tracks all bugs fixed |
240 |
- since 2.1.4.x. |
241 |
- |
242 |
-*portage-2.1.5_rc3 (12 Apr 2008) |
243 |
- |
244 |
- 12 Apr 2008; Zac Medico <zmedico@g.o> +portage-2.1.5_rc3.ebuild: |
245 |
- 2.1.5_rc3 bump. Unlike earlier 2.1.5_rc releases, emerge is now fixed |
246 |
- to automatically downgrade masked packages when appropriate (solves a |
247 |
- side effect from the fix for bug #197810). Also fixed are bugs #162542, |
248 |
- #197905, #215016, #217122, and #217444. Bug #216231 tracks all bugs |
249 |
- fixed since 2.1.4.x. |
250 |
- |
251 |
-*portage-2.1.5_rc2 (05 Apr 2008) |
252 |
- |
253 |
- 05 Apr 2008; Zac Medico <zmedico@g.o> +portage-2.1.5_rc2.ebuild: |
254 |
- 2.1.5_rc2 bump for bug #216328 (fix broken --newuse). |
255 |
- |
256 |
-*portage-2.1.5_rc1 (04 Apr 2008) |
257 |
- |
258 |
- 04 Apr 2008; Zac Medico <zmedico@g.o> +portage-2.1.5_rc1.ebuild: |
259 |
- 2.1.5_rc1 release. In the event that a previously installed package has |
260 |
- since been masked, emerge will no longer perform an automatic downgrade |
261 |
- as part of a "world" update. You should either unmask such packages or |
262 |
- else explicitly re-merge them in order to have them dowgraded to an |
263 |
- unmasked version. Bug #216231 tracks all bugs fixed since 2.1.4.x. |
264 |
- |
265 |
-*portage-2.2_pre5 (19 Mar 2008) |
266 |
- |
267 |
- 19 Mar 2008; Marius Mauch <genone@g.o> -portage-2.2_pre4.ebuild, |
268 |
- +portage-2.2_pre5.ebuild: |
269 |
- New test release, implementing solutions for bugs #213790, #213592, #212152, |
270 |
- #211949 and more. |
271 |
- |
272 |
-*portage-2.2_pre4 (09 Mar 2008) |
273 |
- |
274 |
- 09 Mar 2008; Marius Mauch <genone@g.o> +portage-2.2_pre4.ebuild: |
275 |
- Another prerelease, most important changes are the removal of manifest1 support |
276 |
- and a potential data corruption issue with elog messages (bug #212055). |
277 |
- Other minor fixes include bug #212152, bug #97776, bug #211949 and bug #212080. |
278 |
- |
279 |
-*portage-2.2_pre3 (28 Feb 2008) |
280 |
- |
281 |
- 28 Feb 2008; Marius Mauch <genone@g.o> -portage-2.2_pre2.ebuild, |
282 |
- +portage-2.2_pre3.ebuild: |
283 |
- Bump 2.2 test release to bring it back in line with 2.1 releases |
284 |
- regarding bugfixes/features. Change epydoc dependency to avoid |
285 |
- a traceback during API doc generation with >=epydoc-3. |
286 |
- |
287 |
- 15 Feb 2008; Brent Baude <ranger@g.o> portage-2.1.4.4.ebuild: |
288 |
- stable ppc64, bug 210031 |
289 |
- |
290 |
- 14 Feb 2008; nixnut <nixnut@g.o> portage-2.1.4.4.ebuild: |
291 |
- Stable on ppc wrt bug 210031 |
292 |
- |
293 |
- 14 Feb 2008; Santiago M. Mola <coldwind@g.o> |
294 |
- portage-2.1.4.4.ebuild: |
295 |
- amd64 stable wrt bug #210031 |
296 |
- |
297 |
- 14 Feb 2008; Jeroen Roovers <jer@g.o> portage-2.1.4.4.ebuild: |
298 |
- Stable for HPPA (bug #210031). |
299 |
- |
300 |
- 14 Feb 2008; Raúl Porcel <armin76@g.o> portage-2.1.4.4.ebuild: |
301 |
- alpha/ia64/sparc stable wrt #210031 |
302 |
- |
303 |
- 13 Feb 2008; Dawid Węgliński <cla@g.o> portage-2.1.4.4.ebuild: |
304 |
- Stable on x86 (bug #210031) |
305 |
- |
306 |
*portage-2.1.4.4 (12 Feb 2008) |
307 |
|
308 |
12 Feb 2008; Zac Medico <zmedico@g.o> +portage-2.1.4.4.ebuild: |
309 |
|
310 |
|
311 |
|
312 |
1.1 sys-apps/portage/portage-2.2_rc15.ebuild |
313 |
|
314 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.2_rc15.ebuild?rev=1.1&view=markup |
315 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.2_rc15.ebuild?rev=1.1&content-type=text/plain |
316 |
|
317 |
Index: portage-2.2_rc15.ebuild |
318 |
=================================================================== |
319 |
# Copyright 1999-2008 Gentoo Foundation |
320 |
# Distributed under the terms of the GNU General Public License v2 |
321 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.2_rc15.ebuild,v 1.1 2008/11/22 05:43:45 zmedico Exp $ |
322 |
|
323 |
inherit eutils multilib python |
324 |
|
325 |
DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
326 |
HOMEPAGE="http://www.gentoo.org/proj/en/portage/index.xml" |
327 |
LICENSE="GPL-2" |
328 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
329 |
PROVIDE="virtual/portage" |
330 |
SLOT="0" |
331 |
IUSE="build doc epydoc selinux linguas_pl" |
332 |
|
333 |
python_dep=">=dev-lang/python-2.4" |
334 |
|
335 |
DEPEND="${python_dep} |
336 |
!build? ( >=sys-apps/sed-4.0.5 ) |
337 |
doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
338 |
epydoc? ( >=dev-python/epydoc-2.0 )" |
339 |
RDEPEND="${python_dep} |
340 |
!build? ( >=sys-apps/sed-4.0.5 |
341 |
>=app-shells/bash-3.2_p17 |
342 |
>=app-admin/eselect-news-20071201 ) |
343 |
elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
344 |
elibc_glibc? ( >=sys-apps/sandbox-1.2.17 !mips? ( >=sys-apps/sandbox-1.2.18.1-r2 ) ) |
345 |
elibc_uclibc? ( >=sys-apps/sandbox-1.2.17 !mips? ( >=sys-apps/sandbox-1.2.18.1-r2 ) ) |
346 |
>=app-misc/pax-utils-0.1.17 |
347 |
selinux? ( >=dev-python/python-selinux-2.16 )" |
348 |
PDEPEND=" |
349 |
!build? ( |
350 |
>=net-misc/rsync-2.6.4 |
351 |
userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
352 |
|| ( >=dev-lang/python-2.5 >=dev-python/pycrypto-2.0.1-r6 ) |
353 |
)" |
354 |
# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
355 |
# rsync-2.6.4 rdep is for the --filter option #167668 |
356 |
|
357 |
SRC_ARCHIVES="http://dev.gentoo.org/~zmedico/portage/archives" |
358 |
|
359 |
prefix_src_archives() { |
360 |
local x y |
361 |
for x in ${@}; do |
362 |
for y in ${SRC_ARCHIVES}; do |
363 |
echo ${y}/${x} |
364 |
done |
365 |
done |
366 |
} |
367 |
|
368 |
PV_PL="2.1.2" |
369 |
PATCHVER_PL="" |
370 |
TARBALL_PV="2.2_rc15" |
371 |
SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
372 |
$(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2) |
373 |
linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2 |
374 |
$(prefix_src_archives ${PN}-man-pl-${PV_PL}.tar.bz2) )" |
375 |
|
376 |
PATCHVER= |
377 |
if [ -n "${PATCHVER}" ]; then |
378 |
SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PATCHVER}.patch.bz2 |
379 |
$(prefix_src_archives ${PN}-${PATCHVER}.patch.bz2)" |
380 |
fi |
381 |
|
382 |
S="${WORKDIR}"/${PN}-${TARBALL_PV} |
383 |
S_PL="${WORKDIR}"/${PN}-${PV_PL} |
384 |
|
385 |
src_unpack() { |
386 |
unpack ${A} |
387 |
cd "${S}" |
388 |
if [ -n "${PATCHVER}" ]; then |
389 |
cd "${S}" |
390 |
epatch "${WORKDIR}/${PN}-${PATCHVER}.patch" |
391 |
fi |
392 |
einfo "Setting portage.VERSION to ${PVR} ..." |
393 |
sed -i "s/^VERSION=.*/VERSION=\"${PVR}\"/" pym/portage/__init__.py || \ |
394 |
die "Failed to patch portage.VERSION" |
395 |
} |
396 |
|
397 |
src_compile() { |
398 |
|
399 |
if use doc; then |
400 |
cd "${S}"/doc |
401 |
touch fragment/date |
402 |
make xhtml xhtml-nochunks || die "failed to make docs" |
403 |
fi |
404 |
|
405 |
if use epydoc; then |
406 |
einfo "Generating api docs" |
407 |
mkdir "${WORKDIR}"/api |
408 |
local my_modules epydoc_opts="" |
409 |
# A name collision between the portage.dbapi class and the |
410 |
# module with the same name triggers an epydoc crash unless |
411 |
# portage.dbapi is excluded from introspection. |
412 |
ROOT=/ has_version '>=dev-python/epydoc-3_pre0' && \ |
413 |
epydoc_opts='--exclude-introspect portage\.dbapi' |
414 |
my_modules="$(find "${S}/pym" -name "*.py" \ |
415 |
| sed -e 's:/__init__.py$::' -e 's:\.py$::' -e "s:^${S}/pym/::" \ |
416 |
-e 's:/:.:g' | sort)" || die "error listing modules" |
417 |
PYTHONPATH="${S}/pym:${PYTHONPATH}" epydoc -o "${WORKDIR}"/api \ |
418 |
-qqqqq --no-frames --show-imports $epydoc_opts \ |
419 |
--name "${PN}" --url "${HOMEPAGE}" \ |
420 |
${my_modules} || die "epydoc failed" |
421 |
fi |
422 |
} |
423 |
|
424 |
src_test() { |
425 |
./pym/portage/tests/runTests || \ |
426 |
die "test(s) failed" |
427 |
} |
428 |
|
429 |
src_install() { |
430 |
local libdir=$(get_libdir) |
431 |
local portage_base="/usr/${libdir}/portage" |
432 |
local portage_share_config=/usr/share/portage/config |
433 |
|
434 |
cd "${S}"/cnf |
435 |
insinto /etc |
436 |
doins etc-update.conf dispatch-conf.conf |
437 |
|
438 |
dodir "${portage_share_config}" |
439 |
insinto "${portage_share_config}" |
440 |
doins "${S}/cnf/"{sets.conf,make.globals} |
441 |
if [ -f "make.conf.${ARCH}".diff ]; then |
442 |
patch make.conf "make.conf.${ARCH}".diff || \ |
443 |
die "Failed to patch make.conf.example" |
444 |
newins make.conf make.conf.example |
445 |
else |
446 |
eerror "" |
447 |
eerror "Portage does not have an arch-specific configuration for this arch." |
448 |
eerror "Please notify the arch maintainer about this issue. Using generic." |
449 |
eerror "" |
450 |
newins make.conf make.conf.example |
451 |
fi |
452 |
|
453 |
dosym ..${portage_share_config}/make.globals /etc/make.globals |
454 |
|
455 |
insinto /etc/logrotate.d |
456 |
doins "${S}"/cnf/logrotate.d/elog-save-summary |
457 |
|
458 |
dodir ${portage_base}/bin |
459 |
exeinto ${portage_base}/bin |
460 |
|
461 |
# BSD and OSX need a sed wrapper so that find/xargs work properly |
462 |
if use userland_GNU; then |
463 |
rm "${S}"/bin/sed || die "Failed to remove sed wrapper" |
464 |
fi |
465 |
|
466 |
cd "${S}"/bin |
467 |
doexe * |
468 |
dosym newins ${portage_base}/bin/donewins |
469 |
|
470 |
local symlinks |
471 |
for mydir in $(find "${S}"/pym -type d | sed -e "s:^${S}/::") ; do |
472 |
dodir ${portage_base}/${mydir} |
473 |
insinto ${portage_base}/${mydir} |
474 |
cd "${S}"/${mydir} |
475 |
doins *.py |
476 |
symlinks=$(find . -mindepth 1 -maxdepth 1 -type l) |
477 |
[ -n "${symlinks}" ] && cp -P ${symlinks} "${D}${portage_base}/${mydir}" |
478 |
done |
479 |
|
480 |
# Symlinks to directories cause up/downgrade issues and the use of these |
481 |
# modules outside of portage is probably negligible. |
482 |
for x in "${D}${portage_base}/pym/"{cache,elog_modules} ; do |
483 |
[ ! -L "${x}" ] && continue |
484 |
die "symlink to directory will cause upgrade/downgrade issues: '${x}'" |
485 |
done |
486 |
|
487 |
exeinto ${portage_base}/pym/portage/tests |
488 |
doexe "${S}"/pym/portage/tests/runTests |
489 |
|
490 |
doman "${S}"/man/*.[0-9] |
491 |
if use linguas_pl; then |
492 |
doman -i18n=pl "${S_PL}"/man/pl/*.[0-9] |
493 |
doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9] |
494 |
fi |
495 |
|
496 |
dodoc "${S}"/{ChangeLog,NEWS,RELEASE-NOTES} |
497 |
use doc && dohtml -r "${S}"/doc/* |
498 |
use epydoc && dohtml -r "${WORKDIR}"/api |
499 |
|
500 |
dodir /usr/bin |
501 |
for x in ebuild emerge portageq repoman xpak; do |
502 |
dosym ../${libdir}/portage/bin/${x} /usr/bin/${x} |
503 |
done |
504 |
|
505 |
dodir /usr/sbin |
506 |
local my_syms="archive-conf |
507 |
dispatch-conf |
508 |
emaint |
509 |
emerge-webrsync |
510 |
env-update |
511 |
etc-update |
512 |
fixpackages |
513 |
quickpkg |
514 |
regenworld" |
515 |
local x |
516 |
for x in ${my_syms}; do |
517 |
dosym ../${libdir}/portage/bin/${x} /usr/sbin/${x} |
518 |
done |
519 |
dosym env-update /usr/sbin/update-env |
520 |
dosym etc-update /usr/sbin/update-etc |
521 |
|
522 |
dodir /etc/portage |
523 |
keepdir /etc/portage |
524 |
} |
525 |
|
526 |
pkg_preinst() { |
527 |
if ! use build && ! has_version dev-python/pycrypto && \ |
528 |
has_version '>=dev-lang/python-2.5' ; then |
529 |
if ! built_with_use '>=dev-lang/python-2.5' ssl ; then |
530 |
ewarn "If you are an ebuild developer and you plan to commit ebuilds" |
531 |
ewarn "with this system then please install dev-python/pycrypto or" |
532 |
ewarn "enable the ssl USE flag for >=dev-lang/python-2.5 in order" |
533 |
ewarn "to enable RMD160 hash support." |
534 |
ewarn "See bug #198398 for more information." |
535 |
fi |
536 |
fi |
537 |
if [ -f "${ROOT}/etc/make.globals" ]; then |
538 |
rm "${ROOT}/etc/make.globals" |
539 |
fi |
540 |
|
541 |
has_version ">=${CATEGORY}/${PN}-2.2_alpha" |
542 |
MINOR_UPGRADE=$? |
543 |
|
544 |
has_version "<=${CATEGORY}/${PN}-2.2_pre5" |
545 |
WORLD_MIGRATION_UPGRADE=$? |
546 |
|
547 |
has_version "<=${CATEGORY}/${PN}-2.2_pre7" |
548 |
NEEDED_REBUILD_UPGRADE=$? |
549 |
|
550 |
has_version "<${CATEGORY}/${PN}-2.2_alpha" |
551 |
ADD_SYSTEM_TO_WORLD=$? |
552 |
|
553 |
if [ $ADD_SYSTEM_TO_WORLD != 0 -a "$ROOT" != / ] && \ |
554 |
! has_version "${CATEGORY}/${PN}" ; then |
555 |
# building stage 1 |
556 |
ADD_SYSTEM_TO_WORLD=0 |
557 |
fi |
558 |
} |
559 |
|
560 |
pkg_postinst() { |
561 |
# Compile all source files recursively. Any orphans |
562 |
# will be identified and removed in postrm. |
563 |
python_mod_optimize /usr/$(get_libdir)/portage/pym |
564 |
|
565 |
if [ $ADD_SYSTEM_TO_WORLD = 0 ] && \ |
566 |
[ ! -e "$ROOT"var/lib/portage/world_sets ] ; then |
567 |
einfo "adding @system to world_sets for backward compatibility" |
568 |
echo @system > "$ROOT"var/lib/portage/world_sets |
569 |
fi |
570 |
|
571 |
if [ $WORLD_MIGRATION_UPGRADE = 0 ] ; then |
572 |
einfo "moving set references from the worldfile into world_sets" |
573 |
cd "${ROOT}/var/lib/portage/" |
574 |
grep "^@" world >> world_sets |
575 |
sed -i -e '/^@/d' world |
576 |
fi |
577 |
|
578 |
if [ $NEEDED_REBUILD_UPGRADE = 0 ] ; then |
579 |
einfo "rebuilding NEEDED.ELF.2 files" |
580 |
for cpv in "${ROOT}/var/db/pkg"/*/*; do |
581 |
if [ -f "${cpv}/NEEDED" ]; then |
582 |
rm -f "${cpv}/NEEDED.ELF.2" |
583 |
while read line; do |
584 |
filename=${line% *} |
585 |
needed=${line#* } |
586 |
needed=${needed//+/++} |
587 |
needed=${needed//#/##} |
588 |
needed=${needed//%/%%} |
589 |
newline=$(scanelf -BF "%a;%F;%S;%r;${needed}" $filename) |
590 |
newline=${newline// - } |
591 |
echo "${newline:3}" >> "${cpv}/NEEDED.ELF.2" |
592 |
done < "${cpv}/NEEDED" |
593 |
fi |
594 |
done |
595 |
fi |
596 |
|
597 |
elog |
598 |
elog "For help with using portage please consult the Gentoo Handbook" |
599 |
elog "at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3" |
600 |
elog |
601 |
|
602 |
if [ $MINOR_UPGRADE = 0 ] ; then |
603 |
elog "If you're upgrading from a pre-2.2 version of portage you might" |
604 |
elog "want to remerge world (emerge -e world) to take full advantage" |
605 |
elog "of some of the new features in 2.2." |
606 |
elog "This is not required however for portage to function properly." |
607 |
elog |
608 |
fi |
609 |
|
610 |
if [ -z "${PV/*_pre*}" ]; then |
611 |
elog "If you always want to use the latest development version of portage" |
612 |
elog "please read http://www.gentoo.org/proj/en/portage/doc/testing.xml" |
613 |
elog |
614 |
fi |
615 |
} |
616 |
|
617 |
pkg_postrm() { |
618 |
python_mod_cleanup /usr/$(get_libdir)/portage/pym |
619 |
} |