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.17.ebuild
Date: Sat, 03 Nov 2007 01:22:00
Message-Id: E1Io7hy-000309-VS@stork.gentoo.org
1 zmedico 07/11/03 01:21:54
2
3 Modified: ChangeLog
4 Added: portage-2.1.3.17.ebuild
5 Log:
6 02 Nov 2007; Zac Medico <zmedico@g.o> +portage-2.1.3.17.ebuild:
7 2.1.3.17 bump. This release includes a merge order optimization that
8 helps in cases where there are circular dependencies involving PDEPEND
9 that trigger built_with_use() failures during installation of binary
10 packages as reported in bug #189966.
11 (Portage version: 2.1.3.17)
12
13 Revision Changes Path
14 1.462 sys-apps/portage/ChangeLog
15
16 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.462&view=markup
17 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.462&content-type=text/plain
18 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.461&r2=1.462
19
20 Index: ChangeLog
21 ===================================================================
22 RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v
23 retrieving revision 1.461
24 retrieving revision 1.462
25 diff -u -r1.461 -r1.462
26 --- ChangeLog 28 Oct 2007 14:15:12 -0000 1.461
27 +++ ChangeLog 3 Nov 2007 01:21:54 -0000 1.462
28 @@ -1,6 +1,14 @@
29 # ChangeLog for sys-apps/portage
30 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
31 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.461 2007/10/28 14:15:12 corsair Exp $
32 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.462 2007/11/03 01:21:54 zmedico Exp $
33 +
34 +*portage-2.1.3.17 (02 Nov 2007)
35 +
36 + 02 Nov 2007; Zac Medico <zmedico@g.o> +portage-2.1.3.17.ebuild:
37 + 2.1.3.17 bump. This release includes a merge order optimization that
38 + helps in cases where there are circular dependencies involving PDEPEND
39 + that trigger built_with_use() failures during installation of binary
40 + packages as reported in bug #189966.
41
42 28 Oct 2007; Markus Rothe <corsair@g.o> portage-2.1.3.16.ebuild:
43 Stable on ppc64; bug #197165
44
45
46
47 1.1 sys-apps/portage/portage-2.1.3.17.ebuild
48
49 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.3.17.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.3.17.ebuild?rev=1.1&content-type=text/plain
51
52 Index: portage-2.1.3.17.ebuild
53 ===================================================================
54 # Copyright 1999-2007 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.3.17.ebuild,v 1.1 2007/11/03 01:21:54 zmedico Exp $
57
58 inherit toolchain-funcs eutils flag-o-matic multilib
59
60 DESCRIPTION="The Portage Package Management System. The primary package management and distribution system for Gentoo."
61 HOMEPAGE="http://www.gentoo.org/proj/en/portage/index.xml"
62 LICENSE="GPL-2"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
64 PROVIDE="virtual/portage"
65 SLOT="0"
66 # USE_EXPAND_HIDDEN hides ELIBC and USERLAND expansions from emerge output (see make.conf.5).
67 IUSE_ELIBC="elibc_glibc elibc_uclibc elibc_FreeBSD"
68 IUSE="build doc epydoc selinux linguas_pl userland_GNU ${IUSE_ELIBC}"
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 )
78 elibc_uclibc? ( >=sys-apps/sandbox-1.2.17 )
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.3.16"
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-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 --ignore-param-mismatch --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 for mydir in pym pym/cache pym/elog_modules; do
206 dodir ${portage_base}/${mydir}
207 insinto ${portage_base}/${mydir}
208 cd "${S}"/${mydir}
209 doins *.py
210 done
211
212 doman "${S}"/man/*.[0-9]
213 if use linguas_pl; then
214 doman -i18n=pl "${S_PL}"/man/pl/*.[0-9]
215 doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9]
216 fi
217 dodoc "${S}"/ChangeLog
218 dodoc "${S}"/NEWS
219 dodoc "${S}"/RELEASE-NOTES
220 use doc && dohtml "${S}"/doc/*.html
221 use epydoc && dohtml -r "${WORKDIR}"/api
222
223 dodir /usr/bin
224 for x in ebuild emerge portageq repoman tbz2tool xpak; do
225 dosym ../${libdir}/portage/bin/${x} /usr/bin/${x}
226 done
227
228 dodir /usr/sbin
229 local my_syms="archive-conf
230 dispatch-conf
231 emaint
232 emerge-webrsync
233 env-update
234 etc-update
235 fixpackages
236 quickpkg
237 regenworld"
238 local x
239 for x in ${my_syms}; do
240 dosym ../${libdir}/portage/bin/${x} /usr/sbin/${x}
241 done
242 dosym env-update /usr/sbin/update-env
243 dosym etc-update /usr/sbin/update-etc
244
245 dodir /etc/portage
246 keepdir /etc/portage
247
248 echo PYTHONPATH=\"${portage_base}/pym\" > "${WORKDIR}"/05portage.envd
249 doenvd "${WORKDIR}"/05portage.envd
250 }
251
252 pkg_preinst() {
253 local portage_base="/usr/$(get_libdir)/portage"
254 if has livecvsportage ${FEATURES} && [ "${ROOT}" = "/" ]; then
255 rm -rf "${D}"/${portage_base}/pym/*
256 mv "${D}"/${portage_base}/bin/tbz2tool "${T}"
257 rm -rf "${D}"/${portage_base}/bin/*
258 mv "${T}"/tbz2tool "${D}"/${portage_base}/bin/
259 fi
260 }
261
262 pkg_postinst() {
263 local x
264
265 if [ ! -f "${ROOT}/var/lib/portage/world" ] &&
266 [ -f "${ROOT}"/var/cache/edb/world ] &&
267 [ ! -h "${ROOT}"/var/cache/edb/world ]; then
268 mv "${ROOT}"/var/cache/edb/world "${ROOT}"/var/lib/portage/world
269 ln -s ../../lib/portage/world /var/cache/edb/world
270 fi
271
272 for x in "${ROOT}"/etc/._cfg????_make.globals; do
273 # Overwrite the globals file automatically.
274 [ -e "${x}" ] && mv -f "${x}" "${ROOT}etc/make.globals"
275 done
276
277 # Compile all source files recursively. Any orphans
278 # will be identified and removed in postrm.
279 compile_all_python_bytecodes "${ROOT}usr/$(get_libdir)/portage/pym"
280
281 elog
282 elog "FEATURES=\"userfetch\" is now enabled by default. Depending on your \${DISTDIR}"
283 elog "permissions, this may result in Permission Denied errors. If you would like"
284 elog "to fetch with superuser privileges, add FEATURES=\"-userfetch\" to make.conf."
285 elog
286 elog "The world file now supports slot atoms such as 'sys-devel/gcc:3.4'. In some"
287 elog "cases, emerge --depclean may remove slots that it would not have removed"
288 elog "in the past. The emerge --noreplace command can be used to add an atom to"
289 elog "the world file and prevent matching packages from being removed. A slot"
290 elog "atom will be recorded in the world file for any atom that is precise enough"
291 elog "to identify a specific slot."
292
293 portage_docs
294 }
295
296 pkg_postrm() {
297 remove_orphan_python_bytecodes "${ROOT}usr/$(get_libdir)/portage/pym"
298 }
299
300 compile_all_python_bytecodes() {
301 python -c "from compileall import compile_dir; compile_dir('${1}', quiet=True)"
302 python -O -c "from compileall import compile_dir; compile_dir('${1}', quiet=True)"
303 }
304
305 remove_orphan_python_bytecodes() {
306 [[ -d ${1} ]] || return
307 find "${1}" -name '*.py[co]' -print0 | \
308 while read -d $'\0' f ; do
309 src_py=${f%[co]}
310 [[ -f ${src_py} ]] && continue
311 rm -f "${src_py}"[co]
312 done
313 }
314
315
316
317 --
318 gentoo-commits@g.o mailing list