1 |
zmedico 12/11/29 23:39:26 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: portage-2.1.11.32.ebuild |
5 |
Log: |
6 |
2.1.11.32 version bump. This fixes bug #367215 (package moves should not cause |
7 |
a package to block itself), bug #421099 (parallel strip issues with hardlinks), |
8 |
bug #434942 (obsolete eclass-overrides information in portage.5), |
9 |
bug #440680 (repoman deprecation warning for boost-utils.eclass), |
10 |
bug #440982 (new emerge --quiet-fail option), |
11 |
bug #441948 (handle permission exceptions when writing elog logs), |
12 |
bug #442190 (fix emerge-webrsync to apply portage:portage ownership), |
13 |
bug #442536 (keep temp dir after pkg_pretend failure), |
14 |
bug #442786 (repoman validate metadata.xml use restriction atoms), |
15 |
and bug #444596 (make emerge --info fail for unmatched atoms). |
16 |
Bug #445274 tracks all bugs fixed since portage-2.1.11.31. |
17 |
|
18 |
(Portage version: 2.2.0_alpha143/cvs/Linux i686, signed Manifest commit with key 0xFDE8EF85AE5719A3) |
19 |
|
20 |
Revision Changes Path |
21 |
1.1138 sys-apps/portage/ChangeLog |
22 |
|
23 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.1138&view=markup |
24 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.1138&content-type=text/plain |
25 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.1137&r2=1.1138 |
26 |
|
27 |
Index: ChangeLog |
28 |
=================================================================== |
29 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v |
30 |
retrieving revision 1.1137 |
31 |
retrieving revision 1.1138 |
32 |
diff -u -r1.1137 -r1.1138 |
33 |
--- ChangeLog 16 Nov 2012 11:50:25 -0000 1.1137 |
34 |
+++ ChangeLog 29 Nov 2012 23:39:26 -0000 1.1138 |
35 |
@@ -1,6 +1,20 @@ |
36 |
# ChangeLog for sys-apps/portage |
37 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
38 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.1137 2012/11/16 11:50:25 ago Exp $ |
39 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.1138 2012/11/29 23:39:26 zmedico Exp $ |
40 |
+ |
41 |
+*portage-2.1.11.32 (29 Nov 2012) |
42 |
+ |
43 |
+ 29 Nov 2012; Zac Medico <zmedico@g.o> +portage-2.1.11.32.ebuild: |
44 |
+ 2.1.11.32 version bump. This fixes bug #367215 (package moves should not cause |
45 |
+ a package to block itself), bug #421099 (parallel strip issues with |
46 |
+ hardlinks), bug #434942 (obsolete eclass-overrides information in portage.5), |
47 |
+ bug #440680 (repoman deprecation warning for boost-utils.eclass), bug #440982 |
48 |
+ (new emerge --quiet-fail option), bug #441948 (handle permission exceptions |
49 |
+ when writing elog logs), bug #442190 (fix emerge-webrsync to apply |
50 |
+ portage:portage ownership), bug #442536 (keep temp dir after pkg_pretend |
51 |
+ failure), bug #442786 (repoman validate metadata.xml use restriction atoms), |
52 |
+ and bug #444596 (make emerge --info fail for unmatched atoms). Bug #445274 |
53 |
+ tracks all bugs fixed since portage-2.1.11.31. |
54 |
|
55 |
16 Nov 2012; Agostino Sarubbo <ago@g.o> portage-2.1.11.31.ebuild: |
56 |
Stable for X86, wrt bug #440852 |
57 |
|
58 |
|
59 |
|
60 |
1.1 sys-apps/portage/portage-2.1.11.32.ebuild |
61 |
|
62 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-2.1.11.32.ebuild?rev=1.1&view=markup |
63 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-2.1.11.32.ebuild?rev=1.1&content-type=text/plain |
64 |
|
65 |
Index: portage-2.1.11.32.ebuild |
66 |
=================================================================== |
67 |
# Copyright 1999-2012 Gentoo Foundation |
68 |
# Distributed under the terms of the GNU General Public License v2 |
69 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.11.32.ebuild,v 1.1 2012/11/29 23:39:26 zmedico Exp $ |
70 |
|
71 |
# Require EAPI 2 since we now require at least python-2.6 (for python 3 |
72 |
# syntax support) which also requires EAPI 2. |
73 |
EAPI=2 |
74 |
inherit eutils python |
75 |
|
76 |
DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
77 |
HOMEPAGE="http://www.gentoo.org/proj/en/portage/index.xml" |
78 |
LICENSE="GPL-2" |
79 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
80 |
SLOT="0" |
81 |
IUSE="build doc epydoc +ipc linguas_pl pypy1_9 python2 python3 selinux xattr" |
82 |
|
83 |
# Import of the io module in python-2.6 raises ImportError for the |
84 |
# thread module if threading is disabled. |
85 |
python_dep_ssl="python3? ( =dev-lang/python-3*[ssl] ) |
86 |
!pypy1_9? ( !python2? ( !python3? ( |
87 |
|| ( >=dev-lang/python-2.7[ssl] dev-lang/python:2.6[threads,ssl] ) |
88 |
) ) ) |
89 |
pypy1_9? ( !python2? ( !python3? ( dev-python/pypy:1.9[bzip2,ssl] ) ) ) |
90 |
python2? ( !python3? ( || ( dev-lang/python:2.7[ssl] dev-lang/python:2.6[ssl,threads] ) ) )" |
91 |
python_dep="${python_dep_ssl//\[ssl\]}" |
92 |
python_dep="${python_dep//,ssl}" |
93 |
python_dep="${python_dep//ssl,}" |
94 |
|
95 |
# The pysqlite blocker is for bug #282760. |
96 |
DEPEND="${python_dep} |
97 |
>=sys-apps/sed-4.0.5 sys-devel/patch |
98 |
doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
99 |
epydoc? ( >=dev-python/epydoc-2.0 !<=dev-python/pysqlite-2.4.1 )" |
100 |
# Require sandbox-2.2 for bug #288863. |
101 |
# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
102 |
# quite slow, so it's not considered in the dependencies as an alternative to |
103 |
# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
104 |
# for now, don't pull in xattr deps for other kernels. |
105 |
# For whirlpool hash, require python[ssl] or python-mhash (bug #425046). |
106 |
RDEPEND="${python_dep} |
107 |
!build? ( >=sys-apps/sed-4.0.5 |
108 |
>=app-shells/bash-3.2_p17 |
109 |
>=app-admin/eselect-1.2 |
110 |
|| ( ${python_dep_ssl} dev-python/python-mhash ) |
111 |
) |
112 |
elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
113 |
elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
114 |
elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
115 |
>=app-misc/pax-utils-0.1.17 |
116 |
xattr? ( kernel_linux? ( || ( >=dev-lang/python-3.3_pre20110902 dev-python/pyxattr ) ) ) |
117 |
selinux? ( || ( >=sys-libs/libselinux-2.0.94[python] <sys-libs/libselinux-2.0.94 ) ) |
118 |
!<app-shells/bash-3.2_p17 |
119 |
!<app-admin/logrotate-3.8.0" |
120 |
PDEPEND=" |
121 |
!build? ( |
122 |
>=net-misc/rsync-2.6.4 |
123 |
userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
124 |
)" |
125 |
# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
126 |
# NOTE: FEATURES=install-sources requires debugedit and rsync |
127 |
|
128 |
SRC_ARCHIVES="http://dev.gentoo.org/~zmedico/portage/archives" |
129 |
|
130 |
prefix_src_archives() { |
131 |
local x y |
132 |
for x in ${@}; do |
133 |
for y in ${SRC_ARCHIVES}; do |
134 |
echo ${y}/${x} |
135 |
done |
136 |
done |
137 |
} |
138 |
|
139 |
PV_PL="2.1.2" |
140 |
PATCHVER_PL="" |
141 |
TARBALL_PV=$PV |
142 |
SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
143 |
$(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2) |
144 |
linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2 |
145 |
$(prefix_src_archives ${PN}-man-pl-${PV_PL}.tar.bz2) )" |
146 |
|
147 |
PATCHVER= |
148 |
[[ $TARBALL_PV = $PV ]] || PATCHVER=$PV |
149 |
if [ -n "${PATCHVER}" ]; then |
150 |
SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PATCHVER}.patch.bz2 |
151 |
$(prefix_src_archives ${PN}-${PATCHVER}.patch.bz2)" |
152 |
fi |
153 |
|
154 |
S="${WORKDIR}"/${PN}-${TARBALL_PV} |
155 |
S_PL="${WORKDIR}"/${PN}-${PV_PL} |
156 |
|
157 |
compatible_python_is_selected() { |
158 |
[[ $(/usr/bin/python -c 'import sys ; sys.stdout.write(sys.hexversion >= 0x2060000 and "good" or "bad")') = good ]] |
159 |
} |
160 |
|
161 |
current_python_has_xattr() { |
162 |
[[ $(/usr/bin/python -c 'import sys ; sys.stdout.write(sys.hexversion >= 0x3030000 and "yes" or "no")') = yes ]] || \ |
163 |
/usr/bin/python -c 'import xattr' 2>/dev/null |
164 |
} |
165 |
|
166 |
pkg_setup() { |
167 |
if use python2 && use python3 ; then |
168 |
ewarn "Both python2 and python3 USE flags are enabled, but only one" |
169 |
ewarn "can be in the shebangs. Using python3." |
170 |
fi |
171 |
if use pypy1_9 && use python3 ; then |
172 |
ewarn "Both pypy1_9 and python3 USE flags are enabled, but only one" |
173 |
ewarn "can be in the shebangs. Using python3." |
174 |
fi |
175 |
if use pypy1_9 && use python2 ; then |
176 |
ewarn "Both pypy1_9 and python2 USE flags are enabled, but only one" |
177 |
ewarn "can be in the shebangs. Using python2" |
178 |
fi |
179 |
if ! use pypy1_9 && ! use python2 && ! use python3 && \ |
180 |
! compatible_python_is_selected ; then |
181 |
ewarn "Attempting to select a compatible default python interpreter" |
182 |
local x success=0 |
183 |
for x in /usr/bin/python2.* ; do |
184 |
x=${x#/usr/bin/python2.} |
185 |
if [[ $x -ge 6 ]] 2>/dev/null ; then |
186 |
eselect python set python2.$x |
187 |
if compatible_python_is_selected ; then |
188 |
elog "Default python interpreter is now set to python-2.$x" |
189 |
success=1 |
190 |
break |
191 |
fi |
192 |
fi |
193 |
done |
194 |
if [ $success != 1 ] ; then |
195 |
eerror "Unable to select a compatible default python interpreter!" |
196 |
die "This version of portage requires at least python-2.6 to be selected as the default python interpreter (see \`eselect python --help\`)." |
197 |
fi |
198 |
fi |
199 |
|
200 |
if use python3; then |
201 |
python_set_active_version 3 |
202 |
elif use python2; then |
203 |
python_set_active_version 2 |
204 |
elif use pypy1_9; then |
205 |
python_set_active_version 2.7-pypy-1.9 |
206 |
fi |
207 |
} |
208 |
|
209 |
src_prepare() { |
210 |
if [ -n "${PATCHVER}" ] ; then |
211 |
if [[ -L $S/bin/ebuild-helpers/portageq ]] ; then |
212 |
rm "$S/bin/ebuild-helpers/portageq" \ |
213 |
|| die "failed to remove portageq helper symlink" |
214 |
fi |
215 |
epatch "${WORKDIR}/${PN}-${PATCHVER}.patch" |
216 |
fi |
217 |
einfo "Setting portage.VERSION to ${PVR} ..." |
218 |
sed -e "s/^VERSION=.*/VERSION=\"${PVR}\"/" -i pym/portage/__init__.py || \ |
219 |
die "Failed to patch portage.VERSION" |
220 |
sed -e "1s/VERSION/${PVR}/" -i doc/fragment/version || \ |
221 |
die "Failed to patch VERSION in doc/fragment/version" |
222 |
sed -e "1s/VERSION/${PVR}/" -i man/* || \ |
223 |
die "Failed to patch VERSION in man page headers" |
224 |
|
225 |
if ! use ipc ; then |
226 |
einfo "Disabling ipc..." |
227 |
sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
228 |
-i pym/_emerge/AbstractEbuildProcess.py || \ |
229 |
die "failed to patch AbstractEbuildProcess.py" |
230 |
fi |
231 |
|
232 |
if use xattr && use kernel_linux ; then |
233 |
einfo "Adding FEATURES=xattr to make.globals ..." |
234 |
echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
235 |
|| die "failed to append to make.globals" |
236 |
fi |
237 |
|
238 |
if use python3; then |
239 |
einfo "Converting shebangs for python3..." |
240 |
python_convert_shebangs -r 3 . |
241 |
elif use python2; then |
242 |
einfo "Converting shebangs for python2..." |
243 |
python_convert_shebangs -r 2 . |
244 |
elif use pypy1_9; then |
245 |
einfo "Converting shebangs for pypy-c1.9..." |
246 |
python_convert_shebangs -r 2.7-pypy-1.9 . |
247 |
fi |
248 |
|
249 |
cd "${S}/cnf" || die |
250 |
if [ -f "make.conf.${ARCH}".diff ]; then |
251 |
patch make.conf "make.conf.${ARCH}".diff || \ |
252 |
die "Failed to patch make.conf.example" |
253 |
else |
254 |
eerror "" |
255 |
eerror "Portage does not have an arch-specific configuration for this arch." |
256 |
eerror "Please notify the arch maintainer about this issue. Using generic." |
257 |
eerror "" |
258 |
fi |
259 |
} |
260 |
|
261 |
src_compile() { |
262 |
if use doc; then |
263 |
emake docbook || die |
264 |
fi |
265 |
|
266 |
if use epydoc; then |
267 |
einfo "Generating api docs" |
268 |
emake epydoc || die |
269 |
fi |
270 |
} |
271 |
|
272 |
src_test() { |
273 |
emake test || die |
274 |
} |
275 |
|
276 |
src_install() { |
277 |
emake DESTDIR="${D}" \ |
278 |
sysconfdir="/etc" \ |
279 |
prefix="/usr" \ |
280 |
install || die |
281 |
|
282 |
# Extended set config is currently disabled in portage-2.1.x. |
283 |
rm -rf "${D}/usr/share/portage/config/sets" || die |
284 |
|
285 |
# Use dodoc for compression, since the Makefile doesn't do that. |
286 |
dodoc "${S}"/{ChangeLog,NEWS,RELEASE-NOTES} || die |
287 |
|
288 |
if use linguas_pl; then |
289 |
doman -i18n=pl "${S_PL}"/man/pl/*.[0-9] || die |
290 |
doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9] || die |
291 |
fi |
292 |
|
293 |
# Set PYTHONPATH for portage API consumers. This way we don't have |
294 |
# to rely on patched python having the correct path, since it has |
295 |
# been known to incorrectly add /usr/libx32/portage/pym to sys.path. |
296 |
echo "PYTHONPATH=\"/usr/lib/portage/pym\"" > \ |
297 |
"${T}/05portage" || die |
298 |
doenvd "${T}/05portage" || die |
299 |
} |
300 |
|
301 |
pkg_preinst() { |
302 |
if [[ $ROOT == / ]] ; then |
303 |
# Run some minimal tests as a sanity check. |
304 |
local test_runner=$(find "$D" -name runTests) |
305 |
if [[ -n $test_runner && -x $test_runner ]] ; then |
306 |
einfo "Running preinst sanity tests..." |
307 |
"$test_runner" || die "preinst sanity tests failed" |
308 |
fi |
309 |
fi |
310 |
|
311 |
if use xattr && ! current_python_has_xattr ; then |
312 |
ewarn "For optimal performance in xattr handling, install" |
313 |
ewarn "dev-python/pyxattr, or install >=dev-lang/python-3.3 and" |
314 |
ewarn "enable USE=python3 for $CATEGORY/$PN." |
315 |
fi |
316 |
|
317 |
if ! use build && ! has_version dev-python/pycrypto && \ |
318 |
! has_version '>=dev-lang/python-2.6[ssl]' ; then |
319 |
ewarn "If you are an ebuild developer and you plan to commit ebuilds" |
320 |
ewarn "with this system then please install dev-python/pycrypto or" |
321 |
ewarn "enable the ssl USE flag for >=dev-lang/python-2.6 in order" |
322 |
ewarn "to enable RMD160 hash support." |
323 |
ewarn "See bug #198398 for more information." |
324 |
fi |
325 |
|
326 |
if [[ -d ${ROOT}var/log/portage && \ |
327 |
$(ls -ld "${ROOT}var/log/portage") != *" portage portage "* ]] && \ |
328 |
has_version '<sys-apps/portage-2.1.10.11' ; then |
329 |
# Initialize permissions for bug #378451 and bug #377177, since older |
330 |
# portage does not create /var/log/portage with the desired default |
331 |
# permissions. |
332 |
einfo "Applying portage group permission to ${ROOT}var/log/portage for bug #378451" |
333 |
chown portage:portage "${ROOT}var/log/portage" |
334 |
chmod g+ws "${ROOT}var/log/portage" |
335 |
fi |
336 |
|
337 |
if has_version '<sys-apps/portage-2.1.10.61' ; then |
338 |
ewarn "FEATURES=config-protect-if-modified is now enabled by default." |
339 |
ewarn "This causes the CONFIG_PROTECT behavior to be skipped for" |
340 |
ewarn "files that have not been modified since they were installed." |
341 |
fi |
342 |
} |
343 |
|
344 |
pkg_postinst() { |
345 |
# Compile all source files recursively. Any orphans |
346 |
# will be identified and removed in postrm. |
347 |
python_mod_optimize /usr/lib/portage/pym |
348 |
} |
349 |
|
350 |
pkg_postrm() { |
351 |
python_mod_cleanup /usr/lib/portage/pym |
352 |
} |