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