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