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