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