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