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.3.12.ebuild
Date: Sat, 06 Oct 2007 04:28:34
Message-Id: E1Ie18B-000382-QB@stork.gentoo.org
1 zmedico 07/10/06 04:19:11
2
3 Modified: ChangeLog
4 Added: portage-2.1.3.12.ebuild
5 Log:
6 2.1.3.12 bump. This fixes bugs #88613, #142508, #174405, 174410,
7 #179380, #194095, #194169, #194398, #194764, and #194876. Bug #194041
8 tracks all bugs fixed since 2.1.3.9. This release is the first to have
9 support for EAPI-1 (#194876), which includes SLOT dependencies
10 (#174405), IUSE defaults (#174410), and ECONF_SOURCE support for the
11 default src_compile function (#179380). Package maintainers should
12 carefully consider the backward compatibility consequences before
13 defining EAPI="1" in any ebuilds, especially if other packages depend
14 on those ebuilds. See the ebuild(5) and emerge(1) manual pages for
15 EAPI related documentation.
16 (Portage version: 2.1.3.12)
17
18 Revision Changes Path
19 1.448 sys-apps/portage/ChangeLog
20
21 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.448&view=markup
22 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.448&content-type=text/plain
23 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.447&r2=1.448
24
25 Index: ChangeLog
26 ===================================================================
27 RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v
28 retrieving revision 1.447
29 retrieving revision 1.448
30 diff -u -r1.447 -r1.448
31 --- ChangeLog 30 Sep 2007 04:11:34 -0000 1.447
32 +++ ChangeLog 6 Oct 2007 04:19:11 -0000 1.448
33 @@ -1,6 +1,20 @@
34 # ChangeLog for sys-apps/portage
35 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
36 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.447 2007/09/30 04:11:34 zmedico Exp $
37 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.448 2007/10/06 04:19:11 zmedico Exp $
38 +
39 +*portage-2.1.3.12 (06 Oct 2007)
40 +
41 + 05 Oct 2007; Zac Medico <zmedico@g.o> +portage-2.1.3.12.ebuild:
42 + 2.1.3.12 bump. This fixes bugs #88613, #142508, #174405, 174410,
43 + #179380, #194095, #194169, #194398, #194764, and #194876. Bug #194041
44 + tracks all bugs fixed since 2.1.3.9. This release is the first to have
45 + support for EAPI-1 (#194876), which includes SLOT dependencies
46 + (#174405), IUSE defaults (#174410), and ECONF_SOURCE support for the
47 + default src_compile function (#179380). Package maintainers should
48 + carefully consider the backward compatibility consequences before
49 + defining EAPI="1" in any ebuilds, especially if other packages depend
50 + on those ebuilds. See the ebuild(5) and emerge(1) manual pages for
51 + EAPI related documentation.
52
53 30 Sep 2007; Zac Medico <zmedico@g.o> -portage-2.1.2.2.ebuild,
54 -portage-2.1.2.9.ebuild, -portage-2.1.2.11.ebuild:
55
56
57
58 1.1 sys-apps/portage/portage-2.1.3.12.ebuild
59
60 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.3.12.ebuild?rev=1.1&view=markup
61 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.3.12.ebuild?rev=1.1&content-type=text/plain
62
63 Index: portage-2.1.3.12.ebuild
64 ===================================================================
65 # Copyright 1999-2007 Gentoo Foundation
66 # Distributed under the terms of the GNU General Public License v2
67 # $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.3.12.ebuild,v 1.1 2007/10/06 04:19:11 zmedico Exp $
68
69 inherit toolchain-funcs eutils flag-o-matic multilib
70
71 DESCRIPTION="The Portage Package Management System. The primary package management and distribution system for Gentoo."
72 HOMEPAGE="http://www.gentoo.org/proj/en/portage/index.xml"
73 LICENSE="GPL-2"
74 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
75 PROVIDE="virtual/portage"
76 SLOT="0"
77 # USE_EXPAND_HIDDEN hides ELIBC and USERLAND expansions from emerge output (see make.conf.5).
78 IUSE_ELIBC="elibc_glibc elibc_uclibc elibc_FreeBSD"
79 IUSE="build doc epydoc selinux linguas_pl userland_GNU ${IUSE_ELIBC}"
80 DEPEND=">=dev-lang/python-2.4
81 !build? ( >=sys-apps/sed-4.0.5 )
82 doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 )
83 epydoc? ( >=dev-python/epydoc-2.0 )"
84 RDEPEND=">=dev-lang/python-2.4
85 !build? ( >=sys-apps/sed-4.0.5
86 >=app-shells/bash-3.1_p17 )
87 elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
88 elibc_glibc? ( >=sys-apps/sandbox-1.2.17 )
89 elibc_uclibc? ( >=sys-apps/sandbox-1.2.17 )
90 >=app-misc/pax-utils-0.1.13
91 selinux? ( >=dev-python/python-selinux-2.16 )"
92 PDEPEND="
93 doc? (
94 || ( app-portage/eclass-manpages app-portage/portage-manpages )
95 )
96 !build? (
97 >=net-misc/rsync-2.6.4
98 userland_GNU? ( >=sys-apps/coreutils-6.4 )
99 || ( >=dev-lang/python-2.5 >=dev-python/pycrypto-2.0.1-r6 )
100 )"
101 # coreutils-6.4 rdep is for date format in emerge-webrsync #164532
102 # rsync-2.6.4 rdep is for the --filter option #167668
103 SRC_ARCHIVES="http://dev.gentoo.org/~zmedico/portage/archives"
104
105 PV_PL="2.1.2"
106 PATCHVER_PL=""
107 TARBALL_PV="${PV%.*}"
108 SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2
109 ${SRC_ARCHIVES}/${PN}-${TARBALL_PV}.tar.bz2
110 linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2
111 ${SRC_ARCHIVES}/${PN}-man-pl-${PV_PL}.tar.bz2 )"
112
113 PATCHVER="${PVR}"
114 if [ -n "${PATCHVER}" ]; then
115 SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PATCHVER}.patch.bz2
116 ${SRC_ARCHIVES}/${PN}-${PATCHVER}.patch.bz2"
117 fi
118
119 if [ -n "${PATCHVER_PL}" ]; then
120 SRC_URI="${SRC_URI} linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch.bz2
121 ${SRC_ARCHIVES}/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch.bz2 )"
122 fi
123
124 S="${WORKDIR}"/${PN}-${TARBALL_PV}
125 S_PL="${WORKDIR}"/${PN}-${PV_PL}
126
127 portage_docs() {
128 elog ""
129 elog "For help with using portage please consult the Gentoo Handbook"
130 elog "at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3"
131 elog ""
132 }
133
134 src_unpack() {
135 unpack ${A}
136 cd "${S}"
137 if [ -n "${PATCHVER}" ]; then
138 cd "${S}"
139 epatch "${WORKDIR}/${PN}-${PATCHVER}.patch"
140 fi
141 einfo "Setting portage.VERSION to ${PVR} ..."
142 sed -i "s/^VERSION=.*/VERSION=\"${PVR}\"/" pym/portage.py || \
143 die "Failed to patch portage.VERSION"
144 eend 0
145 if [ -n "${PATCHVER_PL}" ]; then
146 use linguas_pl && \
147 epatch "${WORKDIR}/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch"
148 fi
149 }
150
151 src_compile() {
152 append-lfs-flags
153
154 cd "${S}"/src
155 $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o tbz2tool tbz2tool.c || \
156 die "Failed to build tbz2tool"
157
158 if use doc; then
159 cd "${S}"/doc
160 touch fragment/date
161 sed -i "s/svn-trunk/${PVR}/" fragment/version
162 make xhtml-nochunks || die "failed to make docs"
163 fi
164
165 if use epydoc; then
166 einfo "Generating api docs"
167 mkdir "${WORKDIR}"/api
168 local my_modules
169 my_modules="$(find "${S}/pym" -name "*.py" \
170 | sed -e 's:/__init__.py$::' -e 's:\.py$::' -e "s:^${S}/pym/::" \
171 -e 's:/:.:g')" || die "error listing modules"
172 PYTHONPATH="${S}/pym:${PYTHONPATH}" epydoc -o "${WORKDIR}"/api \
173 -qqqqq --ignore-param-mismatch --no-frames --show-imports \
174 --name "${PN}" --url "${HOMEPAGE}" \
175 ${my_modules} || die "epydoc failed"
176 fi
177 }
178
179 src_test() {
180 ./tests/runTests || \
181 die "test(s) failed"
182 }
183
184 src_install() {
185 local libdir=$(get_libdir)
186 local portage_base="/usr/${libdir}/portage"
187 cd "${S}"/cnf
188 insinto /etc
189 doins etc-update.conf dispatch-conf.conf make.globals
190 if [ -f "make.conf.${ARCH}".diff ]; then
191 patch make.conf "make.conf.${ARCH}".diff || \
192 die "Failed to patch make.conf.example"
193 newins make.conf make.conf.example
194 else
195 eerror ""
196 eerror "Portage does not have an arch-specific configuration for this arch."
197 eerror "Please notify the arch maintainer about this issue. Using generic."
198 eerror ""
199 newins make.conf make.conf.example
200 fi
201
202 insinto /etc/logrotate.d
203 doins "${S}"/cnf/logrotate.d/elog-save-summary
204
205 dodir ${portage_base}/bin
206 exeinto ${portage_base}/bin
207 # BSD and OSX need a sed wrapper so that find/xargs work properly
208 if use userland_GNU; then
209 rm "${S}"/bin/sed || die "Failed to remove sed wrapper"
210 fi
211 cd "${S}"/bin
212 doexe *
213 doexe "${S}"/src/tbz2tool
214 dosym newins ${portage_base}/bin/donewins
215
216 for mydir in pym pym/cache pym/elog_modules; do
217 dodir ${portage_base}/${mydir}
218 insinto ${portage_base}/${mydir}
219 cd "${S}"/${mydir}
220 doins *.py
221 done
222
223 doman "${S}"/man/*.[0-9]
224 if use linguas_pl; then
225 doman -i18n=pl "${S_PL}"/man/pl/*.[0-9]
226 doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9]
227 fi
228 dodoc "${S}"/ChangeLog
229 dodoc "${S}"/NEWS
230 dodoc "${S}"/RELEASE-NOTES
231 use doc && dohtml "${S}"/doc/*.html
232 use epydoc && dohtml -r "${WORKDIR}"/api
233
234 dodir /usr/bin
235 for x in ebuild emerge portageq repoman tbz2tool 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 echo PYTHONPATH=\"${portage_base}/pym\" > "${WORKDIR}"/05portage.envd
260 doenvd "${WORKDIR}"/05portage.envd
261 }
262
263 pkg_preinst() {
264 local portage_base="/usr/$(get_libdir)/portage"
265 if has livecvsportage ${FEATURES} && [ "${ROOT}" = "/" ]; then
266 rm -rf "${D}"/${portage_base}/pym/*
267 mv "${D}"/${portage_base}/bin/tbz2tool "${T}"
268 rm -rf "${D}"/${portage_base}/bin/*
269 mv "${T}"/tbz2tool "${D}"/${portage_base}/bin/
270 fi
271 }
272
273 pkg_postinst() {
274 local x
275
276 if [ ! -f "${ROOT}/var/lib/portage/world" ] &&
277 [ -f "${ROOT}"/var/cache/edb/world ] &&
278 [ ! -h "${ROOT}"/var/cache/edb/world ]; then
279 mv "${ROOT}"/var/cache/edb/world "${ROOT}"/var/lib/portage/world
280 ln -s ../../lib/portage/world /var/cache/edb/world
281 fi
282
283 for x in "${ROOT}"/etc/._cfg????_make.globals; do
284 # Overwrite the globals file automatically.
285 [ -e "${x}" ] && mv -f "${x}" "${ROOT}etc/make.globals"
286 done
287
288 # Compile all source files recursively. Any orphans
289 # will be identified and removed in postrm.
290 compile_all_python_bytecodes "${ROOT}usr/$(get_libdir)/portage/pym"
291
292 elog
293 elog "FEATURES=\"userfetch\" is now enabled by default. Depending on your \${DISTDIR}"
294 elog "permissions, this may result in Permission Denied errors. If you would like"
295 elog "to fetch with superuser privileges, add FEATURES=\"-userfetch\" to make.conf."
296 elog
297 elog "The world file now supports slot atoms such as 'sys-devel/gcc:3.4'. In some"
298 elog "cases, emerge --depclean may remove slots that it would not have removed"
299 elog "in the past. The emerge --noreplace command can be used to add an atom to"
300 elog "the world file and prevent matching packages from being removed. A slot"
301 elog "atom will be recorded in the world file for any atom that is precise enough"
302 elog "to identify a specific slot."
303
304 portage_docs
305 }
306
307 pkg_postrm() {
308 remove_orphan_python_bytecodes "${ROOT}usr/$(get_libdir)/portage/pym"
309 }
310
311 compile_all_python_bytecodes() {
312 python -c "from compileall import compile_dir; compile_dir('${1}', quiet=True)"
313 python -O -c "from compileall import compile_dir; compile_dir('${1}', quiet=True)"
314 }
315
316 remove_orphan_python_bytecodes() {
317 [[ -d ${1} ]] || return
318 find "${1}" -name '*.py[co]' -print0 | \
319 while read -d $'\0' f ; do
320 src_py=${f%[co]}
321 [[ -f ${src_py} ]] && continue
322 rm -f "${src_py}"[co]
323 done
324 }
325
326
327
328 --
329 gentoo-commits@g.o mailing list