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