1 |
zmedico 12/06/02 07:38:57 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: portage-2.1.10.64.ebuild |
5 |
Log: |
6 |
2.1.10.63 version bump. This fixes bug #418309 (regression since 2.1.10.59 |
7 |
and 2.2.0_alpha104 which triggers intermittent ecompressdir failures). |
8 |
Bug #409383 tracks all bugs fixed since portage-2.1.10.49. |
9 |
|
10 |
(Portage version: 2.2.0_alpha109/cvs/Linux i686) |
11 |
|
12 |
Revision Changes Path |
13 |
1.1026 sys-apps/portage/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.1026&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.1026&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.1025&r2=1.1026 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v |
22 |
retrieving revision 1.1025 |
23 |
retrieving revision 1.1026 |
24 |
diff -u -r1.1025 -r1.1026 |
25 |
--- ChangeLog 25 May 2012 23:34:33 -0000 1.1025 |
26 |
+++ ChangeLog 2 Jun 2012 07:38:57 -0000 1.1026 |
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.1025 2012/05/25 23:34:33 zmedico Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.1026 2012/06/02 07:38:57 zmedico Exp $ |
32 |
+ |
33 |
+*portage-2.1.10.64 (02 Jun 2012) |
34 |
+ |
35 |
+ 02 Jun 2012; Zac Medico <zmedico@g.o> +portage-2.1.10.64.ebuild: |
36 |
+ 2.1.10.63 version bump. This fixes bug #418309 (regression since 2.1.10.59 and |
37 |
+ 2.2.0_alpha104 which triggers intermittent ecompressdir failures). Bug #409383 |
38 |
+ tracks all bugs fixed since portage-2.1.10.49. |
39 |
|
40 |
25 May 2012; Zac Medico <zmedico@g.o> -portage-2.1.10.62.ebuild, |
41 |
-portage-2.2.0_alpha107.ebuild: |
42 |
|
43 |
|
44 |
|
45 |
1.1 sys-apps/portage/portage-2.1.10.64.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-2.1.10.64.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-2.1.10.64.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: portage-2.1.10.64.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.1.10.64.ebuild,v 1.1 2012/06/02 07:38:57 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=2 |
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="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
65 |
SLOT="0" |
66 |
IUSE="build doc epydoc +ipc linguas_pl pypy1_8 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 |
!pypy1_8? ( !python2? ( !python3? ( |
72 |
|| ( >=dev-lang/python-2.7 dev-lang/python:2.6[threads] ) |
73 |
) ) ) |
74 |
pypy1_8? ( !python2? ( !python3? ( dev-python/pypy:1.8[bzip2] ) ) ) |
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=$PV |
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 |
current_python_has_xattr() { |
141 |
[[ $(/usr/bin/python -c 'import sys ; sys.stdout.write(sys.hexversion >= 0x3030000 and "yes" or "no")') = yes ]] || \ |
142 |
/usr/bin/python -c 'import xattr' 2>/dev/null |
143 |
} |
144 |
|
145 |
pkg_setup() { |
146 |
# Bug #359731 - Die early if get_libdir fails. |
147 |
[[ -z $(get_libdir) ]] && \ |
148 |
die "get_libdir returned an empty string" |
149 |
|
150 |
if use python2 && use python3 ; then |
151 |
ewarn "Both python2 and python3 USE flags are enabled, but only one" |
152 |
ewarn "can be in the shebangs. Using python3." |
153 |
fi |
154 |
if use pypy1_8 && use python3 ; then |
155 |
ewarn "Both pypy1_8 and python3 USE flags are enabled, but only one" |
156 |
ewarn "can be in the shebangs. Using python3." |
157 |
fi |
158 |
if use pypy1_8 && use python2 ; then |
159 |
ewarn "Both pypy1_8 and python2 USE flags are enabled, but only one" |
160 |
ewarn "can be in the shebangs. Using python2" |
161 |
fi |
162 |
if ! use pypy1_8 && ! use python2 && ! use python3 && \ |
163 |
! compatible_python_is_selected ; then |
164 |
ewarn "Attempting to select a compatible default python interpreter" |
165 |
local x success=0 |
166 |
for x in /usr/bin/python2.* ; do |
167 |
x=${x#/usr/bin/python2.} |
168 |
if [[ $x -ge 6 ]] 2>/dev/null ; then |
169 |
eselect python set python2.$x |
170 |
if compatible_python_is_selected ; then |
171 |
elog "Default python interpreter is now set to python-2.$x" |
172 |
success=1 |
173 |
break |
174 |
fi |
175 |
fi |
176 |
done |
177 |
if [ $success != 1 ] ; then |
178 |
eerror "Unable to select a compatible default python interpreter!" |
179 |
die "This version of portage requires at least python-2.6 to be selected as the default python interpreter (see \`eselect python --help\`)." |
180 |
fi |
181 |
fi |
182 |
|
183 |
if use python3; then |
184 |
python_set_active_version 3 |
185 |
elif use python2; then |
186 |
python_set_active_version 2 |
187 |
elif use pypy1_8; then |
188 |
python_set_active_version 2.7-pypy-1.8 |
189 |
fi |
190 |
} |
191 |
|
192 |
src_prepare() { |
193 |
if [ -n "${PATCHVER}" ] ; then |
194 |
if [[ -L $S/bin/ebuild-helpers/portageq ]] ; then |
195 |
rm "$S/bin/ebuild-helpers/portageq" \ |
196 |
|| die "failed to remove portageq helper symlink" |
197 |
fi |
198 |
epatch "${WORKDIR}/${PN}-${PATCHVER}.patch" |
199 |
fi |
200 |
einfo "Setting portage.VERSION to ${PVR} ..." |
201 |
sed -e "s/^VERSION=.*/VERSION=\"${PVR}\"/" -i pym/portage/__init__.py || \ |
202 |
die "Failed to patch portage.VERSION" |
203 |
sed -e "1s/VERSION/${PVR}/" -i doc/fragment/version || \ |
204 |
die "Failed to patch VERSION in doc/fragment/version" |
205 |
sed -e "1s/VERSION/${PVR}/" -i man/* || \ |
206 |
die "Failed to patch VERSION in man page headers" |
207 |
|
208 |
if ! use ipc ; then |
209 |
einfo "Disabling ipc..." |
210 |
sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
211 |
-i pym/_emerge/AbstractEbuildProcess.py || \ |
212 |
die "failed to patch AbstractEbuildProcess.py" |
213 |
fi |
214 |
|
215 |
if use xattr && use kernel_linux ; then |
216 |
einfo "Adding FEATURES=xattr to make.globals ..." |
217 |
echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
218 |
|| die "failed to append to make.globals" |
219 |
fi |
220 |
|
221 |
if use python3; then |
222 |
einfo "Converting shebangs for python3..." |
223 |
python_convert_shebangs -r 3 . |
224 |
elif use python2; then |
225 |
einfo "Converting shebangs for python2..." |
226 |
python_convert_shebangs -r 2 . |
227 |
elif use pypy1_8; then |
228 |
einfo "Converting shebangs for pypy-c1.8..." |
229 |
python_convert_shebangs -r 2.7-pypy-1.8 . |
230 |
fi |
231 |
|
232 |
cd "${S}/cnf" || die |
233 |
if [ -f "make.conf.${ARCH}".diff ]; then |
234 |
patch make.conf "make.conf.${ARCH}".diff || \ |
235 |
die "Failed to patch make.conf.example" |
236 |
else |
237 |
eerror "" |
238 |
eerror "Portage does not have an arch-specific configuration for this arch." |
239 |
eerror "Please notify the arch maintainer about this issue. Using generic." |
240 |
eerror "" |
241 |
fi |
242 |
|
243 |
# BSD and OSX need a sed wrapper so that find/xargs work properly |
244 |
if use userland_GNU; then |
245 |
rm -f "${S}"/bin/ebuild-helpers/sed || \ |
246 |
die "Failed to remove sed wrapper" |
247 |
fi |
248 |
} |
249 |
|
250 |
src_compile() { |
251 |
if use doc; then |
252 |
emake docbook || die |
253 |
fi |
254 |
|
255 |
if use epydoc; then |
256 |
einfo "Generating api docs" |
257 |
emake epydoc || die |
258 |
fi |
259 |
} |
260 |
|
261 |
src_test() { |
262 |
emake test || die |
263 |
} |
264 |
|
265 |
src_install() { |
266 |
emake DESTDIR="${D}" \ |
267 |
sysconfdir="/etc" \ |
268 |
prefix="/usr" \ |
269 |
libdir="/usr/$(get_libdir)" \ |
270 |
install || die |
271 |
|
272 |
# Use dodoc for compression, since the Makefile doesn't do that. |
273 |
dodoc "${S}"/{ChangeLog,NEWS,RELEASE-NOTES} || die |
274 |
|
275 |
if use linguas_pl; then |
276 |
doman -i18n=pl "${S_PL}"/man/pl/*.[0-9] || die |
277 |
doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9] || die |
278 |
fi |
279 |
} |
280 |
|
281 |
pkg_preinst() { |
282 |
if [[ $ROOT == / ]] ; then |
283 |
# Run some minimal tests as a sanity check. |
284 |
local test_runner=$(find "$D" -name runTests) |
285 |
if [[ -n $test_runner && -x $test_runner ]] ; then |
286 |
einfo "Running preinst sanity tests..." |
287 |
"$test_runner" || die "preinst sanity tests failed" |
288 |
fi |
289 |
fi |
290 |
|
291 |
if use xattr && ! current_python_has_xattr ; then |
292 |
ewarn "For optimal performance in xattr handling, install" |
293 |
ewarn "dev-python/pyxattr, or install >=dev-lang/python-3.3 and" |
294 |
ewarn "enable USE=python3 for $CATEGORY/$PN." |
295 |
fi |
296 |
|
297 |
if ! use build && ! has_version dev-python/pycrypto && \ |
298 |
! has_version '>=dev-lang/python-2.6[ssl]' ; then |
299 |
ewarn "If you are an ebuild developer and you plan to commit ebuilds" |
300 |
ewarn "with this system then please install dev-python/pycrypto or" |
301 |
ewarn "enable the ssl USE flag for >=dev-lang/python-2.6 in order" |
302 |
ewarn "to enable RMD160 hash support." |
303 |
ewarn "See bug #198398 for more information." |
304 |
fi |
305 |
if [ -f "${ROOT}/etc/make.globals" ]; then |
306 |
rm "${ROOT}/etc/make.globals" |
307 |
fi |
308 |
|
309 |
if [[ -d ${ROOT}var/log/portage && \ |
310 |
$(ls -ld "${ROOT}var/log/portage") != *" portage portage "* ]] && \ |
311 |
has_version '<sys-apps/portage-2.1.10.11' ; then |
312 |
# Initialize permissions for bug #378451 and bug #377177, since older |
313 |
# portage does not create /var/log/portage with the desired default |
314 |
# permissions. |
315 |
einfo "Applying portage group permission to ${ROOT}var/log/portage for bug #378451" |
316 |
chown portage:portage "${ROOT}var/log/portage" |
317 |
chmod g+ws "${ROOT}var/log/portage" |
318 |
fi |
319 |
|
320 |
[[ -n $PORTDIR_OVERLAY ]] && has_version "<${CATEGORY}/${PN}-2.1.6.12" \ |
321 |
&& REPO_LAYOUT_CONF_WARN=true || REPO_LAYOUT_CONF_WARN=false |
322 |
|
323 |
if has_version '<sys-apps/portage-2.1.10.61' ; then |
324 |
ewarn "FEATURES=config-protect-if-modified is now enabled by default." |
325 |
ewarn "This causes the CONFIG_PROTECT behavior to be skipped for" |
326 |
ewarn "files that have not been modified since they were installed." |
327 |
fi |
328 |
} |
329 |
|
330 |
pkg_postinst() { |
331 |
# Compile all source files recursively. Any orphans |
332 |
# will be identified and removed in postrm. |
333 |
python_mod_optimize /usr/$(get_libdir)/portage/pym |
334 |
|
335 |
if $REPO_LAYOUT_CONF_WARN ; then |
336 |
ewarn |
337 |
echo "If you want overlay eclasses to override eclasses from" \ |
338 |
"other repos then see the portage(5) man page" \ |
339 |
"for information about the new layout.conf and repos.conf" \ |
340 |
"configuration files." \ |
341 |
| fmt -w 75 | while read -r ; do ewarn "$REPLY" ; done |
342 |
ewarn |
343 |
fi |
344 |
} |
345 |
|
346 |
pkg_postrm() { |
347 |
python_mod_cleanup /usr/$(get_libdir)/portage/pym |
348 |
} |