1 |
zmedico 12/11/29 23:41:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: portage-2.2.0_alpha143.ebuild |
5 |
Removed: portage-2.2.0_alpha120.ebuild |
6 |
Log: |
7 |
2.2.0_alpha143 version bump. This includes all of the fixes in 2.1.11.32. |
8 |
Bug #210077 tracks all bugs fixed since portage-2.1.x. |
9 |
|
10 |
(Portage version: 2.2.0_alpha143/cvs/Linux i686, signed Manifest commit with key 0xFDE8EF85AE5719A3) |
11 |
|
12 |
Revision Changes Path |
13 |
1.1139 sys-apps/portage/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.1139&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.1139&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.1138&r2=1.1139 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v |
22 |
retrieving revision 1.1138 |
23 |
retrieving revision 1.1139 |
24 |
diff -u -r1.1138 -r1.1139 |
25 |
--- ChangeLog 29 Nov 2012 23:39:26 -0000 1.1138 |
26 |
+++ ChangeLog 29 Nov 2012 23:41:13 -0000 1.1139 |
27 |
@@ -1,6 +1,13 @@ |
28 |
# ChangeLog for sys-apps/portage |
29 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.1138 2012/11/29 23:39:26 zmedico Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.1139 2012/11/29 23:41:13 zmedico Exp $ |
32 |
+ |
33 |
+*portage-2.2.0_alpha143 (29 Nov 2012) |
34 |
+ |
35 |
+ 29 Nov 2012; Zac Medico <zmedico@g.o> +portage-2.2.0_alpha143.ebuild, |
36 |
+ -portage-2.2.0_alpha120.ebuild: |
37 |
+ 2.2.0_alpha143 version bump. This includes all of the fixes in 2.1.11.32. Bug |
38 |
+ #210077 tracks all bugs fixed since portage-2.1.x. |
39 |
|
40 |
*portage-2.1.11.32 (29 Nov 2012) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 sys-apps/portage/portage-2.2.0_alpha143.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-2.2.0_alpha143.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-2.2.0_alpha143.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: portage-2.2.0_alpha143.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2012 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_alpha143.ebuild,v 1.1 2012/11/29 23:41:13 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 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="~amd64-fbsd ~sparc-fbsd ~x86-fbsd" |
65 |
SLOT="0" |
66 |
IUSE="build doc epydoc +ipc linguas_pl pypy1_9 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_ssl="python3? ( =dev-lang/python-3*[ssl] ) |
71 |
!pypy1_9? ( !python2? ( !python3? ( |
72 |
|| ( >=dev-lang/python-2.7[ssl] dev-lang/python:2.6[threads,ssl] ) |
73 |
) ) ) |
74 |
pypy1_9? ( !python2? ( !python3? ( dev-python/pypy:1.9[bzip2,ssl] ) ) ) |
75 |
python2? ( !python3? ( || ( dev-lang/python:2.7[ssl] dev-lang/python:2.6[ssl,threads] ) ) )" |
76 |
python_dep="${python_dep_ssl//\[ssl\]}" |
77 |
python_dep="${python_dep//,ssl}" |
78 |
python_dep="${python_dep//ssl,}" |
79 |
|
80 |
# The pysqlite blocker is for bug #282760. |
81 |
DEPEND="${python_dep} |
82 |
>=sys-apps/sed-4.0.5 sys-devel/patch |
83 |
doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
84 |
epydoc? ( >=dev-python/epydoc-2.0 !<=dev-python/pysqlite-2.4.1 )" |
85 |
# Require sandbox-2.2 for bug #288863. |
86 |
# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
87 |
# quite slow, so it's not considered in the dependencies as an alternative to |
88 |
# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
89 |
# for now, don't pull in xattr deps for other kernels. |
90 |
# For whirlpool hash, require python[ssl] or python-mhash (bug #425046). |
91 |
RDEPEND="${python_dep} |
92 |
!build? ( >=sys-apps/sed-4.0.5 |
93 |
>=app-shells/bash-3.2_p17 |
94 |
>=app-admin/eselect-1.2 |
95 |
|| ( ${python_dep_ssl} dev-python/python-mhash ) |
96 |
) |
97 |
elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
98 |
elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
99 |
elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
100 |
>=app-misc/pax-utils-0.1.17 |
101 |
xattr? ( kernel_linux? ( || ( >=dev-lang/python-3.3_pre20110902 dev-python/pyxattr ) ) ) |
102 |
selinux? ( || ( >=sys-libs/libselinux-2.0.94[python] <sys-libs/libselinux-2.0.94 ) ) |
103 |
!<app-shells/bash-3.2_p17 |
104 |
!<app-admin/logrotate-3.8.0" |
105 |
PDEPEND=" |
106 |
!build? ( |
107 |
>=net-misc/rsync-2.6.4 |
108 |
userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
109 |
)" |
110 |
# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
111 |
# NOTE: FEATURES=install-sources requires debugedit and rsync |
112 |
|
113 |
SRC_ARCHIVES="http://dev.gentoo.org/~zmedico/portage/archives" |
114 |
|
115 |
prefix_src_archives() { |
116 |
local x y |
117 |
for x in ${@}; do |
118 |
for y in ${SRC_ARCHIVES}; do |
119 |
echo ${y}/${x} |
120 |
done |
121 |
done |
122 |
} |
123 |
|
124 |
PV_PL="2.1.2" |
125 |
PATCHVER_PL="" |
126 |
TARBALL_PV=2.2.0_alpha142 |
127 |
SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
128 |
$(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2) |
129 |
linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2 |
130 |
$(prefix_src_archives ${PN}-man-pl-${PV_PL}.tar.bz2) )" |
131 |
|
132 |
PATCHVER= |
133 |
[[ $TARBALL_PV = $PV ]] || PATCHVER=$PV |
134 |
if [ -n "${PATCHVER}" ]; then |
135 |
SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PATCHVER}.patch.bz2 |
136 |
$(prefix_src_archives ${PN}-${PATCHVER}.patch.bz2)" |
137 |
fi |
138 |
|
139 |
S="${WORKDIR}"/${PN}-${TARBALL_PV} |
140 |
S_PL="${WORKDIR}"/${PN}-${PV_PL} |
141 |
|
142 |
compatible_python_is_selected() { |
143 |
[[ $("${EPREFIX}/usr/bin/python" -c 'import sys ; sys.stdout.write(sys.hexversion >= 0x2060000 and "good" or "bad")') = good ]] |
144 |
} |
145 |
|
146 |
current_python_has_xattr() { |
147 |
[[ $("${EPREFIX}/usr/bin/python" -c 'import sys ; sys.stdout.write(sys.hexversion >= 0x3030000 and "yes" or "no")') = yes ]] || \ |
148 |
"${EPREFIX}/usr/bin/python" -c 'import xattr' 2>/dev/null |
149 |
} |
150 |
|
151 |
pkg_setup() { |
152 |
if use python2 && use python3 ; then |
153 |
ewarn "Both python2 and python3 USE flags are enabled, but only one" |
154 |
ewarn "can be in the shebangs. Using python3." |
155 |
fi |
156 |
if use pypy1_9 && use python3 ; then |
157 |
ewarn "Both pypy1_9 and python3 USE flags are enabled, but only one" |
158 |
ewarn "can be in the shebangs. Using python3." |
159 |
fi |
160 |
if use pypy1_9 && use python2 ; then |
161 |
ewarn "Both pypy1_9 and python2 USE flags are enabled, but only one" |
162 |
ewarn "can be in the shebangs. Using python2" |
163 |
fi |
164 |
if ! use pypy1_9 && ! use python2 && ! use python3 && \ |
165 |
! compatible_python_is_selected ; then |
166 |
ewarn "Attempting to select a compatible default python interpreter" |
167 |
local x success=0 |
168 |
for x in /usr/bin/python2.* ; do |
169 |
x=${x#/usr/bin/python2.} |
170 |
if [[ $x -ge 6 ]] 2>/dev/null ; then |
171 |
eselect python set python2.$x |
172 |
if compatible_python_is_selected ; then |
173 |
elog "Default python interpreter is now set to python-2.$x" |
174 |
success=1 |
175 |
break |
176 |
fi |
177 |
fi |
178 |
done |
179 |
if [ $success != 1 ] ; then |
180 |
eerror "Unable to select a compatible default python interpreter!" |
181 |
die "This version of portage requires at least python-2.6 to be selected as the default python interpreter (see \`eselect python --help\`)." |
182 |
fi |
183 |
fi |
184 |
|
185 |
if use python3; then |
186 |
python_set_active_version 3 |
187 |
elif use python2; then |
188 |
python_set_active_version 2 |
189 |
elif use pypy1_9; then |
190 |
python_set_active_version 2.7-pypy-1.9 |
191 |
fi |
192 |
} |
193 |
|
194 |
src_prepare() { |
195 |
if [ -n "${PATCHVER}" ] ; then |
196 |
if [[ -L $S/bin/ebuild-helpers/portageq ]] ; then |
197 |
rm "$S/bin/ebuild-helpers/portageq" \ |
198 |
|| die "failed to remove portageq helper symlink" |
199 |
fi |
200 |
epatch "${WORKDIR}/${PN}-${PATCHVER}.patch" |
201 |
fi |
202 |
einfo "Setting portage.VERSION to ${PVR} ..." |
203 |
sed -e "s/^VERSION=.*/VERSION=\"${PVR}\"/" -i pym/portage/__init__.py || \ |
204 |
die "Failed to patch portage.VERSION" |
205 |
sed -e "1s/VERSION/${PVR}/" -i doc/fragment/version || \ |
206 |
die "Failed to patch VERSION in doc/fragment/version" |
207 |
sed -e "1s/VERSION/${PVR}/" -i man/* || \ |
208 |
die "Failed to patch VERSION in man page headers" |
209 |
|
210 |
if ! use ipc ; then |
211 |
einfo "Disabling ipc..." |
212 |
sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
213 |
-i pym/_emerge/AbstractEbuildProcess.py || \ |
214 |
die "failed to patch AbstractEbuildProcess.py" |
215 |
fi |
216 |
|
217 |
if use xattr && use kernel_linux ; then |
218 |
einfo "Adding FEATURES=xattr to make.globals ..." |
219 |
echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
220 |
|| die "failed to append to make.globals" |
221 |
fi |
222 |
|
223 |
if use python3; then |
224 |
einfo "Converting shebangs for python3..." |
225 |
python_convert_shebangs -r 3 . |
226 |
elif use python2; then |
227 |
einfo "Converting shebangs for python2..." |
228 |
python_convert_shebangs -r 2 . |
229 |
elif use pypy1_9; then |
230 |
einfo "Converting shebangs for pypy-c1.9..." |
231 |
python_convert_shebangs -r 2.7-pypy-1.9 . |
232 |
fi |
233 |
|
234 |
if [[ -n ${EPREFIX} ]] ; then |
235 |
einfo "Setting portage.const.EPREFIX ..." |
236 |
sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \ |
237 |
-e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \ |
238 |
-e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \ |
239 |
-e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \ |
240 |
-e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \ |
241 |
-e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \ |
242 |
-i pym/portage/const.py || \ |
243 |
die "Failed to patch portage.const.EPREFIX" |
244 |
|
245 |
einfo "Prefixing shebangs ..." |
246 |
find . -type f -print0 | \ |
247 |
while read -r -d $'\0' ; do |
248 |
local shebang=$(head -n1 "$REPLY") |
249 |
if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
250 |
sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
251 |
die "sed failed" |
252 |
fi |
253 |
done |
254 |
|
255 |
einfo "Adjusting make.globals ..." |
256 |
sed -e 's|^SYNC=.*|SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"|' \ |
257 |
-e "s|^\(PORTDIR=\)\(/usr/portage\)|\\1\"${EPREFIX}\\2\"|" \ |
258 |
-e "s|^\(PORTAGE_TMPDIR=\)\(/var/tmp\)|\\1\"${EPREFIX}\\2\"|" \ |
259 |
-i cnf/make.globals || die "sed failed" |
260 |
|
261 |
einfo "Adding FEATURES=force-prefix to make.globals ..." |
262 |
echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
263 |
|| die "failed to append to make.globals" |
264 |
fi |
265 |
|
266 |
echo -e '\nFEATURES="${FEATURES} preserve-libs"' >> cnf/make.globals \ |
267 |
|| die "failed to append to make.globals" |
268 |
|
269 |
cd "${S}/cnf" || die |
270 |
if [ -f "make.conf.${ARCH}".diff ]; then |
271 |
patch make.conf "make.conf.${ARCH}".diff || \ |
272 |
die "Failed to patch make.conf.example" |
273 |
else |
274 |
eerror "" |
275 |
eerror "Portage does not have an arch-specific configuration for this arch." |
276 |
eerror "Please notify the arch maintainer about this issue. Using generic." |
277 |
eerror "" |
278 |
fi |
279 |
} |
280 |
|
281 |
src_compile() { |
282 |
if use doc; then |
283 |
emake docbook || die |
284 |
fi |
285 |
|
286 |
if use epydoc; then |
287 |
einfo "Generating api docs" |
288 |
emake epydoc || die |
289 |
fi |
290 |
} |
291 |
|
292 |
src_test() { |
293 |
# make files executable, in case they were created by patch |
294 |
find bin -type f | xargs chmod +x |
295 |
emake test || die |
296 |
} |
297 |
|
298 |
src_install() { |
299 |
emake DESTDIR="${D}" \ |
300 |
sysconfdir="${EPREFIX}/etc" \ |
301 |
prefix="${EPREFIX}/usr" \ |
302 |
install || die |
303 |
|
304 |
# Use dodoc for compression, since the Makefile doesn't do that. |
305 |
dodoc "${S}"/{ChangeLog,NEWS,RELEASE-NOTES} || die |
306 |
|
307 |
if use linguas_pl; then |
308 |
doman -i18n=pl "${S_PL}"/man/pl/*.[0-9] || die |
309 |
doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9] || die |
310 |
fi |
311 |
|
312 |
# Set PYTHONPATH for portage API consumers. This way we don't have |
313 |
# to rely on patched python having the correct path, since it has |
314 |
# been known to incorrectly add /usr/libx32/portage/pym to sys.path. |
315 |
echo "PYTHONPATH=\"${EPREFIX}/usr/lib/portage/pym\"" > \ |
316 |
"${T}/05portage" || die |
317 |
doenvd "${T}/05portage" || die |
318 |
} |
319 |
|
320 |
pkg_preinst() { |
321 |
if [[ $ROOT == / ]] ; then |
322 |
# Run some minimal tests as a sanity check. |
323 |
local test_runner=$(find "$ED" -name runTests) |
324 |
if [[ -n $test_runner && -x $test_runner ]] ; then |
325 |
einfo "Running preinst sanity tests..." |
326 |
"$test_runner" || die "preinst sanity tests failed" |
327 |
fi |
328 |
fi |
329 |
|
330 |
if use xattr && ! current_python_has_xattr ; then |
331 |
ewarn "For optimal performance in xattr handling, install" |
332 |
ewarn "dev-python/pyxattr, or install >=dev-lang/python-3.3 and" |
333 |
ewarn "enable USE=python3 for $CATEGORY/$PN." |
334 |
fi |
335 |
|
336 |
if ! use build && ! has_version dev-python/pycrypto && \ |
337 |
! has_version '>=dev-lang/python-2.6[ssl]' ; then |
338 |
ewarn "If you are an ebuild developer and you plan to commit ebuilds" |
339 |
ewarn "with this system then please install dev-python/pycrypto or" |
340 |
ewarn "enable the ssl USE flag for >=dev-lang/python-2.6 in order" |
341 |
ewarn "to enable RMD160 hash support." |
342 |
ewarn "See bug #198398 for more information." |
343 |
fi |
344 |
|
345 |
has_version "<=${CATEGORY}/${PN}-2.2_pre5" \ |
346 |
&& WORLD_MIGRATION_UPGRADE=true || WORLD_MIGRATION_UPGRADE=false |
347 |
|
348 |
# If portage-2.1.6 is installed and the preserved_libs_registry exists, |
349 |
# assume that the NEEDED.ELF.2 files have already been generated. |
350 |
has_version "<=${CATEGORY}/${PN}-2.2_pre7" && \ |
351 |
! ( [ -e "${EROOT}"var/lib/portage/preserved_libs_registry ] && \ |
352 |
has_version ">=${CATEGORY}/${PN}-2.1.6_rc" ) \ |
353 |
&& NEEDED_REBUILD_UPGRADE=true || NEEDED_REBUILD_UPGRADE=false |
354 |
} |
355 |
|
356 |
pkg_postinst() { |
357 |
# Compile all source files recursively. Any orphans |
358 |
# will be identified and removed in postrm. |
359 |
python_mod_optimize /usr/lib/portage/pym |
360 |
|
361 |
if $WORLD_MIGRATION_UPGRADE && \ |
362 |
grep -q "^@" "${EROOT}/var/lib/portage/world"; then |
363 |
einfo "moving set references from the worldfile into world_sets" |
364 |
cd "${EROOT}/var/lib/portage/" |
365 |
grep "^@" world >> world_sets |
366 |
sed -i -e '/^@/d' world |
367 |
fi |
368 |
|
369 |
if $NEEDED_REBUILD_UPGRADE ; then |
370 |
einfo "rebuilding NEEDED.ELF.2 files" |
371 |
for cpv in "${EROOT}/var/db/pkg"/*/*; do |
372 |
if [ -f "${cpv}/NEEDED" ]; then |
373 |
rm -f "${cpv}/NEEDED.ELF.2" |
374 |
while read line; do |
375 |
filename=${line% *} |
376 |
needed=${line#* } |
377 |
needed=${needed//+/++} |
378 |
needed=${needed//#/##} |
379 |
needed=${needed//%/%%} |
380 |
newline=$(scanelf -BF "%a;%F;%S;%r;${needed}" $filename) |
381 |
newline=${newline// - } |
382 |
echo "${newline:3}" >> "${cpv}/NEEDED.ELF.2" |
383 |
done < "${cpv}/NEEDED" |
384 |
fi |
385 |
done |
386 |
fi |
387 |
} |
388 |
|
389 |
pkg_postrm() { |
390 |
python_mod_cleanup /usr/lib/portage/pym |
391 |
} |