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.55.ebuild ChangeLog
Date: Tue, 05 Mar 2013 02:22:57
Message-Id: 20130305022252.7AE9E2171E@flycatcher.gentoo.org
1 zmedico 13/03/05 02:22:52
2
3 Modified: ChangeLog
4 Added: portage-2.1.11.55.ebuild
5 Log:
6 2.1.11.55 version bump. This fixes bug #460304 (spurious networkmanager
7 rebuilds triggered by thee wimax USE flag).
8 Bug #459934 tracks all bugs fixed since portage-2.1.11.52.
9
10 (Portage version: 2.2.0_alpha166/cvs/Linux i686, signed Manifest commit with key 0xFDE8EF85AE5719A3)
11
12 Revision Changes Path
13 1.1220 sys-apps/portage/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.1220&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.1220&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.1219&r2=1.1220
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v
22 retrieving revision 1.1219
23 retrieving revision 1.1220
24 diff -u -r1.1219 -r1.1220
25 --- ChangeLog 3 Mar 2013 19:07:32 -0000 1.1219
26 +++ ChangeLog 5 Mar 2013 02:22:52 -0000 1.1220
27 @@ -1,6 +1,13 @@
28 # ChangeLog for sys-apps/portage
29 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.1219 2013/03/03 19:07:32 zmedico Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.1220 2013/03/05 02:22:52 zmedico Exp $
32 +
33 +*portage-2.1.11.55 (05 Mar 2013)
34 +
35 + 05 Mar 2013; Zac Medico <zmedico@g.o> +portage-2.1.11.55.ebuild:
36 + 2.1.11.55 version bump. This fixes bug #460304 (spurious networkmanager
37 + rebuilds triggered by thee wimax USE flag). Bug #459934 tracks all bugs fixed
38 + since portage-2.1.11.52.
39
40 *portage-2.2.0_alpha165 (03 Mar 2013)
41
42
43
44
45 1.1 sys-apps/portage/portage-2.1.11.55.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-2.1.11.55.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-2.1.11.55.ebuild?rev=1.1&content-type=text/plain
49
50 Index: portage-2.1.11.55.ebuild
51 ===================================================================
52 # Copyright 1999-2013 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.11.55.ebuild,v 1.1 2013/03/05 02:22:52 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 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 linguas_ru pypy2_0 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 !pypy2_0? ( !python2? ( !python3? (
72 || ( >=dev-lang/python-2.7[ssl] dev-lang/python:2.6[threads,ssl] )
73 ) ) )
74 pypy2_0? ( !python2? ( !python3? ( dev-python/pypy:2.0[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 # make-3.82 is for bug #455858
82 DEPEND="${python_dep}
83 >=sys-devel/make-3.82
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 # For compgen, require bash[readline] (bug #445576).
94 RDEPEND="${python_dep}
95 !build? ( >=sys-apps/sed-4.0.5
96 || ( >=app-shells/bash-4.2_p37[readline] ( <app-shells/bash-4.2_p37 >=app-shells/bash-3.2_p17 ) )
97 >=app-admin/eselect-1.2
98 || ( ${python_dep_ssl} dev-python/python-mhash )
99 )
100 elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
101 elibc_glibc? ( >=sys-apps/sandbox-2.2 )
102 elibc_uclibc? ( >=sys-apps/sandbox-2.2 )
103 >=app-misc/pax-utils-0.1.17
104 xattr? ( kernel_linux? ( || ( >=dev-lang/python-3.3_pre20110902 dev-python/pyxattr ) ) )
105 selinux? ( || ( >=sys-libs/libselinux-2.0.94[python] <sys-libs/libselinux-2.0.94 ) )
106 !<app-shells/bash-3.2_p17
107 !<app-admin/logrotate-3.8.0"
108 PDEPEND="
109 !build? (
110 >=net-misc/rsync-2.6.4
111 userland_GNU? ( >=sys-apps/coreutils-6.4 )
112 )"
113 # coreutils-6.4 rdep is for date format in emerge-webrsync #164532
114 # NOTE: FEATURES=installsources requires debugedit and rsync
115
116 SRC_ARCHIVES="http://dev.gentoo.org/~zmedico/portage/archives"
117
118 prefix_src_archives() {
119 local x y
120 for x in ${@}; do
121 for y in ${SRC_ARCHIVES}; do
122 echo ${y}/${x}
123 done
124 done
125 }
126
127 PV_PL="2.1.2"
128 PATCHVER_PL=""
129 TARBALL_PV=$PV
130 SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2
131 $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)
132 linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2
133 $(prefix_src_archives ${PN}-man-pl-${PV_PL}.tar.bz2) )"
134
135 PATCHVER=
136 [[ $TARBALL_PV = $PV ]] || PATCHVER=$PV
137 if [ -n "${PATCHVER}" ]; then
138 SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PATCHVER}.patch.bz2
139 $(prefix_src_archives ${PN}-${PATCHVER}.patch.bz2)"
140 fi
141
142 S="${WORKDIR}"/${PN}-${TARBALL_PV}
143 S_PL="${WORKDIR}"/${PN}-${PV_PL}
144
145 compatible_python_is_selected() {
146 [[ $(/usr/bin/python -c 'import sys ; sys.stdout.write(sys.hexversion >= 0x2060000 and "good" or "bad")') = good ]]
147 }
148
149 current_python_has_xattr() {
150 [[ $(/usr/bin/python -c 'import sys ; sys.stdout.write(sys.hexversion >= 0x3030000 and "yes" or "no")') = yes ]] || \
151 /usr/bin/python -c 'import xattr' 2>/dev/null
152 }
153
154 pkg_setup() {
155 if use python2 && use python3 ; then
156 ewarn "Both python2 and python3 USE flags are enabled, but only one"
157 ewarn "can be in the shebangs. Using python3."
158 fi
159 if use pypy2_0 && use python3 ; then
160 ewarn "Both pypy2_0 and python3 USE flags are enabled, but only one"
161 ewarn "can be in the shebangs. Using python3."
162 fi
163 if use pypy2_0 && use python2 ; then
164 ewarn "Both pypy2_0 and python2 USE flags are enabled, but only one"
165 ewarn "can be in the shebangs. Using python2"
166 fi
167 if ! use pypy2_0 && ! use python2 && ! use python3 && \
168 ! compatible_python_is_selected ; then
169 ewarn "Attempting to select a compatible default python interpreter"
170 local x success=0
171 for x in /usr/bin/python2.* ; do
172 x=${x#/usr/bin/python2.}
173 if [[ $x -ge 6 ]] 2>/dev/null ; then
174 eselect python set python2.$x
175 if compatible_python_is_selected ; then
176 elog "Default python interpreter is now set to python-2.$x"
177 success=1
178 break
179 fi
180 fi
181 done
182 if [ $success != 1 ] ; then
183 eerror "Unable to select a compatible default python interpreter!"
184 die "This version of portage requires at least python-2.6 to be selected as the default python interpreter (see \`eselect python --help\`)."
185 fi
186 fi
187
188 if use python3; then
189 python_set_active_version 3
190 elif use python2; then
191 python_set_active_version 2
192 elif use pypy2_0; then
193 python_set_active_version 2.7-pypy-2.0
194 fi
195 }
196
197 src_prepare() {
198 if [ -n "${PATCHVER}" ] ; then
199 if [[ -L $S/bin/ebuild-helpers/portageq ]] ; then
200 rm "$S/bin/ebuild-helpers/portageq" \
201 || die "failed to remove portageq helper symlink"
202 fi
203 epatch "${WORKDIR}/${PN}-${PATCHVER}.patch"
204 fi
205 einfo "Setting portage.VERSION to ${PVR} ..."
206 sed -e "s/^VERSION=.*/VERSION=\"${PVR}\"/" -i pym/portage/__init__.py || \
207 die "Failed to patch portage.VERSION"
208 sed -e "1s/VERSION/${PVR}/" -i doc/fragment/version || \
209 die "Failed to patch VERSION in doc/fragment/version"
210 sed -e "1s/VERSION/${PVR}/" -i $(find man -type f) || \
211 die "Failed to patch VERSION in man page headers"
212
213 if ! use ipc ; then
214 einfo "Disabling ipc..."
215 sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
216 -i pym/_emerge/AbstractEbuildProcess.py || \
217 die "failed to patch AbstractEbuildProcess.py"
218 fi
219
220 if use xattr && use kernel_linux ; then
221 einfo "Adding FEATURES=xattr to make.globals ..."
222 echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \
223 || die "failed to append to make.globals"
224 fi
225
226 if use python3; then
227 einfo "Converting shebangs for python3..."
228 python_convert_shebangs -r 3 .
229 elif use python2; then
230 einfo "Converting shebangs for python2..."
231 python_convert_shebangs -r 2 .
232 elif use pypy2_0; then
233 einfo "Converting shebangs for pypy-c2.0..."
234 python_convert_shebangs -r 2.7-pypy-2.0 .
235 fi
236
237 cd "${S}/cnf" || die
238 if [ -f "make.conf.${ARCH}".diff ]; then
239 patch make.conf "make.conf.${ARCH}".diff || \
240 die "Failed to patch make.conf.example"
241 else
242 eerror ""
243 eerror "Portage does not have an arch-specific configuration for this arch."
244 eerror "Please notify the arch maintainer about this issue. Using generic."
245 eerror ""
246 fi
247 }
248
249 src_compile() {
250 if use doc; then
251 emake docbook || die
252 fi
253
254 if use epydoc; then
255 einfo "Generating api docs"
256 emake epydoc || die
257 fi
258 }
259
260 src_test() {
261 emake test || die
262 }
263
264 src_install() {
265 emake DESTDIR="${D}" \
266 sysconfdir="/etc" \
267 prefix="/usr" \
268 install || die
269
270 # Extended set config is currently disabled in portage-2.1.x.
271 rm -rf "${D}/usr/share/portage/config/sets" || die
272
273 # Use dodoc for compression, since the Makefile doesn't do that.
274 dodoc "${S}"/{ChangeLog,NEWS,RELEASE-NOTES} || die
275
276 if use linguas_pl; then
277 doman -i18n=pl "${S_PL}"/man/pl/*.[0-9] || die
278 doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9] || die
279 fi
280
281 # Set PYTHONPATH for portage API consumers. This way we don't have
282 # to rely on patched python having the correct path, since it has
283 # been known to incorrectly add /usr/libx32/portage/pym to sys.path.
284 echo "PYTHONPATH=\"/usr/lib/portage/pym\"" > \
285 "${T}/05portage" || die
286 doenvd "${T}/05portage" || die
287 }
288
289 pkg_preinst() {
290 if [[ $ROOT == / ]] ; then
291 # Run some minimal tests as a sanity check.
292 local test_runner=$(find "$D" -name runTests)
293 if [[ -n $test_runner && -x $test_runner ]] ; then
294 einfo "Running preinst sanity tests..."
295 "$test_runner" || die "preinst sanity tests failed"
296 fi
297 fi
298
299 if use xattr && ! current_python_has_xattr ; then
300 ewarn "For optimal performance in xattr handling, install"
301 ewarn "dev-python/pyxattr, or install >=dev-lang/python-3.3 and"
302 ewarn "enable USE=python3 for $CATEGORY/$PN."
303 fi
304
305 if [[ -d ${ROOT}var/log/portage && \
306 $(ls -ld "${ROOT}var/log/portage") != *" portage portage "* ]] && \
307 has_version '<sys-apps/portage-2.1.10.11' ; then
308 # Initialize permissions for bug #378451 and bug #377177, since older
309 # portage does not create /var/log/portage with the desired default
310 # permissions.
311 einfo "Applying portage group permission to ${ROOT}var/log/portage for bug #378451"
312 chown portage:portage "${ROOT}var/log/portage"
313 chmod g+ws "${ROOT}var/log/portage"
314 fi
315
316 if has_version '<sys-apps/portage-2.1.10.61' ; then
317 ewarn "FEATURES=config-protect-if-modified is now enabled by default."
318 ewarn "This causes the CONFIG_PROTECT behavior to be skipped for"
319 ewarn "files that have not been modified since they were installed."
320 fi
321 }
322
323 pkg_postinst() {
324 # Compile all source files recursively. Any orphans
325 # will be identified and removed in postrm.
326 python_mod_optimize /usr/lib/portage/pym
327 }
328
329 pkg_postrm() {
330 python_mod_cleanup /usr/lib/portage/pym
331 }