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.16.ebuild portage-2.1.3.14.ebuild
Date: Tue, 23 Oct 2007 17:24:38
Message-Id: E1IkNUX-00065E-B9@stork.gentoo.org
1 zmedico 07/10/23 17:24:33
2
3 Modified: ChangeLog
4 Added: portage-2.1.3.16.ebuild
5 Removed: portage-2.1.3.14.ebuild
6 Log:
7 2.1.3.16 bump. This fixes bugs #196435, #196537, #196565, #196652, and
8 #196680. Bug #194041 tracks all bugs fixed since 2.1.3.9.
9 (Portage version: 2.1.3.16)
10
11 Revision Changes Path
12 1.453 sys-apps/portage/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.453&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.453&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.452&r2=1.453
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v
21 retrieving revision 1.452
22 retrieving revision 1.453
23 diff -u -r1.452 -r1.453
24 --- ChangeLog 18 Oct 2007 22:19:57 -0000 1.452
25 +++ ChangeLog 23 Oct 2007 17:24:32 -0000 1.453
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.452 2007/10/18 22:19:57 zmedico Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.453 2007/10/23 17:24:32 zmedico Exp $
31 +
32 +*portage-2.1.3.16 (23 Oct 2007)
33 +
34 + 23 Oct 2007; Zac Medico <zmedico@g.o> +portage-2.1.3.16.ebuild:
35 + 2.1.3.16 bump. This fixes bugs #196435, #196537, #196565, #196652, and
36 + #196680. Bug #194041 tracks all bugs fixed since 2.1.3.9.
37
38 *portage-2.1.3.15 (18 Oct 2007)
39
40
41
42
43 1.1 sys-apps/portage/portage-2.1.3.16.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.3.16.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.3.16.ebuild?rev=1.1&content-type=text/plain
47
48 Index: portage-2.1.3.16.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.3.16.ebuild,v 1.1 2007/10/23 17:24:32 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 # USE_EXPAND_HIDDEN hides ELIBC and USERLAND expansions from emerge output (see make.conf.5).
63 IUSE_ELIBC="elibc_glibc elibc_uclibc elibc_FreeBSD"
64 IUSE="build doc epydoc selinux linguas_pl userland_GNU ${IUSE_ELIBC}"
65 DEPEND=">=dev-lang/python-2.4
66 !build? ( >=sys-apps/sed-4.0.5 )
67 doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 )
68 epydoc? ( >=dev-python/epydoc-2.0 )"
69 RDEPEND=">=dev-lang/python-2.4
70 !build? ( >=sys-apps/sed-4.0.5
71 >=app-shells/bash-3.2_p17 )
72 elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
73 elibc_glibc? ( >=sys-apps/sandbox-1.2.17 )
74 elibc_uclibc? ( >=sys-apps/sandbox-1.2.17 )
75 >=app-misc/pax-utils-0.1.13
76 selinux? ( >=dev-python/python-selinux-2.16 )"
77 PDEPEND="
78 doc? (
79 || ( app-portage/eclass-manpages app-portage/portage-manpages )
80 )
81 !build? (
82 >=net-misc/rsync-2.6.4
83 userland_GNU? ( >=sys-apps/coreutils-6.4 )
84 || ( >=dev-lang/python-2.5 >=dev-python/pycrypto-2.0.1-r6 )
85 )"
86 # coreutils-6.4 rdep is for date format in emerge-webrsync #164532
87 # rsync-2.6.4 rdep is for the --filter option #167668
88 SRC_ARCHIVES="http://dev.gentoo.org/~zmedico/portage/archives"
89
90 PV_PL="2.1.2"
91 PATCHVER_PL=""
92 TARBALL_PV="${PV}"
93 SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2
94 ${SRC_ARCHIVES}/${PN}-${TARBALL_PV}.tar.bz2
95 linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2
96 ${SRC_ARCHIVES}/${PN}-man-pl-${PV_PL}.tar.bz2 )"
97
98 PATCHVER=""
99 if [ -n "${PATCHVER}" ]; then
100 SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PATCHVER}.patch.bz2
101 ${SRC_ARCHIVES}/${PN}-${PATCHVER}.patch.bz2"
102 fi
103
104 if [ -n "${PATCHVER_PL}" ]; then
105 SRC_URI="${SRC_URI} linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch.bz2
106 ${SRC_ARCHIVES}/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch.bz2 )"
107 fi
108
109 S="${WORKDIR}"/${PN}-${TARBALL_PV}
110 S_PL="${WORKDIR}"/${PN}-${PV_PL}
111
112 portage_docs() {
113 elog ""
114 elog "For help with using portage please consult the Gentoo Handbook"
115 elog "at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3"
116 elog ""
117 }
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.py || \
128 die "Failed to patch portage.VERSION"
129 eend 0
130 if [ -n "${PATCHVER_PL}" ]; then
131 use linguas_pl && \
132 epatch "${WORKDIR}/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch"
133 fi
134 }
135
136 src_compile() {
137 append-lfs-flags
138
139 cd "${S}"/src
140 $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o tbz2tool tbz2tool.c || \
141 die "Failed to build tbz2tool"
142
143 if use doc; then
144 cd "${S}"/doc
145 touch fragment/date
146 sed -i "s/svn-trunk/${PVR}/" fragment/version
147 make xhtml-nochunks || die "failed to make docs"
148 fi
149
150 if use epydoc; then
151 einfo "Generating api docs"
152 mkdir "${WORKDIR}"/api
153 local my_modules
154 my_modules="$(find "${S}/pym" -name "*.py" \
155 | sed -e 's:/__init__.py$::' -e 's:\.py$::' -e "s:^${S}/pym/::" \
156 -e 's:/:.:g')" || die "error listing modules"
157 PYTHONPATH="${S}/pym:${PYTHONPATH}" epydoc -o "${WORKDIR}"/api \
158 -qqqqq --ignore-param-mismatch --no-frames --show-imports \
159 --name "${PN}" --url "${HOMEPAGE}" \
160 ${my_modules} || die "epydoc failed"
161 fi
162 }
163
164 src_test() {
165 ./tests/runTests || \
166 die "test(s) failed"
167 }
168
169 src_install() {
170 local libdir=$(get_libdir)
171 local portage_base="/usr/${libdir}/portage"
172 cd "${S}"/cnf
173 insinto /etc
174 doins etc-update.conf dispatch-conf.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 insinto /etc/logrotate.d
188 doins "${S}"/cnf/logrotate.d/elog-save-summary
189
190 dodir ${portage_base}/bin
191 exeinto ${portage_base}/bin
192 # BSD and OSX need a sed wrapper so that find/xargs work properly
193 if use userland_GNU; then
194 rm "${S}"/bin/sed || die "Failed to remove sed wrapper"
195 fi
196 cd "${S}"/bin
197 doexe *
198 doexe "${S}"/src/tbz2tool
199 dosym newins ${portage_base}/bin/donewins
200
201 for mydir in pym pym/cache pym/elog_modules; do
202 dodir ${portage_base}/${mydir}
203 insinto ${portage_base}/${mydir}
204 cd "${S}"/${mydir}
205 doins *.py
206 done
207
208 doman "${S}"/man/*.[0-9]
209 if use linguas_pl; then
210 doman -i18n=pl "${S_PL}"/man/pl/*.[0-9]
211 doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9]
212 fi
213 dodoc "${S}"/ChangeLog
214 dodoc "${S}"/NEWS
215 dodoc "${S}"/RELEASE-NOTES
216 use doc && dohtml "${S}"/doc/*.html
217 use epydoc && dohtml -r "${WORKDIR}"/api
218
219 dodir /usr/bin
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 local portage_base="/usr/$(get_libdir)/portage"
250 if has livecvsportage ${FEATURES} && [ "${ROOT}" = "/" ]; then
251 rm -rf "${D}"/${portage_base}/pym/*
252 mv "${D}"/${portage_base}/bin/tbz2tool "${T}"
253 rm -rf "${D}"/${portage_base}/bin/*
254 mv "${T}"/tbz2tool "${D}"/${portage_base}/bin/
255 fi
256 }
257
258 pkg_postinst() {
259 local x
260
261 if [ ! -f "${ROOT}/var/lib/portage/world" ] &&
262 [ -f "${ROOT}"/var/cache/edb/world ] &&
263 [ ! -h "${ROOT}"/var/cache/edb/world ]; then
264 mv "${ROOT}"/var/cache/edb/world "${ROOT}"/var/lib/portage/world
265 ln -s ../../lib/portage/world /var/cache/edb/world
266 fi
267
268 for x in "${ROOT}"/etc/._cfg????_make.globals; do
269 # Overwrite the globals file automatically.
270 [ -e "${x}" ] && mv -f "${x}" "${ROOT}etc/make.globals"
271 done
272
273 # Compile all source files recursively. Any orphans
274 # will be identified and removed in postrm.
275 compile_all_python_bytecodes "${ROOT}usr/$(get_libdir)/portage/pym"
276
277 elog
278 elog "FEATURES=\"userfetch\" is now enabled by default. Depending on your \${DISTDIR}"
279 elog "permissions, this may result in Permission Denied errors. If you would like"
280 elog "to fetch with superuser privileges, add FEATURES=\"-userfetch\" to make.conf."
281 elog
282 elog "The world file now supports slot atoms such as 'sys-devel/gcc:3.4'. In some"
283 elog "cases, emerge --depclean may remove slots that it would not have removed"
284 elog "in the past. The emerge --noreplace command can be used to add an atom to"
285 elog "the world file and prevent matching packages from being removed. A slot"
286 elog "atom will be recorded in the world file for any atom that is precise enough"
287 elog "to identify a specific slot."
288
289 portage_docs
290 }
291
292 pkg_postrm() {
293 remove_orphan_python_bytecodes "${ROOT}usr/$(get_libdir)/portage/pym"
294 }
295
296 compile_all_python_bytecodes() {
297 python -c "from compileall import compile_dir; compile_dir('${1}', quiet=True)"
298 python -O -c "from compileall import compile_dir; compile_dir('${1}', quiet=True)"
299 }
300
301 remove_orphan_python_bytecodes() {
302 [[ -d ${1} ]] || return
303 find "${1}" -name '*.py[co]' -print0 | \
304 while read -d $'\0' f ; do
305 src_py=${f%[co]}
306 [[ -f ${src_py} ]] && continue
307 rm -f "${src_py}"[co]
308 done
309 }
310
311
312
313 --
314 gentoo-commits@g.o mailing list