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_rc5.ebuild portage-2.1.4_rc3.ebuild
Date: Mon, 03 Dec 2007 00:59:26
Message-Id: E1IyzeY-0001v8-T6@stork.gentoo.org
1 zmedico 07/12/03 00:59:18
2
3 Modified: ChangeLog
4 Added: portage-2.1.4_rc5.ebuild
5 Removed: portage-2.1.4_rc3.ebuild
6 Log:
7 2.1.4_rc5 bump. This fixes bugs #189417, #200652, #200775, and #200863.
8 Bug #200044 tracks all bugs fixed since 2.1.3.x.
9 (Portage version: 2.1.4_rc5)
10
11 Revision Changes Path
12 1.476 sys-apps/portage/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.476&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.476&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.475&r2=1.476
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v
21 retrieving revision 1.475
22 retrieving revision 1.476
23 diff -u -r1.475 -r1.476
24 --- ChangeLog 28 Nov 2007 11:08:56 -0000 1.475
25 +++ ChangeLog 3 Dec 2007 00:59:18 -0000 1.476
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sys-apps/portage
28 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.475 2007/11/28 11:08:56 zmedico Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.476 2007/12/03 00:59:18 zmedico Exp $
31 +
32 +*portage-2.1.4_rc5 (03 Dec 2007)
33 +
34 + 03 Dec 2007; Zac Medico <zmedico@g.o> +portage-2.1.4_rc5.ebuild:
35 + 2.1.4_rc5 bump. This fixes bugs #189417, #200652, #200775, and #200863.
36 + Bug #200044 tracks all bugs fixed since 2.1.3.x.
37
38 *portage-2.1.4_rc4 (28 Nov 2007)
39
40
41
42
43 1.1 sys-apps/portage/portage-2.1.4_rc5.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.4_rc5.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.4_rc5.ebuild?rev=1.1&content-type=text/plain
47
48 Index: portage-2.1.4_rc5.ebuild
49 ===================================================================
50 # Copyright 1999-2007 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.4_rc5.ebuild,v 1.1 2007/12/03 00:59:18 zmedico Exp $
53
54 inherit toolchain-funcs eutils flag-o-matic multilib
55
56 DESCRIPTION="The Portage Package Management System. The primary package management and distribution system for Gentoo."
57 HOMEPAGE="http://www.gentoo.org/proj/en/portage/index.xml"
58 LICENSE="GPL-2"
59 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
60 PROVIDE="virtual/portage"
61 SLOT="0"
62 IUSE="build doc epydoc selinux linguas_pl"
63 DEPEND=">=dev-lang/python-2.4
64 !build? ( >=sys-apps/sed-4.0.5 )
65 doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 )
66 epydoc? ( >=dev-python/epydoc-2.0 )"
67 RDEPEND=">=dev-lang/python-2.4
68 !build? ( >=sys-apps/sed-4.0.5
69 >=app-shells/bash-3.2_p17 )
70 elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
71 elibc_glibc? ( >=sys-apps/sandbox-1.2.17 )
72 elibc_uclibc? ( >=sys-apps/sandbox-1.2.17 )
73 >=app-misc/pax-utils-0.1.13
74 selinux? ( >=dev-python/python-selinux-2.16 )"
75 PDEPEND="
76 doc? (
77 || ( app-portage/eclass-manpages app-portage/portage-manpages )
78 )
79 !build? (
80 >=net-misc/rsync-2.6.4
81 userland_GNU? ( >=sys-apps/coreutils-6.4 )
82 || ( >=dev-lang/python-2.5 >=dev-python/pycrypto-2.0.1-r6 )
83 )"
84 # coreutils-6.4 rdep is for date format in emerge-webrsync #164532
85 # rsync-2.6.4 rdep is for the --filter option #167668
86 SRC_ARCHIVES="http://dev.gentoo.org/~zmedico/portage/archives"
87
88 PV_PL="2.1.2"
89 PATCHVER_PL=""
90 TARBALL_PV="2.1.3.16"
91 SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2
92 ${SRC_ARCHIVES}/${PN}-${TARBALL_PV}.tar.bz2
93 linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2
94 ${SRC_ARCHIVES}/${PN}-man-pl-${PV_PL}.tar.bz2 )"
95
96 PATCHVER=${PV}
97 if [ -n "${PATCHVER}" ]; then
98 SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PATCHVER}.patch.bz2
99 ${SRC_ARCHIVES}/${PN}-${PATCHVER}.patch.bz2"
100 fi
101
102 if [ -n "${PATCHVER_PL}" ]; then
103 SRC_URI="${SRC_URI} linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch.bz2
104 ${SRC_ARCHIVES}/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch.bz2 )"
105 fi
106
107 S="${WORKDIR}"/${PN}-${TARBALL_PV}
108 S_PL="${WORKDIR}"/${PN}-${PV_PL}
109
110 portage_docs() {
111 elog ""
112 elog "For help with using portage please consult the Gentoo Handbook"
113 elog "at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3"
114 elog ""
115 }
116
117 src_unpack() {
118 unpack ${A}
119 cd "${S}"
120 if [ -n "${PATCHVER}" ]; then
121 cd "${S}"
122 epatch "${WORKDIR}/${PN}-${PATCHVER}.patch"
123 fi
124 einfo "Setting portage.VERSION to ${PVR} ..."
125 sed -i "s/^VERSION=.*/VERSION=\"${PVR}\"/" pym/portage.py || \
126 die "Failed to patch portage.VERSION"
127 eend 0
128 if [ -n "${PATCHVER_PL}" ]; then
129 use linguas_pl && \
130 epatch "${WORKDIR}/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch"
131 fi
132 }
133
134 src_compile() {
135 append-lfs-flags
136
137 cd "${S}"/src
138 $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o tbz2tool tbz2tool.c || \
139 die "Failed to build tbz2tool"
140
141 if use doc; then
142 cd "${S}"/doc
143 touch fragment/date
144 sed -i "s/svn-trunk/${PVR}/" fragment/version
145 make xhtml-nochunks || die "failed to make docs"
146 fi
147
148 if use epydoc; then
149 einfo "Generating api docs"
150 mkdir "${WORKDIR}"/api
151 local my_modules
152 my_modules="$(find "${S}/pym" -name "*.py" \
153 | sed -e 's:/__init__.py$::' -e 's:\.py$::' -e "s:^${S}/pym/::" \
154 -e 's:/:.:g')" || die "error listing modules"
155 PYTHONPATH="${S}/pym:${PYTHONPATH}" epydoc -o "${WORKDIR}"/api \
156 -qqqqq --ignore-param-mismatch --no-frames --show-imports \
157 --name "${PN}" --url "${HOMEPAGE}" \
158 ${my_modules} || die "epydoc failed"
159 fi
160 }
161
162 src_test() {
163 ./tests/runTests || \
164 die "test(s) failed"
165 }
166
167 src_install() {
168 local libdir=$(get_libdir)
169 local portage_base="/usr/${libdir}/portage"
170 cd "${S}"/cnf
171 insinto /etc
172 doins etc-update.conf dispatch-conf.conf make.globals
173 if [ -f "make.conf.${ARCH}".diff ]; then
174 patch make.conf "make.conf.${ARCH}".diff || \
175 die "Failed to patch make.conf.example"
176 newins make.conf make.conf.example
177 else
178 eerror ""
179 eerror "Portage does not have an arch-specific configuration for this arch."
180 eerror "Please notify the arch maintainer about this issue. Using generic."
181 eerror ""
182 newins make.conf make.conf.example
183 fi
184
185 insinto /etc/logrotate.d
186 doins "${S}"/cnf/logrotate.d/elog-save-summary
187
188 dodir ${portage_base}/bin
189 exeinto ${portage_base}/bin
190 # BSD and OSX need a sed wrapper so that find/xargs work properly
191 if use userland_GNU; then
192 rm "${S}"/bin/sed || die "Failed to remove sed wrapper"
193 fi
194 cd "${S}"/bin
195 doexe *
196 doexe "${S}"/src/tbz2tool
197 dosym newins ${portage_base}/bin/donewins
198
199 local mydir
200 for mydir in pym pym/cache pym/elog_modules; do
201 dodir ${portage_base}/${mydir}
202 insinto ${portage_base}/${mydir}
203 cd "${S}"/${mydir}
204 doins *.py
205 done
206
207 doman "${S}"/man/*.[0-9]
208 if use linguas_pl; then
209 doman -i18n=pl "${S_PL}"/man/pl/*.[0-9]
210 doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9]
211 fi
212 dodoc "${S}"/ChangeLog
213 dodoc "${S}"/NEWS
214 dodoc "${S}"/RELEASE-NOTES
215 use doc && dohtml "${S}"/doc/*.html
216 use epydoc && dohtml -r "${WORKDIR}"/api
217
218 dodir /usr/bin
219 local x
220 for x in ebuild emerge portageq repoman tbz2tool xpak; do
221 dosym ../${libdir}/portage/bin/${x} /usr/bin/${x}
222 done
223
224 dodir /usr/sbin
225 local my_syms="archive-conf
226 dispatch-conf
227 emaint
228 emerge-webrsync
229 env-update
230 etc-update
231 fixpackages
232 quickpkg
233 regenworld"
234 local x
235 for x in ${my_syms}; do
236 dosym ../${libdir}/portage/bin/${x} /usr/sbin/${x}
237 done
238 dosym env-update /usr/sbin/update-env
239 dosym etc-update /usr/sbin/update-etc
240
241 dodir /etc/portage
242 keepdir /etc/portage
243
244 echo PYTHONPATH=\"${portage_base}/pym\" > "${WORKDIR}"/05portage.envd
245 doenvd "${WORKDIR}"/05portage.envd
246 }
247
248 pkg_preinst() {
249 if ! use build && ! has_version dev-python/pycrypto && \
250 has_version '>=dev-lang/python-2.5' ; then
251 # Bug #198398 - Unless pycrypto is installed, we need
252 # python's ssl flag enabled for RMD160 support.
253 built_with_use '>=dev-lang/python-2.5' ssl
254 fi
255 local portage_base="/usr/$(get_libdir)/portage"
256 if has livecvsportage ${FEATURES} && [ "${ROOT}" = "/" ]; then
257 rm -rf "${D}"/${portage_base}/pym/*
258 mv "${D}"/${portage_base}/bin/tbz2tool "${T}"
259 rm -rf "${D}"/${portage_base}/bin/*
260 mv "${T}"/tbz2tool "${D}"/${portage_base}/bin/
261 fi
262 }
263
264 pkg_postinst() {
265 local x
266
267 if [ ! -f "${ROOT}/var/lib/portage/world" ] &&
268 [ -f "${ROOT}"/var/cache/edb/world ] &&
269 [ ! -h "${ROOT}"/var/cache/edb/world ]; then
270 mv "${ROOT}"/var/cache/edb/world "${ROOT}"/var/lib/portage/world
271 ln -s ../../lib/portage/world /var/cache/edb/world
272 fi
273
274 for x in "${ROOT}"/etc/._cfg????_make.globals; do
275 # Overwrite the globals file automatically.
276 [ -e "${x}" ] && mv -f "${x}" "${ROOT}etc/make.globals"
277 done
278
279 # Compile all source files recursively. Any orphans
280 # will be identified and removed in postrm.
281 compile_all_python_bytecodes "${ROOT}usr/$(get_libdir)/portage/pym"
282
283 portage_docs
284 }
285
286 pkg_postrm() {
287 remove_orphan_python_bytecodes "${ROOT}usr/$(get_libdir)/portage/pym"
288 }
289
290 compile_all_python_bytecodes() {
291 python -c "from compileall import compile_dir; compile_dir('${1}', quiet=True)"
292 python -O -c "from compileall import compile_dir; compile_dir('${1}', quiet=True)"
293 }
294
295 remove_orphan_python_bytecodes() {
296 [[ -d ${1} ]] || return
297 find "${1}" -name '*.py[co]' -print0 | \
298 while read -d $'\0' f ; do
299 src_py=${f%[co]}
300 [[ -f ${src_py} ]] && continue
301 rm -f "${src_py}"[co]
302 done
303 }
304
305
306
307 --
308 gentoo-commits@g.o mailing list