1 |
zmedico 12/08/26 23:08:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: portage-2.1.11.12.ebuild |
5 |
Log: |
6 |
2.1.11.12 version bump. This fixes bug #421099 (parallel debugedit/strip |
7 |
interference), but #431078 (EAPI 5 stable use masking), and bug #432862 |
8 |
(ignore irrelevant validate-desktop-entry errors/warnings, especially for |
9 |
KDE service entries). Bug #431026 tracks all bugs fixed since |
10 |
portage-2.1.11.9. |
11 |
|
12 |
(Portage version: 2.2.0_alpha123/cvs/Linux i686) |
13 |
|
14 |
Revision Changes Path |
15 |
1.1079 sys-apps/portage/ChangeLog |
16 |
|
17 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.1079&view=markup |
18 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.1079&content-type=text/plain |
19 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.1078&r2=1.1079 |
20 |
|
21 |
Index: ChangeLog |
22 |
=================================================================== |
23 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v |
24 |
retrieving revision 1.1078 |
25 |
retrieving revision 1.1079 |
26 |
diff -u -r1.1078 -r1.1079 |
27 |
--- ChangeLog 26 Aug 2012 20:18:04 -0000 1.1078 |
28 |
+++ ChangeLog 26 Aug 2012 23:08:55 -0000 1.1079 |
29 |
@@ -1,6 +1,14 @@ |
30 |
# ChangeLog for sys-apps/portage |
31 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
32 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.1078 2012/08/26 20:18:04 zmedico Exp $ |
33 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.1079 2012/08/26 23:08:55 zmedico Exp $ |
34 |
+ |
35 |
+*portage-2.1.11.12 (26 Aug 2012) |
36 |
+ |
37 |
+ 26 Aug 2012; Zac Medico <zmedico@g.o> +portage-2.1.11.12.ebuild: |
38 |
+ 2.1.11.12 version bump. This fixes bug #421099 (parallel debugedit/strip |
39 |
+ interference), but #431078 (EAPI 5 stable use masking), and bug #432862 |
40 |
+ (ignore irrelevant validate-desktop-entry errors/warnings, especially for KDE |
41 |
+ service entries). Bug #431026 tracks all bugs fixed since portage-2.1.11.9. |
42 |
|
43 |
26 Aug 2012; Zac Medico <zmedico@g.o> -portage-2.1.10.65.ebuild, |
44 |
-portage-2.1.11.10.ebuild, -portage-2.2.0_alpha110.ebuild, |
45 |
|
46 |
|
47 |
|
48 |
1.1 sys-apps/portage/portage-2.1.11.12.ebuild |
49 |
|
50 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-2.1.11.12.ebuild?rev=1.1&view=markup |
51 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/portage/portage-2.1.11.12.ebuild?rev=1.1&content-type=text/plain |
52 |
|
53 |
Index: portage-2.1.11.12.ebuild |
54 |
=================================================================== |
55 |
# Copyright 1999-2012 Gentoo Foundation |
56 |
# Distributed under the terms of the GNU General Public License v2 |
57 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.11.12.ebuild,v 1.1 2012/08/26 23:08:55 zmedico Exp $ |
58 |
|
59 |
# Require EAPI 2 since we now require at least python-2.6 (for python 3 |
60 |
# syntax support) which also requires EAPI 2. |
61 |
EAPI=2 |
62 |
inherit eutils multilib python |
63 |
|
64 |
DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
65 |
HOMEPAGE="http://www.gentoo.org/proj/en/portage/index.xml" |
66 |
LICENSE="GPL-2" |
67 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
68 |
SLOT="0" |
69 |
IUSE="build doc epydoc +ipc linguas_pl pypy1_9 python2 python3 selinux xattr" |
70 |
|
71 |
# Import of the io module in python-2.6 raises ImportError for the |
72 |
# thread module if threading is disabled. |
73 |
python_dep_ssl="python3? ( =dev-lang/python-3*[ssl] ) |
74 |
!pypy1_9? ( !python2? ( !python3? ( |
75 |
|| ( >=dev-lang/python-2.7[ssl] dev-lang/python:2.6[threads,ssl] ) |
76 |
) ) ) |
77 |
pypy1_9? ( !python2? ( !python3? ( dev-python/pypy:1.9[bzip2,ssl] ) ) ) |
78 |
python2? ( !python3? ( || ( dev-lang/python:2.7[ssl] dev-lang/python:2.6[ssl,threads] ) ) )" |
79 |
python_dep="${python_dep_ssl//\[ssl\]}" |
80 |
python_dep="${python_dep//,ssl}" |
81 |
python_dep="${python_dep//ssl,}" |
82 |
|
83 |
# The pysqlite blocker is for bug #282760. |
84 |
DEPEND="${python_dep} |
85 |
>=sys-apps/sed-4.0.5 sys-devel/patch |
86 |
doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
87 |
epydoc? ( >=dev-python/epydoc-2.0 !<=dev-python/pysqlite-2.4.1 )" |
88 |
# Require sandbox-2.2 for bug #288863. |
89 |
# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
90 |
# quite slow, so it's not considered in the dependencies as an alternative to |
91 |
# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
92 |
# for now, don't pull in xattr deps for other kernels. |
93 |
# For whirlpool hash, require python[ssl] or python-mhash (bug #425046). |
94 |
RDEPEND="${python_dep} |
95 |
!build? ( >=sys-apps/sed-4.0.5 |
96 |
>=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=install-sources 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 |
# Bug #359731 - Die early if get_libdir fails. |
156 |
[[ -z $(get_libdir) ]] && \ |
157 |
die "get_libdir returned an empty string" |
158 |
|
159 |
if use python2 && use python3 ; then |
160 |
ewarn "Both python2 and python3 USE flags are enabled, but only one" |
161 |
ewarn "can be in the shebangs. Using python3." |
162 |
fi |
163 |
if use pypy1_9 && use python3 ; then |
164 |
ewarn "Both pypy1_9 and python3 USE flags are enabled, but only one" |
165 |
ewarn "can be in the shebangs. Using python3." |
166 |
fi |
167 |
if use pypy1_9 && use python2 ; then |
168 |
ewarn "Both pypy1_9 and python2 USE flags are enabled, but only one" |
169 |
ewarn "can be in the shebangs. Using python2" |
170 |
fi |
171 |
if ! use pypy1_9 && ! use python2 && ! use python3 && \ |
172 |
! compatible_python_is_selected ; then |
173 |
ewarn "Attempting to select a compatible default python interpreter" |
174 |
local x success=0 |
175 |
for x in /usr/bin/python2.* ; do |
176 |
x=${x#/usr/bin/python2.} |
177 |
if [[ $x -ge 6 ]] 2>/dev/null ; then |
178 |
eselect python set python2.$x |
179 |
if compatible_python_is_selected ; then |
180 |
elog "Default python interpreter is now set to python-2.$x" |
181 |
success=1 |
182 |
break |
183 |
fi |
184 |
fi |
185 |
done |
186 |
if [ $success != 1 ] ; then |
187 |
eerror "Unable to select a compatible default python interpreter!" |
188 |
die "This version of portage requires at least python-2.6 to be selected as the default python interpreter (see \`eselect python --help\`)." |
189 |
fi |
190 |
fi |
191 |
|
192 |
if use python3; then |
193 |
python_set_active_version 3 |
194 |
elif use python2; then |
195 |
python_set_active_version 2 |
196 |
elif use pypy1_9; then |
197 |
python_set_active_version 2.7-pypy-1.9 |
198 |
fi |
199 |
} |
200 |
|
201 |
src_prepare() { |
202 |
if [ -n "${PATCHVER}" ] ; then |
203 |
if [[ -L $S/bin/ebuild-helpers/portageq ]] ; then |
204 |
rm "$S/bin/ebuild-helpers/portageq" \ |
205 |
|| die "failed to remove portageq helper symlink" |
206 |
fi |
207 |
epatch "${WORKDIR}/${PN}-${PATCHVER}.patch" |
208 |
fi |
209 |
einfo "Setting portage.VERSION to ${PVR} ..." |
210 |
sed -e "s/^VERSION=.*/VERSION=\"${PVR}\"/" -i pym/portage/__init__.py || \ |
211 |
die "Failed to patch portage.VERSION" |
212 |
sed -e "1s/VERSION/${PVR}/" -i doc/fragment/version || \ |
213 |
die "Failed to patch VERSION in doc/fragment/version" |
214 |
sed -e "1s/VERSION/${PVR}/" -i man/* || \ |
215 |
die "Failed to patch VERSION in man page headers" |
216 |
|
217 |
if ! use ipc ; then |
218 |
einfo "Disabling ipc..." |
219 |
sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
220 |
-i pym/_emerge/AbstractEbuildProcess.py || \ |
221 |
die "failed to patch AbstractEbuildProcess.py" |
222 |
fi |
223 |
|
224 |
if use xattr && use kernel_linux ; then |
225 |
einfo "Adding FEATURES=xattr to make.globals ..." |
226 |
echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
227 |
|| die "failed to append to make.globals" |
228 |
fi |
229 |
|
230 |
if use python3; then |
231 |
einfo "Converting shebangs for python3..." |
232 |
python_convert_shebangs -r 3 . |
233 |
elif use python2; then |
234 |
einfo "Converting shebangs for python2..." |
235 |
python_convert_shebangs -r 2 . |
236 |
elif use pypy1_9; then |
237 |
einfo "Converting shebangs for pypy-c1.9..." |
238 |
python_convert_shebangs -r 2.7-pypy-1.9 . |
239 |
fi |
240 |
|
241 |
cd "${S}/cnf" || die |
242 |
if [ -f "make.conf.${ARCH}".diff ]; then |
243 |
patch make.conf "make.conf.${ARCH}".diff || \ |
244 |
die "Failed to patch make.conf.example" |
245 |
else |
246 |
eerror "" |
247 |
eerror "Portage does not have an arch-specific configuration for this arch." |
248 |
eerror "Please notify the arch maintainer about this issue. Using generic." |
249 |
eerror "" |
250 |
fi |
251 |
|
252 |
# BSD and OSX need a sed wrapper so that find/xargs work properly |
253 |
if use userland_GNU; then |
254 |
rm -f "${S}"/bin/ebuild-helpers/sed || \ |
255 |
die "Failed to remove sed wrapper" |
256 |
fi |
257 |
} |
258 |
|
259 |
src_compile() { |
260 |
if use doc; then |
261 |
emake docbook || die |
262 |
fi |
263 |
|
264 |
if use epydoc; then |
265 |
einfo "Generating api docs" |
266 |
emake epydoc || die |
267 |
fi |
268 |
} |
269 |
|
270 |
src_test() { |
271 |
emake test || die |
272 |
} |
273 |
|
274 |
src_install() { |
275 |
emake DESTDIR="${D}" \ |
276 |
sysconfdir="/etc" \ |
277 |
prefix="/usr" \ |
278 |
libdir="/usr/$(get_libdir)" \ |
279 |
install || die |
280 |
|
281 |
# Use dodoc for compression, since the Makefile doesn't do that. |
282 |
dodoc "${S}"/{ChangeLog,NEWS,RELEASE-NOTES} || die |
283 |
|
284 |
if use linguas_pl; then |
285 |
doman -i18n=pl "${S_PL}"/man/pl/*.[0-9] || die |
286 |
doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9] || die |
287 |
fi |
288 |
} |
289 |
|
290 |
pkg_preinst() { |
291 |
if [[ $ROOT == / ]] ; then |
292 |
# Run some minimal tests as a sanity check. |
293 |
local test_runner=$(find "$D" -name runTests) |
294 |
if [[ -n $test_runner && -x $test_runner ]] ; then |
295 |
einfo "Running preinst sanity tests..." |
296 |
"$test_runner" || die "preinst sanity tests failed" |
297 |
fi |
298 |
fi |
299 |
|
300 |
if use xattr && ! current_python_has_xattr ; then |
301 |
ewarn "For optimal performance in xattr handling, install" |
302 |
ewarn "dev-python/pyxattr, or install >=dev-lang/python-3.3 and" |
303 |
ewarn "enable USE=python3 for $CATEGORY/$PN." |
304 |
fi |
305 |
|
306 |
if ! use build && ! has_version dev-python/pycrypto && \ |
307 |
! has_version '>=dev-lang/python-2.6[ssl]' ; then |
308 |
ewarn "If you are an ebuild developer and you plan to commit ebuilds" |
309 |
ewarn "with this system then please install dev-python/pycrypto or" |
310 |
ewarn "enable the ssl USE flag for >=dev-lang/python-2.6 in order" |
311 |
ewarn "to enable RMD160 hash support." |
312 |
ewarn "See bug #198398 for more information." |
313 |
fi |
314 |
|
315 |
if [[ -d ${ROOT}var/log/portage && \ |
316 |
$(ls -ld "${ROOT}var/log/portage") != *" portage portage "* ]] && \ |
317 |
has_version '<sys-apps/portage-2.1.10.11' ; then |
318 |
# Initialize permissions for bug #378451 and bug #377177, since older |
319 |
# portage does not create /var/log/portage with the desired default |
320 |
# permissions. |
321 |
einfo "Applying portage group permission to ${ROOT}var/log/portage for bug #378451" |
322 |
chown portage:portage "${ROOT}var/log/portage" |
323 |
chmod g+ws "${ROOT}var/log/portage" |
324 |
fi |
325 |
|
326 |
if has_version '<sys-apps/portage-2.1.10.61' ; then |
327 |
ewarn "FEATURES=config-protect-if-modified is now enabled by default." |
328 |
ewarn "This causes the CONFIG_PROTECT behavior to be skipped for" |
329 |
ewarn "files that have not been modified since they were installed." |
330 |
fi |
331 |
} |
332 |
|
333 |
pkg_postinst() { |
334 |
# Compile all source files recursively. Any orphans |
335 |
# will be identified and removed in postrm. |
336 |
python_mod_optimize /usr/$(get_libdir)/portage/pym |
337 |
} |
338 |
|
339 |
pkg_postrm() { |
340 |
python_mod_cleanup /usr/$(get_libdir)/portage/pym |
341 |
} |