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