1 |
zmedico 08/06/01 10:30:18 |
2 |
|
3 |
Modified: portage-2.0.51.22-r3.ebuild ChangeLog |
4 |
portage-2.1.4.4.ebuild portage-2.1.1-r2.ebuild |
5 |
portage-2.1.5.2.ebuild |
6 |
Added: portage-2.1.5.3.ebuild |
7 |
Log: |
8 |
2.1.5.3 bump. This fixes bugs #223417 (KeyError in merge phase), |
9 |
(elog messages lost after build failure). Bug #216231 tracks all |
10 |
bugs fixed since 2.1.4.x. |
11 |
|
12 |
Drop eclass-manpages and portage-manpages deps from all ebuilds |
13 |
to make repoman happy. |
14 |
(Portage version: 2.1.5.3) |
15 |
|
16 |
Revision Changes Path |
17 |
1.14 sys-apps/portage/portage-2.0.51.22-r3.ebuild |
18 |
|
19 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.0.51.22-r3.ebuild?rev=1.14&view=markup |
20 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.0.51.22-r3.ebuild?rev=1.14&content-type=text/plain |
21 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.0.51.22-r3.ebuild?r1=1.13&r2=1.14 |
22 |
|
23 |
Index: portage-2.0.51.22-r3.ebuild |
24 |
=================================================================== |
25 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.0.51.22-r3.ebuild,v |
26 |
retrieving revision 1.13 |
27 |
retrieving revision 1.14 |
28 |
diff -u -r1.13 -r1.14 |
29 |
--- portage-2.0.51.22-r3.ebuild 12 Jan 2008 03:50:40 -0000 1.13 |
30 |
+++ portage-2.0.51.22-r3.ebuild 1 Jun 2008 10:30:18 -0000 1.14 |
31 |
@@ -1,6 +1,6 @@ |
32 |
# Copyright 1999-2008 Gentoo Foundation |
33 |
# Distributed under the terms of the GNU General Public License v2 |
34 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.0.51.22-r3.ebuild,v 1.13 2008/01/12 03:50:40 zmedico Exp $ |
35 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.0.51.22-r3.ebuild,v 1.14 2008/06/01 10:30:18 zmedico Exp $ |
36 |
|
37 |
inherit toolchain-funcs flag-o-matic |
38 |
|
39 |
@@ -15,7 +15,6 @@ |
40 |
IUSE="build doc selinux" |
41 |
DEPEND=">=dev-lang/python-2.2.1" |
42 |
RDEPEND="!build? ( >=sys-apps/sed-4.0.5 dev-python/python-fchksum >=dev-lang/python-2.2.1 sys-apps/debianutils >=app-shells/bash-2.05a ) !x86-fbsd? ( !mips? ( >=sys-apps/sandbox-1.2.17 ) ) selinux? ( >=dev-python/python-selinux-2.15 )" |
43 |
-PDEPEND="doc? ( app-portage/portage-manpages )" |
44 |
PROVIDE="virtual/portage" |
45 |
|
46 |
S=${WORKDIR}/${PN}-${PV} |
47 |
|
48 |
|
49 |
|
50 |
1.522 sys-apps/portage/ChangeLog |
51 |
|
52 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.522&view=markup |
53 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.522&content-type=text/plain |
54 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.521&r2=1.522 |
55 |
|
56 |
Index: ChangeLog |
57 |
=================================================================== |
58 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v |
59 |
retrieving revision 1.521 |
60 |
retrieving revision 1.522 |
61 |
diff -u -r1.521 -r1.522 |
62 |
--- ChangeLog 29 May 2008 18:01:52 -0000 1.521 |
63 |
+++ ChangeLog 1 Jun 2008 10:30:18 -0000 1.522 |
64 |
@@ -1,6 +1,14 @@ |
65 |
# ChangeLog for sys-apps/portage |
66 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
67 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.521 2008/05/29 18:01:52 hawking Exp $ |
68 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.522 2008/06/01 10:30:18 zmedico Exp $ |
69 |
+ |
70 |
+*portage-2.1.5.3 (01 Jun 2008) |
71 |
+ |
72 |
+ 01 Jun 2008; Zac Medico <zmedico@g.o> +portage-2.1.5.3.ebuild: |
73 |
+ 2.1.5.3 bump. This fixes bugs #223417 (KeyError in merge phase), |
74 |
+ #223447 (depclean removes newly installed packages), and #223685 |
75 |
+ (elog messages lost after build failure). Bug #216231 tracks all |
76 |
+ bugs fixed since 2.1.4.x. |
77 |
|
78 |
29 May 2008; Ali Polatel <hawking@g.o> portage-2.2_pre3.ebuild, |
79 |
portage-2.2_pre5.ebuild, portage-2.2_pre6.ebuild, portage-2.2_pre7.ebuild: |
80 |
|
81 |
|
82 |
|
83 |
1.9 sys-apps/portage/portage-2.1.4.4.ebuild |
84 |
|
85 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.4.4.ebuild?rev=1.9&view=markup |
86 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.4.4.ebuild?rev=1.9&content-type=text/plain |
87 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.4.4.ebuild?r1=1.8&r2=1.9 |
88 |
|
89 |
Index: portage-2.1.4.4.ebuild |
90 |
=================================================================== |
91 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.4.4.ebuild,v |
92 |
retrieving revision 1.8 |
93 |
retrieving revision 1.9 |
94 |
diff -u -r1.8 -r1.9 |
95 |
--- portage-2.1.4.4.ebuild 18 Feb 2008 09:51:22 -0000 1.8 |
96 |
+++ portage-2.1.4.4.ebuild 1 Jun 2008 10:30:18 -0000 1.9 |
97 |
@@ -1,6 +1,6 @@ |
98 |
# Copyright 1999-2008 Gentoo Foundation |
99 |
# Distributed under the terms of the GNU General Public License v2 |
100 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.4.4.ebuild,v 1.8 2008/02/18 09:51:22 vapier Exp $ |
101 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.4.4.ebuild,v 1.9 2008/06/01 10:30:18 zmedico Exp $ |
102 |
|
103 |
inherit toolchain-funcs eutils flag-o-matic multilib |
104 |
|
105 |
@@ -24,9 +24,6 @@ |
106 |
>=app-misc/pax-utils-0.1.13 |
107 |
selinux? ( >=dev-python/python-selinux-2.16 )" |
108 |
PDEPEND=" |
109 |
- doc? ( |
110 |
- || ( app-portage/eclass-manpages app-portage/portage-manpages ) |
111 |
- ) |
112 |
!build? ( |
113 |
>=net-misc/rsync-2.6.4 |
114 |
userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
115 |
|
116 |
|
117 |
|
118 |
1.17 sys-apps/portage/portage-2.1.1-r2.ebuild |
119 |
|
120 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.1-r2.ebuild?rev=1.17&view=markup |
121 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.1-r2.ebuild?rev=1.17&content-type=text/plain |
122 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.1-r2.ebuild?r1=1.16&r2=1.17 |
123 |
|
124 |
Index: portage-2.1.1-r2.ebuild |
125 |
=================================================================== |
126 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.1-r2.ebuild,v |
127 |
retrieving revision 1.16 |
128 |
retrieving revision 1.17 |
129 |
diff -u -r1.16 -r1.17 |
130 |
--- portage-2.1.1-r2.ebuild 12 Jan 2008 03:50:40 -0000 1.16 |
131 |
+++ portage-2.1.1-r2.ebuild 1 Jun 2008 10:30:18 -0000 1.17 |
132 |
@@ -1,6 +1,6 @@ |
133 |
# Copyright 1999-2008 Gentoo Foundation |
134 |
# Distributed under the terms of the GNU General Public License v2 |
135 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.1-r2.ebuild,v 1.16 2008/01/12 03:50:40 zmedico Exp $ |
136 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.1-r2.ebuild,v 1.17 2008/06/01 10:30:18 zmedico Exp $ |
137 |
|
138 |
inherit toolchain-funcs eutils flag-o-matic |
139 |
|
140 |
@@ -24,7 +24,6 @@ |
141 |
elibc_uclibc? ( >=sys-apps/sandbox-1.2.17 ) |
142 |
!userland_Darwin? ( >=app-misc/pax-utils-0.1.13 ) |
143 |
selinux? ( >=dev-python/python-selinux-2.16 ) |
144 |
- doc? ( app-portage/portage-manpages ) |
145 |
>=dev-python/pycrypto-2.0.1-r5" |
146 |
SRC_ARCHIVES="http://dev.gentoo.org/~zmedico/portage/archives" |
147 |
|
148 |
|
149 |
|
150 |
|
151 |
1.2 sys-apps/portage/portage-2.1.5.2.ebuild |
152 |
|
153 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.5.2.ebuild?rev=1.2&view=markup |
154 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.5.2.ebuild?rev=1.2&content-type=text/plain |
155 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.5.2.ebuild?r1=1.1&r2=1.2 |
156 |
|
157 |
Index: portage-2.1.5.2.ebuild |
158 |
=================================================================== |
159 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.5.2.ebuild,v |
160 |
retrieving revision 1.1 |
161 |
retrieving revision 1.2 |
162 |
diff -u -r1.1 -r1.2 |
163 |
--- portage-2.1.5.2.ebuild 20 May 2008 19:23:49 -0000 1.1 |
164 |
+++ portage-2.1.5.2.ebuild 1 Jun 2008 10:30:18 -0000 1.2 |
165 |
@@ -1,6 +1,6 @@ |
166 |
# Copyright 1999-2008 Gentoo Foundation |
167 |
# Distributed under the terms of the GNU General Public License v2 |
168 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.5.2.ebuild,v 1.1 2008/05/20 19:23:49 zmedico Exp $ |
169 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.5.2.ebuild,v 1.2 2008/06/01 10:30:18 zmedico Exp $ |
170 |
|
171 |
inherit eutils multilib |
172 |
|
173 |
@@ -24,9 +24,6 @@ |
174 |
>=app-misc/pax-utils-0.1.13 |
175 |
selinux? ( >=dev-python/python-selinux-2.16 )" |
176 |
PDEPEND=" |
177 |
- doc? ( |
178 |
- || ( app-portage/eclass-manpages app-portage/portage-manpages ) |
179 |
- ) |
180 |
!build? ( |
181 |
>=net-misc/rsync-2.6.4 |
182 |
userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
183 |
|
184 |
|
185 |
|
186 |
1.1 sys-apps/portage/portage-2.1.5.3.ebuild |
187 |
|
188 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.5.3.ebuild?rev=1.1&view=markup |
189 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.5.3.ebuild?rev=1.1&content-type=text/plain |
190 |
|
191 |
Index: portage-2.1.5.3.ebuild |
192 |
=================================================================== |
193 |
# Copyright 1999-2008 Gentoo Foundation |
194 |
# Distributed under the terms of the GNU General Public License v2 |
195 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.5.3.ebuild,v 1.1 2008/06/01 10:30:18 zmedico Exp $ |
196 |
|
197 |
inherit eutils multilib |
198 |
|
199 |
DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
200 |
HOMEPAGE="http://www.gentoo.org/proj/en/portage/index.xml" |
201 |
LICENSE="GPL-2" |
202 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
203 |
PROVIDE="virtual/portage" |
204 |
SLOT="0" |
205 |
IUSE="build doc epydoc selinux linguas_pl" |
206 |
DEPEND=">=dev-lang/python-2.4 |
207 |
!build? ( >=sys-apps/sed-4.0.5 ) |
208 |
doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
209 |
epydoc? ( >=dev-python/epydoc-2.0 )" |
210 |
RDEPEND=">=dev-lang/python-2.4 |
211 |
!build? ( >=sys-apps/sed-4.0.5 |
212 |
>=app-shells/bash-3.2_p17 ) |
213 |
elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
214 |
elibc_glibc? ( >=sys-apps/sandbox-1.2.17 !mips? ( >=sys-apps/sandbox-1.2.18.1-r2 ) ) |
215 |
elibc_uclibc? ( >=sys-apps/sandbox-1.2.17 !mips? ( >=sys-apps/sandbox-1.2.18.1-r2 ) ) |
216 |
>=app-misc/pax-utils-0.1.13 |
217 |
selinux? ( >=dev-python/python-selinux-2.16 )" |
218 |
PDEPEND=" |
219 |
!build? ( |
220 |
>=net-misc/rsync-2.6.4 |
221 |
userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
222 |
|| ( >=dev-lang/python-2.5 >=dev-python/pycrypto-2.0.1-r6 ) |
223 |
)" |
224 |
# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
225 |
# rsync-2.6.4 rdep is for the --filter option #167668 |
226 |
SRC_ARCHIVES="http://dev.gentoo.org/~zmedico/portage/archives" |
227 |
|
228 |
PV_PL="2.1.2" |
229 |
PATCHVER_PL="" |
230 |
TARBALL_PV="2.1.5" |
231 |
SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
232 |
${SRC_ARCHIVES}/${PN}-${TARBALL_PV}.tar.bz2 |
233 |
linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2 |
234 |
${SRC_ARCHIVES}/${PN}-man-pl-${PV_PL}.tar.bz2 )" |
235 |
|
236 |
PATCHVER="${PV}" |
237 |
if [ -n "${PATCHVER}" ]; then |
238 |
SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PATCHVER}.patch.bz2 |
239 |
${SRC_ARCHIVES}/${PN}-${PATCHVER}.patch.bz2" |
240 |
fi |
241 |
|
242 |
if [ -n "${PATCHVER_PL}" ]; then |
243 |
SRC_URI="${SRC_URI} linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch.bz2 |
244 |
${SRC_ARCHIVES}/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch.bz2 )" |
245 |
fi |
246 |
|
247 |
S="${WORKDIR}"/${PN}-${TARBALL_PV} |
248 |
S_PL="${WORKDIR}"/${PN}-${PV_PL} |
249 |
|
250 |
portage_docs() { |
251 |
elog "" |
252 |
elog "For help with using portage please consult the Gentoo Handbook" |
253 |
elog "at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3" |
254 |
elog "" |
255 |
} |
256 |
|
257 |
src_unpack() { |
258 |
unpack ${A} |
259 |
cd "${S}" |
260 |
if [ -n "${PATCHVER}" ]; then |
261 |
cd "${S}" |
262 |
epatch "${WORKDIR}/${PN}-${PATCHVER}.patch" |
263 |
fi |
264 |
einfo "Setting portage.VERSION to ${PVR} ..." |
265 |
sed -i "s/^VERSION=.*/VERSION=\"${PVR}\"/" pym/portage.py || \ |
266 |
die "Failed to patch portage.VERSION" |
267 |
eend 0 |
268 |
if [ -n "${PATCHVER_PL}" ]; then |
269 |
use linguas_pl && \ |
270 |
epatch "${WORKDIR}/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch" |
271 |
fi |
272 |
} |
273 |
|
274 |
src_compile() { |
275 |
cd "${S}"/src |
276 |
|
277 |
if use doc; then |
278 |
cd "${S}"/doc |
279 |
touch fragment/date |
280 |
sed -i "s/svn-trunk/${PVR}/" fragment/version |
281 |
make xhtml xhtml-nochunks || die "failed to make docs" |
282 |
fi |
283 |
|
284 |
if use epydoc; then |
285 |
einfo "Generating api docs" |
286 |
mkdir "${WORKDIR}"/api |
287 |
local my_modules |
288 |
my_modules="$(find "${S}/pym" -name "*.py" \ |
289 |
| sed -e 's:/__init__.py$::' -e 's:\.py$::' -e "s:^${S}/pym/::" \ |
290 |
-e 's:/:.:g')" || die "error listing modules" |
291 |
PYTHONPATH="${S}/pym:${PYTHONPATH}" epydoc -o "${WORKDIR}"/api \ |
292 |
-qqqqq --no-frames --show-imports \ |
293 |
--name "${PN}" --url "${HOMEPAGE}" \ |
294 |
${my_modules} || die "epydoc failed" |
295 |
fi |
296 |
} |
297 |
|
298 |
src_test() { |
299 |
./tests/runTests || \ |
300 |
die "test(s) failed" |
301 |
} |
302 |
|
303 |
src_install() { |
304 |
local libdir=$(get_libdir) |
305 |
local portage_base="/usr/${libdir}/portage" |
306 |
cd "${S}"/cnf |
307 |
insinto /etc |
308 |
doins etc-update.conf dispatch-conf.conf make.globals |
309 |
if [ -f "make.conf.${ARCH}".diff ]; then |
310 |
patch make.conf "make.conf.${ARCH}".diff || \ |
311 |
die "Failed to patch make.conf.example" |
312 |
newins make.conf make.conf.example |
313 |
else |
314 |
eerror "" |
315 |
eerror "Portage does not have an arch-specific configuration for this arch." |
316 |
eerror "Please notify the arch maintainer about this issue. Using generic." |
317 |
eerror "" |
318 |
newins make.conf make.conf.example |
319 |
fi |
320 |
|
321 |
insinto /etc/logrotate.d |
322 |
doins "${S}"/cnf/logrotate.d/elog-save-summary |
323 |
|
324 |
dodir ${portage_base}/bin |
325 |
exeinto ${portage_base}/bin |
326 |
# BSD and OSX need a sed wrapper so that find/xargs work properly |
327 |
if use userland_GNU; then |
328 |
rm "${S}"/bin/sed || die "Failed to remove sed wrapper" |
329 |
fi |
330 |
cd "${S}"/bin |
331 |
doexe * |
332 |
dosym newins ${portage_base}/bin/donewins |
333 |
|
334 |
local mydir |
335 |
for mydir in pym pym/cache pym/elog_modules; do |
336 |
dodir ${portage_base}/${mydir} |
337 |
insinto ${portage_base}/${mydir} |
338 |
cd "${S}"/${mydir} |
339 |
doins *.py |
340 |
done |
341 |
|
342 |
doman "${S}"/man/*.[0-9] |
343 |
if use linguas_pl; then |
344 |
doman -i18n=pl "${S_PL}"/man/pl/*.[0-9] |
345 |
doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9] |
346 |
fi |
347 |
dodoc "${S}"/ChangeLog |
348 |
dodoc "${S}"/NEWS |
349 |
dodoc "${S}"/RELEASE-NOTES |
350 |
use doc && dohtml "${S}"/doc/*.html |
351 |
use epydoc && dohtml -r "${WORKDIR}"/api |
352 |
|
353 |
dodir /usr/bin |
354 |
local x |
355 |
for x in ebuild emerge portageq repoman xpak; do |
356 |
dosym ../${libdir}/portage/bin/${x} /usr/bin/${x} |
357 |
done |
358 |
|
359 |
dodir /usr/sbin |
360 |
local my_syms="archive-conf |
361 |
dispatch-conf |
362 |
emaint |
363 |
emerge-webrsync |
364 |
env-update |
365 |
etc-update |
366 |
fixpackages |
367 |
quickpkg |
368 |
regenworld" |
369 |
local x |
370 |
for x in ${my_syms}; do |
371 |
dosym ../${libdir}/portage/bin/${x} /usr/sbin/${x} |
372 |
done |
373 |
dosym env-update /usr/sbin/update-env |
374 |
dosym etc-update /usr/sbin/update-etc |
375 |
|
376 |
dodir /etc/portage |
377 |
keepdir /etc/portage |
378 |
|
379 |
echo PYTHONPATH=\"${portage_base}/pym\" > "${WORKDIR}"/05portage.envd |
380 |
doenvd "${WORKDIR}"/05portage.envd |
381 |
} |
382 |
|
383 |
pkg_preinst() { |
384 |
if ! use build && ! has_version dev-python/pycrypto && \ |
385 |
has_version '>=dev-lang/python-2.5' ; then |
386 |
if ! built_with_use '>=dev-lang/python-2.5' ssl ; then |
387 |
echo "If you are a Gentoo developer and you plan to" \ |
388 |
"commit ebuilds with this system then please install" \ |
389 |
"pycrypto or enable python's ssl USE flag in order" \ |
390 |
"to enable RMD160 hash support. See bug #198398 for" \ |
391 |
"more information." | \ |
392 |
fmt -w 70 | while read line ; do ewarn "${line}" ; done |
393 |
fi |
394 |
fi |
395 |
local portage_base="/usr/$(get_libdir)/portage" |
396 |
if has livecvsportage ${FEATURES} && [ "${ROOT}" = "/" ]; then |
397 |
rm -rf "${D}"/${portage_base}/pym/* |
398 |
rm -rf "${D}"/${portage_base}/bin/* |
399 |
fi |
400 |
} |
401 |
|
402 |
pkg_postinst() { |
403 |
local x |
404 |
|
405 |
if [ ! -f "${ROOT}/var/lib/portage/world" ] && |
406 |
[ -f "${ROOT}"/var/cache/edb/world ] && |
407 |
[ ! -h "${ROOT}"/var/cache/edb/world ]; then |
408 |
mv "${ROOT}"/var/cache/edb/world "${ROOT}"/var/lib/portage/world |
409 |
ln -s ../../lib/portage/world /var/cache/edb/world |
410 |
fi |
411 |
|
412 |
for x in "${ROOT}"/etc/._cfg????_make.globals; do |
413 |
# Overwrite the globals file automatically. |
414 |
[ -e "${x}" ] && mv -f "${x}" "${ROOT}etc/make.globals" |
415 |
done |
416 |
|
417 |
# Compile all source files recursively. Any orphans |
418 |
# will be identified and removed in postrm. |
419 |
compile_all_python_bytecodes "${ROOT}usr/$(get_libdir)/portage/pym" |
420 |
|
421 |
echo "The metadata-transfer feature is now disabled" \ |
422 |
"by default. This disables the \"Updating Portage cache\"" \ |
423 |
"routine that used to run at the tail end of each" \ |
424 |
"\`emerge --sync\` operation. If you use something" \ |
425 |
"like the sqlite module and want to keep all metadata" \ |
426 |
"in that format alone (useful for querying), enable" \ |
427 |
"FEATURES=\"metadata-transfer\" in make.conf. You should" \ |
428 |
"also enable FEATURES=\"metadata-transfer\" if you have" \ |
429 |
"any eclasses from PORTDIR_OVERLAY that override eclasses" \ |
430 |
"from PORTDIR (in this case, you may have disabled" \ |
431 |
"a relevant warning message by setting" \ |
432 |
"PORTAGE_ECLASS_WARNING_ENABLE=\"0\" in make.conf)." \ |
433 |
| fmt -w 75 | while read x ; do elog "$x" ; done |
434 |
|
435 |
portage_docs |
436 |
} |
437 |
|
438 |
pkg_postrm() { |
439 |
remove_orphan_python_bytecodes "${ROOT}usr/$(get_libdir)/portage/pym" |
440 |
} |
441 |
|
442 |
compile_all_python_bytecodes() { |
443 |
python -c "from compileall import compile_dir; compile_dir('${1}', quiet=True)" |
444 |
python -O -c "from compileall import compile_dir; compile_dir('${1}', quiet=True)" |
445 |
} |
446 |
|
447 |
remove_orphan_python_bytecodes() { |
448 |
[[ -d ${1} ]] || return |
449 |
find "${1}" -name '*.py[co]' -print0 | \ |
450 |
while read -d $'\0' f ; do |
451 |
src_py=${f%[co]} |
452 |
[[ -f ${src_py} ]] && continue |
453 |
rm -f "${src_py}"[co] |
454 |
done |
455 |
} |
456 |
|
457 |
|
458 |
|
459 |
-- |
460 |
gentoo-commits@l.g.o mailing list |