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: ChangeLog portage-2.1.4.5.ebuild portage-2.2_rc12.ebuild portage-2.2_rc8.ebuild portage-2.2_rc9.ebuild
Date: Thu, 09 Oct 2008 21:34:43
Message-Id: E1Ko39d-0008Jq-AX@stork.gentoo.org
1 zmedico 08/10/09 21:34:41
2
3 Modified: ChangeLog portage-2.1.4.5.ebuild
4 Added: portage-2.2_rc12.ebuild
5 Removed: portage-2.2_rc8.ebuild portage-2.2_rc9.ebuild
6 Log:
7 09 Oct 2008; Zac Medico <zmedico@g.o> +portage-2.2_rc12.ebuild:
8 2.2_rc12 bump. This fixes bugs #239272 (unhandled InvalidAtom
9 exception), #239529 (regression in doins -r on symlinks to directories),
10 @preserved-rebuild message), and #240684 (undefined default function
11 during src_prepare). Bug #210077 tracks all bugs fixed since 2.1.5.x.
12
13 09 Oct 2008; Zac Medico <zmedico@g.o> -portage-2.2_rc8.ebuild,
14 -portage-2.2_rc9.ebuild:
15 Remove old.
16
17 09 Oct 2008; Zac Medico <zmedico@g.o> portage-2.1.4.5.ebuild,
18 -files/portage-2.1.4.5.patch:
19 Update to use patch from mirrors instead of $FILESDIR.
20 (Portage version: 2.2_rc12/cvs/Linux 2.6.26-0911-x86-64 i686)
21
22 Revision Changes Path
23 1.546 sys-apps/portage/ChangeLog
24
25 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.546&view=markup
26 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.546&content-type=text/plain
27 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.545&r2=1.546
28
29 Index: ChangeLog
30 ===================================================================
31 RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v
32 retrieving revision 1.545
33 retrieving revision 1.546
34 diff -u -r1.545 -r1.546
35 --- ChangeLog 9 Oct 2008 16:59:05 -0000 1.545
36 +++ ChangeLog 9 Oct 2008 21:34:41 -0000 1.546
37 @@ -1,6 +1,23 @@
38 # ChangeLog for sys-apps/portage
39 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
40 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.545 2008/10/09 16:59:05 zmedico Exp $
41 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.546 2008/10/09 21:34:41 zmedico Exp $
42 +
43 +*portage-2.2_rc12 (09 Oct 2008)
44 +
45 + 09 Oct 2008; Zac Medico <zmedico@g.o> +portage-2.2_rc12.ebuild:
46 + 2.2_rc12 bump. This fixes bugs #239272 (unhandled InvalidAtom
47 + exception), #239529 (regression in doins -r on symlinks to directories),
48 + #239560 (insecure search path for python -c), #240022 (condensed
49 + @preserved-rebuild message), and #240684 (undefined default function
50 + during src_prepare). Bug #210077 tracks all bugs fixed since 2.1.5.x.
51 +
52 + 09 Oct 2008; Zac Medico <zmedico@g.o> -portage-2.2_rc8.ebuild,
53 + -portage-2.2_rc9.ebuild:
54 + Remove old.
55 +
56 + 09 Oct 2008; Zac Medico <zmedico@g.o> portage-2.1.4.5.ebuild,
57 + -files/portage-2.1.4.5.patch:
58 + Update to use patch from mirrors instead of $FILESDIR.
59
60 *portage-2.1.4.5 (09 Oct 2008)
61
62
63
64
65 1.2 sys-apps/portage/portage-2.1.4.5.ebuild
66
67 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.4.5.ebuild?rev=1.2&view=markup
68 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.4.5.ebuild?rev=1.2&content-type=text/plain
69 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.4.5.ebuild?r1=1.1&r2=1.2
70
71 Index: portage-2.1.4.5.ebuild
72 ===================================================================
73 RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.4.5.ebuild,v
74 retrieving revision 1.1
75 retrieving revision 1.2
76 diff -u -r1.1 -r1.2
77 --- portage-2.1.4.5.ebuild 9 Oct 2008 16:59:05 -0000 1.1
78 +++ portage-2.1.4.5.ebuild 9 Oct 2008 21:34:41 -0000 1.2
79 @@ -1,6 +1,6 @@
80 # Copyright 1999-2008 Gentoo Foundation
81 # Distributed under the terms of the GNU General Public License v2
82 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.4.5.ebuild,v 1.1 2008/10/09 16:59:05 zmedico Exp $
83 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.4.5.ebuild,v 1.2 2008/10/09 21:34:41 zmedico Exp $
84
85 inherit toolchain-funcs eutils flag-o-matic multilib
86
87 @@ -41,7 +41,7 @@
88 linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2
89 ${SRC_ARCHIVES}/${PN}-man-pl-${PV_PL}.tar.bz2 )"
90
91 -PATCHVER="2.1.4.4"
92 +PATCHVER="${PV}"
93 if [ -n "${PATCHVER}" ]; then
94 SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PATCHVER}.patch.bz2
95 ${SRC_ARCHIVES}/${PN}-${PATCHVER}.patch.bz2"
96 @@ -69,7 +69,6 @@
97 cd "${S}"
98 epatch "${WORKDIR}/${PN}-${PATCHVER}.patch"
99 fi
100 - epatch "$FILESDIR"/portage-2.1.4.5.patch
101 einfo "Setting portage.VERSION to ${PVR} ..."
102 sed -i "s/^VERSION=.*/VERSION=\"${PVR}\"/" pym/portage.py || \
103 die "Failed to patch portage.VERSION"
104
105
106
107 1.1 sys-apps/portage/portage-2.2_rc12.ebuild
108
109 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.2_rc12.ebuild?rev=1.1&view=markup
110 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.2_rc12.ebuild?rev=1.1&content-type=text/plain
111
112 Index: portage-2.2_rc12.ebuild
113 ===================================================================
114 # Copyright 1999-2008 Gentoo Foundation
115 # Distributed under the terms of the GNU General Public License v2
116 # $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.2_rc12.ebuild,v 1.1 2008/10/09 21:34:41 zmedico Exp $
117
118 inherit eutils multilib python
119
120 DESCRIPTION="Portage is the package management and distribution system for Gentoo"
121 HOMEPAGE="http://www.gentoo.org/proj/en/portage/index.xml"
122 LICENSE="GPL-2"
123 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
124 PROVIDE="virtual/portage"
125 SLOT="0"
126 IUSE="build doc epydoc selinux linguas_pl"
127
128 python_dep=">=dev-lang/python-2.4"
129
130 DEPEND="${python_dep}
131 !build? ( >=sys-apps/sed-4.0.5 )
132 doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 )
133 epydoc? ( >=dev-python/epydoc-2.0 )"
134 RDEPEND="${python_dep}
135 !build? ( >=sys-apps/sed-4.0.5
136 >=app-shells/bash-3.2_p17
137 >=app-admin/eselect-news-20071201 )
138 elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
139 elibc_glibc? ( >=sys-apps/sandbox-1.2.17 !mips? ( >=sys-apps/sandbox-1.2.18.1-r2 ) )
140 elibc_uclibc? ( >=sys-apps/sandbox-1.2.17 !mips? ( >=sys-apps/sandbox-1.2.18.1-r2 ) )
141 >=app-misc/pax-utils-0.1.17
142 selinux? ( >=dev-python/python-selinux-2.16 )"
143 PDEPEND="
144 !build? (
145 >=net-misc/rsync-2.6.4
146 userland_GNU? ( >=sys-apps/coreutils-6.4 )
147 || ( >=dev-lang/python-2.5 >=dev-python/pycrypto-2.0.1-r6 )
148 )"
149 # coreutils-6.4 rdep is for date format in emerge-webrsync #164532
150 # rsync-2.6.4 rdep is for the --filter option #167668
151
152 SRC_ARCHIVES="http://dev.gentoo.org/~zmedico/portage/archives"
153
154 prefix_src_archives() {
155 local x y
156 for x in ${@}; do
157 for y in ${SRC_ARCHIVES}; do
158 echo ${y}/${x}
159 done
160 done
161 }
162
163 PV_PL="2.1.2"
164 PATCHVER_PL=""
165 TARBALL_PV="2.2_rc1"
166 SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2
167 $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)
168 linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2
169 $(prefix_src_archives ${PN}-man-pl-${PV_PL}.tar.bz2) )"
170
171 PATCHVER=${PV}
172 if [ -n "${PATCHVER}" ]; then
173 SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PATCHVER}.patch.bz2
174 $(prefix_src_archives ${PN}-${PATCHVER}.patch.bz2)"
175 fi
176
177 S="${WORKDIR}"/${PN}-${TARBALL_PV}
178 S_PL="${WORKDIR}"/${PN}-${PV_PL}
179
180 src_unpack() {
181 unpack ${A}
182 cd "${S}"
183 if [ -n "${PATCHVER}" ]; then
184 cd "${S}"
185 epatch "${WORKDIR}/${PN}-${PATCHVER}.patch"
186 fi
187 einfo "Setting portage.VERSION to ${PVR} ..."
188 sed -i "s/^VERSION=.*/VERSION=\"${PVR}\"/" pym/portage/__init__.py || \
189 die "Failed to patch portage.VERSION"
190 }
191
192 src_compile() {
193
194 if use doc; then
195 cd "${S}"/doc
196 touch fragment/date
197 make xhtml xhtml-nochunks || die "failed to make docs"
198 fi
199
200 if use epydoc; then
201 einfo "Generating api docs"
202 mkdir "${WORKDIR}"/api
203 local my_modules epydoc_opts=""
204 # A name collision between the portage.dbapi class and the
205 # module with the same name triggers an epydoc crash unless
206 # portage.dbapi is excluded from introspection.
207 has_version '>=dev-python/epydoc-3_pre0' && \
208 epydoc_opts='--exclude-introspect portage\.dbapi'
209 my_modules="$(find "${S}/pym" -name "*.py" \
210 | sed -e 's:/__init__.py$::' -e 's:\.py$::' -e "s:^${S}/pym/::" \
211 -e 's:/:.:g' | sort)" || die "error listing modules"
212 PYTHONPATH="${S}/pym:${PYTHONPATH}" epydoc -o "${WORKDIR}"/api \
213 -qqqqq --no-frames --show-imports $epydoc_opts \
214 --name "${PN}" --url "${HOMEPAGE}" \
215 ${my_modules} || die "epydoc failed"
216 fi
217 }
218
219 src_test() {
220 ./pym/portage/tests/runTests || \
221 die "test(s) failed"
222 }
223
224 src_install() {
225 local libdir=$(get_libdir)
226 local portage_base="/usr/${libdir}/portage"
227 local portage_share_config=/usr/share/portage/config
228
229 cd "${S}"/cnf
230 insinto /etc
231 doins etc-update.conf dispatch-conf.conf
232
233 dodir "${portage_share_config}"
234 insinto "${portage_share_config}"
235 doins "${S}/cnf/"{sets.conf,make.globals}
236 if [ -f "make.conf.${ARCH}".diff ]; then
237 patch make.conf "make.conf.${ARCH}".diff || \
238 die "Failed to patch make.conf.example"
239 newins make.conf 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 newins make.conf make.conf.example
246 fi
247
248 dosym ..${portage_share_config}/make.globals /etc/make.globals
249
250 insinto /etc/logrotate.d
251 doins "${S}"/cnf/logrotate.d/elog-save-summary
252
253 dodir ${portage_base}/bin
254 exeinto ${portage_base}/bin
255
256 # BSD and OSX need a sed wrapper so that find/xargs work properly
257 if use userland_GNU; then
258 rm "${S}"/bin/sed || die "Failed to remove sed wrapper"
259 fi
260
261 cd "${S}"/bin
262 doexe *
263 dosym newins ${portage_base}/bin/donewins
264
265 local symlinks
266 for mydir in $(find "${S}"/pym -type d | sed -e "s:^${S}/::") ; do
267 dodir ${portage_base}/${mydir}
268 insinto ${portage_base}/${mydir}
269 cd "${S}"/${mydir}
270 doins *.py
271 symlinks=$(find . -mindepth 1 -maxdepth 1 -type l)
272 [ -n "${symlinks}" ] && cp -P ${symlinks} "${D}${portage_base}/${mydir}"
273 done
274
275 # Symlinks to directories cause up/downgrade issues and the use of these
276 # modules outside of portage is probably negligible.
277 for x in "${D}${portage_base}/pym/"{cache,elog_modules} ; do
278 [ ! -L "${x}" ] && continue
279 die "symlink to directory will cause upgrade/downgrade issues: '${x}'"
280 done
281
282 exeinto ${portage_base}/pym/portage/tests
283 doexe "${S}"/pym/portage/tests/runTests
284
285 doman "${S}"/man/*.[0-9]
286 if use linguas_pl; then
287 doman -i18n=pl "${S_PL}"/man/pl/*.[0-9]
288 doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9]
289 fi
290
291 dodoc "${S}"/{ChangeLog,NEWS,RELEASE-NOTES}
292 use doc && dohtml -r "${S}"/doc/*
293 use epydoc && dohtml -r "${WORKDIR}"/api
294
295 dodir /usr/bin
296 for x in ebuild emerge portageq repoman xpak; do
297 dosym ../${libdir}/portage/bin/${x} /usr/bin/${x}
298 done
299
300 dodir /usr/sbin
301 local my_syms="archive-conf
302 dispatch-conf
303 emaint
304 emerge-webrsync
305 env-update
306 etc-update
307 fixpackages
308 quickpkg
309 regenworld"
310 local x
311 for x in ${my_syms}; do
312 dosym ../${libdir}/portage/bin/${x} /usr/sbin/${x}
313 done
314 dosym env-update /usr/sbin/update-env
315 dosym etc-update /usr/sbin/update-etc
316
317 dodir /etc/portage
318 keepdir /etc/portage
319 }
320
321 pkg_preinst() {
322 if ! use build && ! has_version dev-python/pycrypto && \
323 has_version '>=dev-lang/python-2.5' ; then
324 if ! built_with_use '>=dev-lang/python-2.5' ssl ; then
325 ewarn "If you are an ebuild developer and you plan to commit ebuilds"
326 ewarn "with this system then please install dev-python/pycrypto or"
327 ewarn "enable the ssl USE flag for >=dev-lang/python-2.5 in order"
328 ewarn "to enable RMD160 hash support."
329 ewarn "See bug #198398 for more information."
330 fi
331 fi
332 if [ -f "${ROOT}/etc/make.globals" ]; then
333 rm "${ROOT}/etc/make.globals"
334 fi
335
336 has_version ">=${CATEGORY}/${PN}-2.2_alpha"
337 MINOR_UPGRADE=$?
338
339 has_version "<=${CATEGORY}/${PN}-2.2_pre5"
340 WORLD_MIGRATION_UPGRADE=$?
341
342 has_version "<=${CATEGORY}/${PN}-2.2_pre7"
343 NEEDED_REBUILD_UPGRADE=$?
344
345 has_version "<${CATEGORY}/${PN}-2.2_alpha"
346 ADD_SYSTEM_TO_WORLD=$?
347
348 if [ $ADD_SYSTEM_TO_WORLD != 0 -a "$ROOT" != / ] && \
349 ! has_version "${CATEGORY}/${PN}" ; then
350 # building stage 1
351 ADD_SYSTEM_TO_WORLD=0
352 fi
353 }
354
355 pkg_postinst() {
356 # Compile all source files recursively. Any orphans
357 # will be identified and removed in postrm.
358 python_mod_optimize /usr/$(get_libdir)/portage/pym
359
360 if [ $ADD_SYSTEM_TO_WORLD = 0 ] && \
361 [ ! -e "$ROOT"var/lib/portage/world_sets ] ; then
362 einfo "adding @system to world_sets for backward compatibility"
363 echo @system > "$ROOT"var/lib/portage/world_sets
364 fi
365
366 if [ $WORLD_MIGRATION_UPGRADE = 0 ] ; then
367 einfo "moving set references from the worldfile into world_sets"
368 cd "${ROOT}/var/lib/portage/"
369 grep "^@" world >> world_sets
370 sed -i -e '/^@/d' world
371 fi
372
373 if [ $NEEDED_REBUILD_UPGRADE = 0 ] ; then
374 einfo "rebuilding NEEDED.ELF.2 files"
375 for cpv in "${ROOT}/var/db/pkg"/*/*; do
376 if [ -f "${cpv}/NEEDED" ]; then
377 rm -f "${cpv}/NEEDED.ELF.2"
378 while read line; do
379 filename=${line% *}
380 needed=${line#* }
381 needed=${needed//+/++}
382 needed=${needed//#/##}
383 needed=${needed//%/%%}
384 newline=$(scanelf -BF "%a;%F;%S;%r;${needed}" $filename)
385 newline=${newline// - }
386 echo "${newline:3}" >> "${cpv}/NEEDED.ELF.2"
387 done < "${cpv}/NEEDED"
388 fi
389 done
390 fi
391
392 elog
393 elog "For help with using portage please consult the Gentoo Handbook"
394 elog "at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3"
395 elog
396
397 if [ $MINOR_UPGRADE = 0 ] ; then
398 elog "If you're upgrading from a pre-2.2 version of portage you might"
399 elog "want to remerge world (emerge -e world) to take full advantage"
400 elog "of some of the new features in 2.2."
401 elog "This is not required however for portage to function properly."
402 elog
403 fi
404
405 if [ -z "${PV/*_pre*}" ]; then
406 elog "If you always want to use the latest development version of portage"
407 elog "please read http://www.gentoo.org/proj/en/portage/doc/testing.xml"
408 elog
409 fi
410 }
411
412 pkg_postrm() {
413 python_mod_cleanup /usr/$(get_libdir)/portage/pym
414 }