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