1 |
zmedico 11/12/28 09:01:40 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: portage-2.2.0_alpha84.ebuild |
5 |
Log: |
6 |
2.2.0_alpha84 version bump. This includes all of the fixes in |
7 |
portage-2.1.10.44. Bug #210077 tracks all bugs fixed since portage-2.1.x. |
8 |
|
9 |
(Portage version: 2.2.0_alpha84/cvs/Linux i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.943 sys-apps/portage/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.943&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.943&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.942&r2=1.943 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v |
21 |
retrieving revision 1.942 |
22 |
retrieving revision 1.943 |
23 |
diff -u -r1.942 -r1.943 |
24 |
--- ChangeLog 28 Dec 2011 09:00:39 -0000 1.942 |
25 |
+++ ChangeLog 28 Dec 2011 09:01:40 -0000 1.943 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for sys-apps/portage |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.942 2011/12/28 09:00:39 zmedico Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.943 2011/12/28 09:01:40 zmedico Exp $ |
31 |
+ |
32 |
+*portage-2.2.0_alpha84 (28 Dec 2011) |
33 |
+ |
34 |
+ 28 Dec 2011; Zac Medico <zmedico@g.o> +portage-2.2.0_alpha84.ebuild: |
35 |
+ 2.2.0_alpha84 version bump. This includes all of the fixes in |
36 |
+ portage-2.1.10.44. Bug #210077 tracks all bugs fixed since portage-2.1.x. |
37 |
|
38 |
*portage-2.1.10.44 (28 Dec 2011) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-apps/portage/portage-2.2.0_alpha84.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-2.2.0_alpha84.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-2.2.0_alpha84.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: portage-2.2.0_alpha84.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.2.0_alpha84.ebuild,v 1.1 2011/12/28 09:01:40 zmedico Exp $ |
53 |
|
54 |
# Require EAPI 2 since we now require at least python-2.6 (for python 3 |
55 |
# syntax support) which also requires EAPI 2. |
56 |
EAPI=3 |
57 |
inherit eutils multilib python |
58 |
|
59 |
DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
60 |
HOMEPAGE="http://www.gentoo.org/proj/en/portage/index.xml" |
61 |
LICENSE="GPL-2" |
62 |
KEYWORDS="~sparc-fbsd ~x86-fbsd" |
63 |
SLOT="0" |
64 |
IUSE="build doc epydoc +ipc linguas_pl python2 python3 selinux xattr" |
65 |
|
66 |
# Import of the io module in python-2.6 raises ImportError for the |
67 |
# thread module if threading is disabled. |
68 |
python_dep="python3? ( =dev-lang/python-3* ) |
69 |
!python2? ( !python3? ( |
70 |
build? ( || ( dev-lang/python:2.7 dev-lang/python:2.6[threads] ) ) |
71 |
!build? ( || ( dev-lang/python:2.7 dev-lang/python:2.6[threads] >=dev-lang/python-3 ) ) |
72 |
) ) |
73 |
python2? ( !python3? ( || ( dev-lang/python:2.7 dev-lang/python:2.6[threads] ) ) )" |
74 |
|
75 |
# The pysqlite blocker is for bug #282760. |
76 |
DEPEND="${python_dep} |
77 |
!build? ( >=sys-apps/sed-4.0.5 ) |
78 |
doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
79 |
epydoc? ( >=dev-python/epydoc-2.0 !<=dev-python/pysqlite-2.4.1 )" |
80 |
# Require sandbox-2.2 for bug #288863. |
81 |
# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
82 |
# quite slow, so it's not considered in the dependencies as an alternative to |
83 |
# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
84 |
# for now, don't pull in xattr deps for other kernels. |
85 |
RDEPEND="${python_dep} |
86 |
!build? ( >=sys-apps/sed-4.0.5 |
87 |
>=app-shells/bash-3.2_p17 |
88 |
>=app-admin/eselect-1.2 ) |
89 |
elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
90 |
elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
91 |
elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
92 |
>=app-misc/pax-utils-0.1.17 |
93 |
xattr? ( kernel_linux? ( || ( >=dev-lang/python-3.3_pre20110902 dev-python/pyxattr ) ) ) |
94 |
selinux? ( || ( >=sys-libs/libselinux-2.0.94[python] <sys-libs/libselinux-2.0.94 ) ) |
95 |
!<app-shells/bash-3.2_p17 |
96 |
!<app-admin/logrotate-3.8.0" |
97 |
PDEPEND=" |
98 |
!build? ( |
99 |
>=net-misc/rsync-2.6.4 |
100 |
userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
101 |
)" |
102 |
# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
103 |
# NOTE: FEATURES=install-sources requires debugedit and rsync |
104 |
|
105 |
SRC_ARCHIVES="http://dev.gentoo.org/~zmedico/portage/archives" |
106 |
|
107 |
prefix_src_archives() { |
108 |
local x y |
109 |
for x in ${@}; do |
110 |
for y in ${SRC_ARCHIVES}; do |
111 |
echo ${y}/${x} |
112 |
done |
113 |
done |
114 |
} |
115 |
|
116 |
PV_PL="2.1.2" |
117 |
PATCHVER_PL="" |
118 |
TARBALL_PV=2.2.0_alpha84 |
119 |
SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
120 |
$(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2) |
121 |
linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2 |
122 |
$(prefix_src_archives ${PN}-man-pl-${PV_PL}.tar.bz2) )" |
123 |
|
124 |
PATCHVER= |
125 |
[[ $TARBALL_PV = $PV ]] || PATCHVER=$PV |
126 |
if [ -n "${PATCHVER}" ]; then |
127 |
SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PATCHVER}.patch.bz2 |
128 |
$(prefix_src_archives ${PN}-${PATCHVER}.patch.bz2)" |
129 |
fi |
130 |
|
131 |
S="${WORKDIR}"/${PN}-${TARBALL_PV} |
132 |
S_PL="${WORKDIR}"/${PN}-${PV_PL} |
133 |
|
134 |
compatible_python_is_selected() { |
135 |
[[ $(/usr/bin/python -c 'import sys ; sys.stdout.write(sys.hexversion >= 0x2060000 and "good" or "bad")') = good ]] |
136 |
} |
137 |
|
138 |
pkg_setup() { |
139 |
# Bug #359731 - Die early if get_libdir fails. |
140 |
[[ -z $(get_libdir) ]] && \ |
141 |
die "get_libdir returned an empty string" |
142 |
|
143 |
if use python2 && use python3 ; then |
144 |
ewarn "Both python2 and python3 USE flags are enabled, but only one" |
145 |
ewarn "can be in the shebangs. Using python3." |
146 |
fi |
147 |
if ! use python2 && ! use python3 && ! compatible_python_is_selected ; then |
148 |
ewarn "Attempting to select a compatible default python interpreter" |
149 |
local x success=0 |
150 |
for x in /usr/bin/python2.* ; do |
151 |
x=${x#/usr/bin/python2.} |
152 |
if [[ $x -ge 6 ]] 2>/dev/null ; then |
153 |
eselect python set python2.$x |
154 |
if compatible_python_is_selected ; then |
155 |
elog "Default python interpreter is now set to python-2.$x" |
156 |
success=1 |
157 |
break |
158 |
fi |
159 |
fi |
160 |
done |
161 |
if [ $success != 1 ] ; then |
162 |
eerror "Unable to select a compatible default python interpreter!" |
163 |
die "This version of portage requires at least python-2.6 to be selected as the default python interpreter (see \`eselect python --help\`)." |
164 |
fi |
165 |
fi |
166 |
|
167 |
if use python3; then |
168 |
python_set_active_version 3 |
169 |
elif use python2; then |
170 |
python_set_active_version 2 |
171 |
fi |
172 |
} |
173 |
|
174 |
src_prepare() { |
175 |
if [ -n "${PATCHVER}" ] ; then |
176 |
if [[ -L $S/bin/ebuild-helpers/portageq ]] ; then |
177 |
rm "$S/bin/ebuild-helpers/portageq" \ |
178 |
|| die "failed to remove portageq helper symlink" |
179 |
fi |
180 |
epatch "${WORKDIR}/${PN}-${PATCHVER}.patch" |
181 |
fi |
182 |
einfo "Setting portage.VERSION to ${PVR} ..." |
183 |
sed -e "s/^VERSION=.*/VERSION=\"${PVR}\"/" -i pym/portage/__init__.py || \ |
184 |
die "Failed to patch portage.VERSION" |
185 |
sed -e "1s/VERSION/${PVR}/" -i doc/fragment/version || \ |
186 |
die "Failed to patch VERSION in doc/fragment/version" |
187 |
sed -e "1s/VERSION/${PVR}/" -i man/* || \ |
188 |
die "Failed to patch VERSION in man page headers" |
189 |
|
190 |
if ! use ipc ; then |
191 |
einfo "Disabling ipc..." |
192 |
sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
193 |
-i pym/_emerge/AbstractEbuildProcess.py || \ |
194 |
die "failed to patch AbstractEbuildProcess.py" |
195 |
fi |
196 |
|
197 |
if use xattr && use kernel_linux ; then |
198 |
einfo "Adding FEATURES=xattr to make.globals ..." |
199 |
echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
200 |
|| die "failed to append to make.globals" |
201 |
fi |
202 |
|
203 |
if use python3; then |
204 |
einfo "Converting shebangs for python3..." |
205 |
python_convert_shebangs -r 3 . |
206 |
elif use python2; then |
207 |
einfo "Converting shebangs for python2..." |
208 |
python_convert_shebangs -r 2 . |
209 |
fi |
210 |
|
211 |
if [[ -n ${EPREFIX} ]] ; then |
212 |
einfo "Setting portage.const.EPREFIX ..." |
213 |
sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \ |
214 |
-e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \ |
215 |
-e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \ |
216 |
-e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \ |
217 |
-e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \ |
218 |
-e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \ |
219 |
-i pym/portage/const.py || \ |
220 |
die "Failed to patch portage.const.EPREFIX" |
221 |
|
222 |
einfo "Prefixing shebangs ..." |
223 |
find . -type f -print0 | \ |
224 |
while read -r -d $'\0' ; do |
225 |
local shebang=$(head -n1 "$REPLY") |
226 |
if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
227 |
sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
228 |
die "sed failed" |
229 |
fi |
230 |
done |
231 |
|
232 |
einfo "Adjusting make.globals ..." |
233 |
sed -e 's|^SYNC=.*|SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"|' \ |
234 |
-e "s|^\(PORTDIR=\)\(/usr/portage\)|\\1\"${EPREFIX}\\2\"|" \ |
235 |
-e "s|^\(PORTAGE_TMPDIR=\)\(/var/tmp\)|\\1\"${EPREFIX}\\2\"|" \ |
236 |
-i cnf/make.globals || die "sed failed" |
237 |
|
238 |
einfo "Adding FEATURES=force-prefix to make.globals ..." |
239 |
echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
240 |
|| die "failed to append to make.globals" |
241 |
fi |
242 |
|
243 |
} |
244 |
|
245 |
src_compile() { |
246 |
if use doc; then |
247 |
cd "${S}"/doc |
248 |
touch fragment/date |
249 |
make xhtml xhtml-nochunks || die "failed to make docs" |
250 |
fi |
251 |
|
252 |
if use epydoc; then |
253 |
einfo "Generating api docs" |
254 |
mkdir "${WORKDIR}"/api |
255 |
local my_modules epydoc_opts="" |
256 |
my_modules="$(find "${S}/pym" -name "*.py" \ |
257 |
| sed -e 's:/__init__.py$::' -e 's:\.py$::' -e "s:^${S}/pym/::" \ |
258 |
-e 's:/:.:g' | sort)" || die "error listing modules" |
259 |
# workaround for bug 282760 |
260 |
> "$S/pym/pysqlite2.py" |
261 |
PYTHONPATH=${S}/pym:${PYTHONPATH:+:}${PYTHONPATH} \ |
262 |
epydoc -o "${WORKDIR}"/api \ |
263 |
-qqqqq --no-frames --show-imports $epydoc_opts \ |
264 |
--name "${PN}" --url "${HOMEPAGE}" \ |
265 |
${my_modules} || die "epydoc failed" |
266 |
rm "$S/pym/pysqlite2.py" |
267 |
fi |
268 |
} |
269 |
|
270 |
src_test() { |
271 |
# make files executable, in case they were created by patch |
272 |
find bin -type f | xargs chmod +x |
273 |
./pym/portage/tests/runTests || die "test(s) failed" |
274 |
} |
275 |
|
276 |
src_install() { |
277 |
local libdir=$(get_libdir) |
278 |
local portage_base="/usr/${libdir}/portage" |
279 |
local portage_share_config=/usr/share/portage/config |
280 |
|
281 |
cd "${S}"/cnf |
282 |
insinto /etc |
283 |
doins etc-update.conf dispatch-conf.conf || die |
284 |
|
285 |
insinto "$portage_share_config/sets" |
286 |
doins "$S"/cnf/sets/*.conf || die |
287 |
insinto "$portage_share_config" |
288 |
doins "$S/cnf/make.globals" || die |
289 |
if [ -f "make.conf.${ARCH}".diff ]; then |
290 |
patch make.conf "make.conf.${ARCH}".diff || \ |
291 |
die "Failed to patch make.conf.example" |
292 |
newins make.conf make.conf.example || die |
293 |
else |
294 |
eerror "" |
295 |
eerror "Portage does not have an arch-specific configuration for this arch." |
296 |
eerror "Please notify the arch maintainer about this issue. Using generic." |
297 |
eerror "" |
298 |
newins make.conf make.conf.example || die |
299 |
fi |
300 |
|
301 |
dosym ..${portage_share_config}/make.globals /etc/make.globals |
302 |
|
303 |
insinto /etc/logrotate.d |
304 |
doins "${S}"/cnf/logrotate.d/elog-save-summary || die |
305 |
|
306 |
# BSD and OSX need a sed wrapper so that find/xargs work properly |
307 |
if use userland_GNU; then |
308 |
rm "${S}"/bin/ebuild-helpers/sed || die "Failed to remove sed wrapper" |
309 |
fi |
310 |
|
311 |
local x symlinks files |
312 |
|
313 |
cd "$S" || die "cd failed" |
314 |
for x in $(find bin -type d) ; do |
315 |
exeinto $portage_base/$x || die "exeinto failed" |
316 |
cd "$S"/$x || die "cd failed" |
317 |
files=$(find . -mindepth 1 -maxdepth 1 -type f ! -type l) |
318 |
if [ -n "$files" ] ; then |
319 |
doexe $files || die "doexe failed" |
320 |
fi |
321 |
symlinks=$(find . -mindepth 1 -maxdepth 1 -type l) |
322 |
if [ -n "$symlinks" ] ; then |
323 |
cp -P $symlinks "$ED$portage_base/$x" || die "cp failed" |
324 |
fi |
325 |
done |
326 |
|
327 |
cd "$S" || die "cd failed" |
328 |
for x in $(find pym/* -type d ! -path "pym/portage/tests*") ; do |
329 |
insinto $portage_base/$x || die "insinto failed" |
330 |
cd "$S"/$x || die "cd failed" |
331 |
# __pycache__ directories contain no py files |
332 |
[[ "*.py" != $(echo *.py) ]] || continue |
333 |
doins *.py || die "doins failed" |
334 |
symlinks=$(find . -mindepth 1 -maxdepth 1 -type l) |
335 |
if [ -n "$symlinks" ] ; then |
336 |
cp -P $symlinks "$ED$portage_base/$x" || die "cp failed" |
337 |
fi |
338 |
done |
339 |
|
340 |
# We install some minimal tests for use as a preinst sanity check. |
341 |
# These tests must be able to run without a full source tree and |
342 |
# without relying on a previous portage instance being installed. |
343 |
cd "$S" || die "cd failed" |
344 |
exeinto $portage_base/pym/portage/tests || die |
345 |
doexe pym/portage/tests/runTests || die |
346 |
insinto $portage_base/pym/portage/tests || die |
347 |
doins pym/portage/tests/*.py || die |
348 |
insinto $portage_base/pym/portage/tests/lint || die |
349 |
doins pym/portage/tests/lint/*.py || die |
350 |
doins pym/portage/tests/lint/__test__ || die |
351 |
|
352 |
# Symlinks to directories cause up/downgrade issues and the use of these |
353 |
# modules outside of portage is probably negligible. |
354 |
for x in "${ED}${portage_base}/pym/"{cache,elog_modules} ; do |
355 |
[ ! -L "${x}" ] && continue |
356 |
die "symlink to directory will cause upgrade/downgrade issues: '${x}'" |
357 |
done |
358 |
|
359 |
doman "${S}"/man/*.[0-9] |
360 |
if use linguas_pl; then |
361 |
doman -i18n=pl "${S_PL}"/man/pl/*.[0-9] |
362 |
doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9] |
363 |
fi |
364 |
|
365 |
dodoc "${S}"/{ChangeLog,NEWS,RELEASE-NOTES} |
366 |
use doc && dohtml -r "${S}"/doc/* |
367 |
use epydoc && dohtml -r "${WORKDIR}"/api |
368 |
|
369 |
dodir /usr/bin |
370 |
for x in ebuild egencache emerge portageq quickpkg repoman ; do |
371 |
dosym ../${libdir}/portage/bin/${x} /usr/bin/${x} |
372 |
done |
373 |
|
374 |
dodir /usr/sbin |
375 |
local my_syms="archive-conf |
376 |
dispatch-conf |
377 |
emaint |
378 |
emerge-webrsync |
379 |
env-update |
380 |
etc-update |
381 |
fixpackages |
382 |
regenworld" |
383 |
local x |
384 |
for x in ${my_syms}; do |
385 |
dosym ../${libdir}/portage/bin/${x} /usr/sbin/${x} |
386 |
done |
387 |
dosym env-update /usr/sbin/update-env |
388 |
dosym etc-update /usr/sbin/update-etc |
389 |
|
390 |
dodir /etc/portage |
391 |
keepdir /etc/portage |
392 |
} |
393 |
|
394 |
pkg_preinst() { |
395 |
if [[ $ROOT == / ]] ; then |
396 |
# Run some minimal tests as a sanity check. |
397 |
local test_runner=$(find "$ED" -name runTests) |
398 |
if [[ -n $test_runner && -x $test_runner ]] ; then |
399 |
einfo "Running preinst sanity tests..." |
400 |
"$test_runner" || die "preinst sanity tests failed" |
401 |
fi |
402 |
fi |
403 |
|
404 |
if ! use build && ! has_version dev-python/pycrypto && \ |
405 |
! has_version '>=dev-lang/python-2.6[ssl]' ; then |
406 |
ewarn "If you are an ebuild developer and you plan to commit ebuilds" |
407 |
ewarn "with this system then please install dev-python/pycrypto or" |
408 |
ewarn "enable the ssl USE flag for >=dev-lang/python-2.6 in order" |
409 |
ewarn "to enable RMD160 hash support." |
410 |
ewarn "See bug #198398 for more information." |
411 |
fi |
412 |
if [ -f "${EROOT}/etc/make.globals" ]; then |
413 |
rm "${EROOT}/etc/make.globals" |
414 |
fi |
415 |
|
416 |
has_version "<${CATEGORY}/${PN}-2.2_alpha" \ |
417 |
&& MINOR_UPGRADE=true || MINOR_UPGRADE=false |
418 |
|
419 |
has_version "<=${CATEGORY}/${PN}-2.2_pre5" \ |
420 |
&& WORLD_MIGRATION_UPGRADE=true || WORLD_MIGRATION_UPGRADE=false |
421 |
|
422 |
# If portage-2.1.6 is installed and the preserved_libs_registry exists, |
423 |
# assume that the NEEDED.ELF.2 files have already been generated. |
424 |
has_version "<=${CATEGORY}/${PN}-2.2_pre7" && \ |
425 |
! ( [ -e "${EROOT}"var/lib/portage/preserved_libs_registry ] && \ |
426 |
has_version ">=${CATEGORY}/${PN}-2.1.6_rc" ) \ |
427 |
&& NEEDED_REBUILD_UPGRADE=true || NEEDED_REBUILD_UPGRADE=false |
428 |
|
429 |
[[ -n $PORTDIR_OVERLAY ]] && has_version "<${CATEGORY}/${PN}-2.1.6.12" \ |
430 |
&& REPO_LAYOUT_CONF_WARN=true || REPO_LAYOUT_CONF_WARN=false |
431 |
} |
432 |
|
433 |
pkg_postinst() { |
434 |
# Compile all source files recursively. Any orphans |
435 |
# will be identified and removed in postrm. |
436 |
python_mod_optimize /usr/$(get_libdir)/portage/pym |
437 |
|
438 |
if $WORLD_MIGRATION_UPGRADE ; then |
439 |
einfo "moving set references from the worldfile into world_sets" |
440 |
cd "${EROOT}/var/lib/portage/" |
441 |
grep "^@" world >> world_sets |
442 |
sed -i -e '/^@/d' world |
443 |
fi |
444 |
|
445 |
if $NEEDED_REBUILD_UPGRADE ; then |
446 |
einfo "rebuilding NEEDED.ELF.2 files" |
447 |
for cpv in "${EROOT}/var/db/pkg"/*/*; do |
448 |
if [ -f "${cpv}/NEEDED" ]; then |
449 |
rm -f "${cpv}/NEEDED.ELF.2" |
450 |
while read line; do |
451 |
filename=${line% *} |
452 |
needed=${line#* } |
453 |
needed=${needed//+/++} |
454 |
needed=${needed//#/##} |
455 |
needed=${needed//%/%%} |
456 |
newline=$(scanelf -BF "%a;%F;%S;%r;${needed}" $filename) |
457 |
newline=${newline// - } |
458 |
echo "${newline:3}" >> "${cpv}/NEEDED.ELF.2" |
459 |
done < "${cpv}/NEEDED" |
460 |
fi |
461 |
done |
462 |
fi |
463 |
|
464 |
if $REPO_LAYOUT_CONF_WARN ; then |
465 |
ewarn |
466 |
echo "If you want overlay eclasses to override eclasses from" \ |
467 |
"other repos then see the portage(5) man page" \ |
468 |
"for information about the new layout.conf and repos.conf" \ |
469 |
"configuration files." \ |
470 |
| fmt -w 75 | while read -r ; do ewarn "$REPLY" ; done |
471 |
ewarn |
472 |
fi |
473 |
|
474 |
if $MINOR_UPGRADE ; then |
475 |
elog "If you're upgrading from a pre-2.2 version of portage you might" |
476 |
elog "want to remerge world (emerge -e world) to take full advantage" |
477 |
elog "of some of the new features in 2.2." |
478 |
elog "This is not required however for portage to function properly." |
479 |
elog |
480 |
fi |
481 |
} |
482 |
|
483 |
pkg_postrm() { |
484 |
python_mod_cleanup /usr/$(get_libdir)/portage/pym |
485 |
} |