Gentoo Archives: gentoo-commits

From: "Marius Mauch (genone)" <genone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/portage: ChangeLog portage-2.2_rc1.ebuild portage-2.2_pre8.ebuild portage-2.2_pre7-r1.ebuild
Date: Fri, 20 Jun 2008 07:15:05
Message-Id: E1K9apm-0008Ab-Q7@stork.gentoo.org
1 genone 08/06/20 07:14:58
2
3 Modified: ChangeLog
4 Added: portage-2.2_rc1.ebuild
5 Removed: portage-2.2_pre8.ebuild portage-2.2_pre7-r1.ebuild
6 Log:
7 First release candidate of portage-2.2
8 (Portage version: 2.2_rc1/cvs/Linux 2.6.24-gentoo-r1 x86_64)
9
10 Revision Changes Path
11 1.529 sys-apps/portage/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.529&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.529&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.528&r2=1.529
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v
20 retrieving revision 1.528
21 retrieving revision 1.529
22 diff -u -r1.528 -r1.529
23 --- ChangeLog 18 Jun 2008 00:11:04 -0000 1.528
24 +++ ChangeLog 20 Jun 2008 07:14:58 -0000 1.529
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-apps/portage
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.528 2008/06/18 00:11:04 zmedico Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.529 2008/06/20 07:14:58 genone Exp $
30 +
31 +*portage-2.2_rc1 (20 Jun 2008)
32 +
33 + 20 Jun 2008; Marius Mauch <genone@g.o> -portage-2.2_pre7-r1.ebuild,
34 + -portage-2.2_pre8.ebuild, +portage-2.2_rc1.ebuild:
35 + First release candidate of portage-2.2
36
37 *portage-2.1.5.6 (17 Jun 2008)
38
39
40
41
42 1.1 sys-apps/portage/portage-2.2_rc1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.2_rc1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.2_rc1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: portage-2.2_rc1.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.2_rc1.ebuild,v 1.1 2008/06/20 07:14:58 genone Exp $
52
53 inherit eutils multilib python
54
55 DESCRIPTION="Portage is the package management and distribution system for Gentoo"
56 HOMEPAGE="http://www.gentoo.org/proj/en/portage/index.xml"
57 LICENSE="GPL-2"
58 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
59 PROVIDE="virtual/portage"
60 SLOT="0"
61 IUSE="build doc epydoc selinux linguas_pl"
62
63 python_dep=">=dev-lang/python-2.4"
64
65 DEPEND="${python_dep}
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* )"
69 RDEPEND="${python_dep}
70 !build? ( >=sys-apps/sed-4.0.5
71 >=app-shells/bash-3.2_p17
72 >=app-admin/eselect-news-20071201 )
73 elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
74 elibc_glibc? ( >=sys-apps/sandbox-1.2.17 !mips? ( >=sys-apps/sandbox-1.2.18.1-r2 ) )
75 elibc_uclibc? ( >=sys-apps/sandbox-1.2.17 !mips? ( >=sys-apps/sandbox-1.2.18.1-r2 ) )
76 >=app-misc/pax-utils-0.1.13
77 selinux? ( >=dev-python/python-selinux-2.16 )"
78 PDEPEND="
79 !build? (
80 >=net-misc/rsync-2.6.4
81 userland_GNU? ( >=sys-apps/coreutils-6.4 )
82 || ( >=dev-lang/python-2.5 >=dev-python/pycrypto-2.0.1-r6 )
83 )"
84 # coreutils-6.4 rdep is for date format in emerge-webrsync #164532
85 # rsync-2.6.4 rdep is for the --filter option #167668
86
87 SRC_ARCHIVES="http://dev.gentoo.org/~zmedico/portage/archives http://dev.gentoo.org/~genone/distfiles"
88
89 prefix_src_archives() {
90 local x y
91 for x in ${@}; do
92 for y in ${SRC_ARCHIVES}; do
93 echo ${y}/${x}
94 done
95 done
96 }
97
98 PV_PL="2.1.2"
99 PATCHVER_PL=""
100 SRC_URI="mirror://gentoo/${P}.tar.bz2
101 $(prefix_src_archives ${P}.tar.bz2)
102 linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2
103 $(prefix_src_archives ${PN}-man-pl-${PV_PL}.tar.bz2) )"
104
105 PATCHVER=""
106 if [ -n "${PATCHVER}" ]; then
107 SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PATCHVER}.patch.bz2
108 $(prefix_src_archives ${PN}-${PATCHVER}.patch.bz2)"
109 fi
110
111 S="${WORKDIR}"/${P}
112 S_PL="${WORKDIR}"/${PN}-${PV_PL}
113
114 pkg_setup() {
115 MINOR_UPGRADE=$(has_version '>=sys-apps/portage-2.2_alpha' && echo true)
116 WORLD_MIGRATION_UPGRADE=$(has_version '<=sys-apps/portage-2.2_pre5' && echo true)
117 NEEDED_REBUILD_UPGRADE=$(has_version '<=sys-apps/portage-2.2_pre7' && echo true)
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/__init__.py || \
129 die "Failed to patch portage.VERSION"
130 }
131
132 src_compile() {
133
134 if use doc; then
135 cd "${S}"/doc
136 touch fragment/date
137 make xhtml xhtml-nochunks || die "failed to make docs"
138 fi
139
140 if use epydoc; then
141 einfo "Generating api docs"
142 mkdir "${WORKDIR}"/api
143 local my_modules
144 my_modules="$(find "${S}/pym" -name "*.py" \
145 | sed -e 's:/__init__.py$::' -e 's:\.py$::' -e "s:^${S}/pym/::" \
146 -e 's:/:.:g' | sort)" || die "error listing modules"
147 PYTHONPATH="${S}/pym:${PYTHONPATH}" epydoc -o "${WORKDIR}"/api \
148 -qqqqq --no-frames --show-imports \
149 --name "${PN}" --url "${HOMEPAGE}" \
150 ${my_modules} || die "epydoc failed"
151 fi
152 }
153
154 src_test() {
155 ./pym/portage/tests/runTests || \
156 die "test(s) failed"
157 }
158
159 src_install() {
160 local libdir=$(get_libdir)
161 local portage_base="/usr/${libdir}/portage"
162 local portage_share_config=/usr/share/portage/config
163
164 cd "${S}"/cnf
165 insinto /etc
166 doins etc-update.conf dispatch-conf.conf
167
168 dodir "${portage_share_config}"
169 insinto "${portage_share_config}"
170 doins "${S}/cnf/"{sets.conf,make.globals}
171 if [ -f "make.conf.${ARCH}".diff ]; then
172 patch make.conf "make.conf.${ARCH}".diff || \
173 die "Failed to patch make.conf.example"
174 newins make.conf make.conf.example
175 else
176 eerror ""
177 eerror "Portage does not have an arch-specific configuration for this arch."
178 eerror "Please notify the arch maintainer about this issue. Using generic."
179 eerror ""
180 newins make.conf make.conf.example
181 fi
182
183 dosym ..${portage_share_config}/make.globals /etc/make.globals
184
185 insinto /etc/logrotate.d
186 doins "${S}"/cnf/logrotate.d/elog-save-summary
187
188 dodir ${portage_base}/bin
189 exeinto ${portage_base}/bin
190
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 fi
195
196 cd "${S}"/bin
197 doexe *
198 dosym newins ${portage_base}/bin/donewins
199
200 local symlinks
201 for mydir in $(find "${S}"/pym -type d | sed -e "s:^${S}/::") ; do
202 dodir ${portage_base}/${mydir}
203 insinto ${portage_base}/${mydir}
204 cd "${S}"/${mydir}
205 doins *.py
206 symlinks=$(find -mindepth 1 -maxdepth 1 -type l)
207 [ -n "${symlinks}" ] && cp -P ${symlinks} "${D}${portage_base}/${mydir}"
208 done
209
210 # Symlinks to directories cause up/downgrade issues and the use of these
211 # modules outside of portage is probably negligible.
212 for x in "${D}${portage_base}/pym/"{cache,elog_modules} ; do
213 [ ! -L "${x}" ] && continue
214 die "symlink to directory will cause upgrade/downgrade issues: '${x}'"
215 done
216
217 exeinto ${portage_base}/pym/portage/tests
218 doexe "${S}"/pym/portage/tests/runTests
219
220 doman "${S}"/man/*.[0-9]
221 if use linguas_pl; then
222 doman -i18n=pl "${S_PL}"/man/pl/*.[0-9]
223 doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9]
224 fi
225
226 dodoc "${S}"/{ChangeLog,NEWS,RELEASE-NOTES}
227 use doc && dohtml -r "${S}"/doc/*
228 use epydoc && dohtml -r "${WORKDIR}"/api
229
230 dodir /usr/bin
231 for x in ebuild emerge portageq repoman xpak; do
232 dosym ../${libdir}/portage/bin/${x} /usr/bin/${x}
233 done
234
235 dodir /usr/sbin
236 local my_syms="archive-conf
237 dispatch-conf
238 emaint
239 emerge-webrsync
240 env-update
241 etc-update
242 fixpackages
243 quickpkg
244 regenworld"
245 local x
246 for x in ${my_syms}; do
247 dosym ../${libdir}/portage/bin/${x} /usr/sbin/${x}
248 done
249 dosym env-update /usr/sbin/update-env
250 dosym etc-update /usr/sbin/update-etc
251
252 dodir /etc/portage
253 keepdir /etc/portage
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 ewarn "If you are an ebuild developer and you plan to commit ebuilds"
261 ewarn "with this system then please install dev-python/pycrypto or"
262 ewarn "enable the ssl USE flag for >=dev-lang/python-2.5 in order"
263 ewarn "to enable RMD160 hash support."
264 ewarn "See bug #198398 for more information."
265 fi
266 fi
267 if [ -f "${ROOT}/etc/make.globals" ]; then
268 rm "${ROOT}/etc/make.globals"
269 fi
270 }
271
272 pkg_postinst() {
273 # Compile all source files recursively. Any orphans
274 # will be identified and removed in postrm.
275 python_mod_optimize /usr/$(get_libdir)/portage/pym
276
277 if [ -n "${WORLD_MIGRATION_UPGRADE}" ]; then
278 einfo "moving set references from the worldfile into world_sets"
279 cd "${ROOT}/var/lib/portage/"
280 grep "^@" world >> world_sets
281 sed -i -e '/^@/d' world
282 fi
283
284 if [ -n "${NEEDED_REBUILD_UPGRADE}" ]; then
285 einfo "rebuilding NEEDED.ELF.2 files"
286 for cpv in "${ROOT}/var/db/pkg"/*/*; do
287 if [ -f "${cpv}/NEEDED" ]; then
288 rm -f "${cpv}/NEEDED.ELF.2"
289 while read line; do
290 filename=${line% *}
291 needed=${line#* }
292 needed=${needed//+/++}
293 needed=${needed//#/##}
294 needed=${needed//%/%%}
295 newline=$(scanelf -BF "%a;%F;%S;%r;${needed}" $filename)
296 newline=${newline// - }
297 echo "${newline:3}" >> "${cpv}/NEEDED.ELF.2"
298 done < "${cpv}/NEEDED"
299 fi
300 done
301 fi
302
303 elog
304 elog "For help with using portage please consult the Gentoo Handbook"
305 elog "at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3"
306 elog
307
308 if [ -z "${MINOR_UPGRADE}" ]; then
309 elog "If you're upgrading from a pre-2.2 version of portage you might"
310 elog "want to remerge world (emerge -e world) to take full advantage"
311 elog "of some of the new features in 2.2."
312 elog "This is not required however for portage to function properly."
313 elog
314 fi
315
316 if [ -z "${PV/*_pre*}" ]; then
317 elog "If you always want to use the latest development version of portage"
318 elog "please read http://www.gentoo.org/proj/en/portage/doc/testing.xml"
319 elog
320 fi
321 }
322
323 pkg_postrm() {
324 python_mod_cleanup /usr/$(get_libdir)/portage/pym
325 }
326
327
328
329 --
330 gentoo-commits@l.g.o mailing list