Gentoo Archives: gentoo-commits

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