1 |
zmedico 09/03/23 07:16:18 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: portage-2.1.6.10.ebuild |
5 |
Log: |
6 |
2.1.6.10 bump. This fixes bug #263081 (UnicodeDecodeError when using the |
7 |
sqlite cache backend). A regression which causes emerge to reject file |
8 |
path arguments is also fixed. Bug #261959 tracks all bugs fixed since |
9 |
2.1.6.7. |
10 |
(Portage version: 2.1.6.10/cvs/Linux i686) |
11 |
|
12 |
Revision Changes Path |
13 |
1.588 sys-apps/portage/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.588&view=markup |
16 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.588&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.587&r2=1.588 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v |
22 |
retrieving revision 1.587 |
23 |
retrieving revision 1.588 |
24 |
diff -u -r1.587 -r1.588 |
25 |
--- ChangeLog 17 Mar 2009 20:33:52 -0000 1.587 |
26 |
+++ ChangeLog 23 Mar 2009 07:16:18 -0000 1.588 |
27 |
@@ -1,6 +1,14 @@ |
28 |
# ChangeLog for sys-apps/portage |
29 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.587 2009/03/17 20:33:52 zmedico Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.588 2009/03/23 07:16:18 zmedico Exp $ |
32 |
+ |
33 |
+*portage-2.1.6.10 (23 Mar 2009) |
34 |
+ |
35 |
+ 23 Mar 2009; Zac Medico <zmedico@g.o> +portage-2.1.6.10.ebuild: |
36 |
+ 2.1.6.10 bump. This fixes bug #263081 (UnicodeDecodeError when using the |
37 |
+ sqlite cache backend). A regression which causes emerge to reject file |
38 |
+ path arguments is also fixed. Bug #261959 tracks all bugs fixed since |
39 |
+ 2.1.6.7. |
40 |
|
41 |
*portage-2.2_rc26 (17 Mar 2009) |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
1.1 sys-apps/portage/portage-2.1.6.10.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.6.10.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.6.10.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: portage-2.1.6.10.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2009 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.6.10.ebuild,v 1.1 2009/03/23 07:16:18 zmedico Exp $ |
56 |
|
57 |
inherit eutils multilib python |
58 |
|
59 |
DESCRIPTION="Portage is the 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 |
|
67 |
python_dep=">=dev-lang/python-2.4" |
68 |
|
69 |
DEPEND="${python_dep} |
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="${python_dep} |
74 |
!build? ( >=sys-apps/sed-4.0.5 |
75 |
>=app-shells/bash-3.2_p17 |
76 |
>=app-admin/eselect-news-20071201 ) |
77 |
elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
78 |
elibc_glibc? ( >=sys-apps/sandbox-1.2.17 !mips? ( >=sys-apps/sandbox-1.2.18.1-r2 ) ) |
79 |
elibc_uclibc? ( >=sys-apps/sandbox-1.2.17 !mips? ( >=sys-apps/sandbox-1.2.18.1-r2 ) ) |
80 |
>=app-misc/pax-utils-0.1.17 |
81 |
selinux? ( >=dev-python/python-selinux-2.16 )" |
82 |
PDEPEND=" |
83 |
!build? ( |
84 |
>=net-misc/rsync-2.6.4 |
85 |
userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
86 |
|| ( >=dev-lang/python-2.5 >=dev-python/pycrypto-2.0.1-r6 ) |
87 |
)" |
88 |
# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
89 |
# rsync-2.6.4 rdep is for the --filter option #167668 |
90 |
|
91 |
SRC_ARCHIVES="http://dev.gentoo.org/~zmedico/portage/archives" |
92 |
|
93 |
prefix_src_archives() { |
94 |
local x y |
95 |
for x in ${@}; do |
96 |
for y in ${SRC_ARCHIVES}; do |
97 |
echo ${y}/${x} |
98 |
done |
99 |
done |
100 |
} |
101 |
|
102 |
PV_PL="2.1.2" |
103 |
PATCHVER_PL="" |
104 |
TARBALL_PV=2.1.6 |
105 |
SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
106 |
$(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2) |
107 |
linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2 |
108 |
$(prefix_src_archives ${PN}-man-pl-${PV_PL}.tar.bz2) )" |
109 |
|
110 |
PATCHVER=$PV |
111 |
if [ -n "${PATCHVER}" ]; then |
112 |
SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PATCHVER}.patch.bz2 |
113 |
$(prefix_src_archives ${PN}-${PATCHVER}.patch.bz2)" |
114 |
fi |
115 |
|
116 |
S="${WORKDIR}"/${PN}-${TARBALL_PV} |
117 |
S_PL="${WORKDIR}"/${PN}-${PV_PL} |
118 |
|
119 |
src_unpack() { |
120 |
unpack ${A} |
121 |
cd "${S}" |
122 |
if [ -n "${PATCHVER}" ]; then |
123 |
cd "${S}" |
124 |
epatch "${WORKDIR}/${PN}-${PATCHVER}.patch" |
125 |
fi |
126 |
einfo "Setting portage.VERSION to ${PVR} ..." |
127 |
sed -i "s/^VERSION=.*/VERSION=\"${PVR}\"/" pym/portage/__init__.py || \ |
128 |
die "Failed to patch portage.VERSION" |
129 |
} |
130 |
|
131 |
src_compile() { |
132 |
|
133 |
if use doc; then |
134 |
cd "${S}"/doc |
135 |
touch fragment/date |
136 |
make xhtml xhtml-nochunks || die "failed to make docs" |
137 |
fi |
138 |
|
139 |
if use epydoc; then |
140 |
einfo "Generating api docs" |
141 |
mkdir "${WORKDIR}"/api |
142 |
local my_modules epydoc_opts="" |
143 |
# A name collision between the portage.dbapi class and the |
144 |
# module with the same name triggers an epydoc crash unless |
145 |
# portage.dbapi is excluded from introspection. |
146 |
ROOT=/ has_version '>=dev-python/epydoc-3_pre0' && \ |
147 |
epydoc_opts='--exclude-introspect portage\.dbapi' |
148 |
my_modules="$(find "${S}/pym" -name "*.py" \ |
149 |
| sed -e 's:/__init__.py$::' -e 's:\.py$::' -e "s:^${S}/pym/::" \ |
150 |
-e 's:/:.:g' | sort)" || die "error listing modules" |
151 |
PYTHONPATH="${S}/pym:${PYTHONPATH}" epydoc -o "${WORKDIR}"/api \ |
152 |
-qqqqq --no-frames --show-imports $epydoc_opts \ |
153 |
--name "${PN}" --url "${HOMEPAGE}" \ |
154 |
${my_modules} || die "epydoc failed" |
155 |
fi |
156 |
} |
157 |
|
158 |
src_test() { |
159 |
./pym/portage/tests/runTests || \ |
160 |
die "test(s) failed" |
161 |
} |
162 |
|
163 |
src_install() { |
164 |
local libdir=$(get_libdir) |
165 |
local portage_base="/usr/${libdir}/portage" |
166 |
local portage_share_config=/usr/share/portage/config |
167 |
|
168 |
cd "${S}"/cnf |
169 |
insinto /etc |
170 |
doins etc-update.conf dispatch-conf.conf |
171 |
|
172 |
dodir "${portage_share_config}" |
173 |
insinto "${portage_share_config}" |
174 |
doins "${S}/cnf/"make.globals |
175 |
if [ -f "make.conf.${ARCH}".diff ]; then |
176 |
patch make.conf "make.conf.${ARCH}".diff || \ |
177 |
die "Failed to patch make.conf.example" |
178 |
newins make.conf make.conf.example |
179 |
else |
180 |
eerror "" |
181 |
eerror "Portage does not have an arch-specific configuration for this arch." |
182 |
eerror "Please notify the arch maintainer about this issue. Using generic." |
183 |
eerror "" |
184 |
newins make.conf make.conf.example |
185 |
fi |
186 |
|
187 |
dosym ..${portage_share_config}/make.globals /etc/make.globals |
188 |
|
189 |
insinto /etc/logrotate.d |
190 |
doins "${S}"/cnf/logrotate.d/elog-save-summary |
191 |
|
192 |
dodir ${portage_base}/bin |
193 |
exeinto ${portage_base}/bin |
194 |
|
195 |
# BSD and OSX need a sed wrapper so that find/xargs work properly |
196 |
if use userland_GNU; then |
197 |
rm "${S}"/bin/ebuild-helpers/sed || die "Failed to remove sed wrapper" |
198 |
fi |
199 |
|
200 |
cd "${S}"/bin || die "cd failed" |
201 |
doexe $(find . -maxdepth 1 -type f) || die "doexe failed" |
202 |
|
203 |
local symlinks |
204 |
dodir ${portage_base}/bin/ebuild-helpers || die "dodir failed" |
205 |
exeinto ${portage_base}/bin/ebuild-helpers || die "exeinto failed" |
206 |
cd "${S}"/bin/ebuild-helpers || die "cd failed" |
207 |
doexe $(find . -type f ! -type l) || die "doexe failed" |
208 |
symlinks=$(find . -type l) |
209 |
if [ -n "$symlinks" ] ; then |
210 |
cp -P $symlinks "${D}${portage_base}/bin/ebuild-helpers/" || \ |
211 |
die "cp failed" |
212 |
fi |
213 |
|
214 |
# These symlinks will be included in the next tarball. |
215 |
# Until then, create them manually. |
216 |
dosym ../portageq ${portage_base}/bin/ebuild-helpers/portageq || \ |
217 |
die "dosym failed" |
218 |
local x |
219 |
for x in eerror einfo ewarn eqawarn ; do |
220 |
dosym elog ${portage_base}/bin/ebuild-helpers/$x || die "dosym failed" |
221 |
done |
222 |
|
223 |
for mydir in $(find "${S}"/pym -type d | sed -e "s:^${S}/::") ; do |
224 |
dodir ${portage_base}/${mydir} |
225 |
insinto ${portage_base}/${mydir} |
226 |
cd "${S}"/${mydir} |
227 |
doins *.py |
228 |
symlinks=$(find . -mindepth 1 -maxdepth 1 -type l) |
229 |
[ -n "${symlinks}" ] && cp -P ${symlinks} "${D}${portage_base}/${mydir}" |
230 |
done |
231 |
|
232 |
# Symlinks to directories cause up/downgrade issues and the use of these |
233 |
# modules outside of portage is probably negligible. |
234 |
for x in "${D}${portage_base}/pym/"{cache,elog_modules} ; do |
235 |
[ ! -L "${x}" ] && continue |
236 |
die "symlink to directory will cause upgrade/downgrade issues: '${x}'" |
237 |
done |
238 |
|
239 |
exeinto ${portage_base}/pym/portage/tests |
240 |
doexe "${S}"/pym/portage/tests/runTests |
241 |
|
242 |
doman "${S}"/man/*.[0-9] |
243 |
if use linguas_pl; then |
244 |
doman -i18n=pl "${S_PL}"/man/pl/*.[0-9] |
245 |
doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9] |
246 |
fi |
247 |
|
248 |
dodoc "${S}"/{ChangeLog,NEWS,RELEASE-NOTES} |
249 |
use doc && dohtml -r "${S}"/doc/* |
250 |
use epydoc && dohtml -r "${WORKDIR}"/api |
251 |
|
252 |
dodir /usr/bin |
253 |
for x in ebuild emerge portageq repoman xpak; do |
254 |
dosym ../${libdir}/portage/bin/${x} /usr/bin/${x} |
255 |
done |
256 |
|
257 |
dodir /usr/sbin |
258 |
local my_syms="archive-conf |
259 |
dispatch-conf |
260 |
emaint |
261 |
emerge-webrsync |
262 |
env-update |
263 |
etc-update |
264 |
fixpackages |
265 |
quickpkg |
266 |
regenworld" |
267 |
local x |
268 |
for x in ${my_syms}; do |
269 |
dosym ../${libdir}/portage/bin/${x} /usr/sbin/${x} |
270 |
done |
271 |
dosym env-update /usr/sbin/update-env |
272 |
dosym etc-update /usr/sbin/update-etc |
273 |
|
274 |
dodir /etc/portage |
275 |
keepdir /etc/portage |
276 |
} |
277 |
|
278 |
pkg_preinst() { |
279 |
if ! use build && ! has_version dev-python/pycrypto && \ |
280 |
has_version '>=dev-lang/python-2.5' ; then |
281 |
if ! built_with_use '>=dev-lang/python-2.5' ssl ; then |
282 |
ewarn "If you are an ebuild developer and you plan to commit ebuilds" |
283 |
ewarn "with this system then please install dev-python/pycrypto or" |
284 |
ewarn "enable the ssl USE flag for >=dev-lang/python-2.5 in order" |
285 |
ewarn "to enable RMD160 hash support." |
286 |
ewarn "See bug #198398 for more information." |
287 |
fi |
288 |
fi |
289 |
if [ -f "${ROOT}/etc/make.globals" ]; then |
290 |
rm "${ROOT}/etc/make.globals" |
291 |
fi |
292 |
has_version ">=${CATEGORY}/${PN}-2.2_pre" |
293 |
DOWNGRADE_FROM_2_2=$? |
294 |
has_version "<${CATEGORY}/${PN}-2.1.6_pre" |
295 |
UPGRADE_FROM_2_1=$? |
296 |
} |
297 |
|
298 |
pkg_postinst() { |
299 |
# Compile all source files recursively. Any orphans |
300 |
# will be identified and removed in postrm. |
301 |
python_mod_optimize /usr/$(get_libdir)/portage/pym |
302 |
|
303 |
einfo |
304 |
einfo "For help with using portage please consult the Gentoo Handbook" |
305 |
einfo "at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3" |
306 |
einfo |
307 |
|
308 |
local warning_shown=0 |
309 |
if [ $DOWNGRADE_FROM_2_2 = 0 ] ; then |
310 |
ewarn |
311 |
echo "Since you have downgraded from portage-2.2, do not forget to" \ |
312 |
"use revdep-rebuild when appropriate, since the @preserved-rebuild" \ |
313 |
"package set is only supported with portage-2.2." | fmt -w 70 | \ |
314 |
while read ; do ewarn "$REPLY" ; done |
315 |
warning_shown=1 |
316 |
fi |
317 |
if [ $UPGRADE_FROM_2_1 = 0 ] ; then |
318 |
ewarn |
319 |
echo "In portage-2.1.6, the default behavior has changed for" \ |
320 |
"\`emerge world\` and \`emerge system\` commands. These commands" \ |
321 |
"will reinstall all packages from the given set unless an option" \ |
322 |
"such as --noreplace, --update, or --newuse is specified." \ |
323 |
| fmt -w 70 | while read ; do ewarn "$REPLY" ; done |
324 |
ewarn |
325 |
echo "File collision protection is now enabled by default via" \ |
326 |
"make.globals with FEATURES=protect-owned. If you want to" \ |
327 |
"disable collision protection completely (not recommended), then" \ |
328 |
"you need to ensure that neither protect-owned nor collision-protect" \ |
329 |
"are enabled." | fmt -w 70 | while read ; do ewarn "$REPLY" ; done |
330 |
ewarn |
331 |
echo "If you have overridden FETCHCOMMAND or RESUMECOMMAND variables," \ |
332 |
"for compatibility with EAPI 2, you must ensure that these variables" \ |
333 |
"are written such that the downloaded file will be placed at" \ |
334 |
"\"\${DISTDIR}/\${FILE}\". Refer to make.conf(5) for" \ |
335 |
"information about FETCHCOMMAND and RESUMECOMMAND." | \ |
336 |
fmt -w 70 | while read ; do ewarn "$REPLY" ; done |
337 |
warning_shown=1 |
338 |
fi |
339 |
if [ $warning_shown = 1 ] ; then |
340 |
ewarn # for symmetry |
341 |
fi |
342 |
} |
343 |
|
344 |
pkg_postrm() { |
345 |
python_mod_cleanup /usr/$(get_libdir)/portage/pym |
346 |
} |