1 |
zmedico 07/12/30 17:25:47 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: portage-2.1.4_rc12.ebuild |
5 |
Removed: portage-2.1.4_rc9.ebuild portage-2.1.4_rc10.ebuild |
6 |
Log: |
7 |
The 2.1.4_rc12 release fixes bugs #121584, #201498, #202697, |
8 |
bugs fixed since 2.1.3.x. |
9 |
|
10 |
Remove old 2.1.4_rc ebuilds. |
11 |
(Portage version: 2.1.4_rc12) |
12 |
|
13 |
Revision Changes Path |
14 |
1.485 sys-apps/portage/ChangeLog |
15 |
|
16 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.485&view=markup |
17 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.485&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.484&r2=1.485 |
19 |
|
20 |
Index: ChangeLog |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v |
23 |
retrieving revision 1.484 |
24 |
retrieving revision 1.485 |
25 |
diff -u -r1.484 -r1.485 |
26 |
--- ChangeLog 21 Dec 2007 04:48:12 -0000 1.484 |
27 |
+++ ChangeLog 30 Dec 2007 17:25:46 -0000 1.485 |
28 |
@@ -1,6 +1,13 @@ |
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.484 2007/12/21 04:48:12 zmedico Exp $ |
32 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.485 2007/12/30 17:25:46 zmedico Exp $ |
33 |
+ |
34 |
+*portage-2.1.4_rc12 (30 Dec 2007) |
35 |
+ |
36 |
+ 30 Dec 2007; Zac Medico <zmedico@g.o> +portage-2.1.4_rc12.ebuild: |
37 |
+ The 2.1.4_rc12 release fixes bugs #121584, #201498, #202697, |
38 |
+ #203090, #203239, #203323, and #203625. Bug #200044 tracks all |
39 |
+ bugs fixed since 2.1.3.x. |
40 |
|
41 |
*portage-2.1.4_rc11 (21 Dec 2007) |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
1.1 sys-apps/portage/portage-2.1.4_rc12.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.4_rc12.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.4_rc12.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: portage-2.1.4_rc12.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2007 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.4_rc12.ebuild,v 1.1 2007/12/30 17:25:46 zmedico Exp $ |
56 |
|
57 |
inherit toolchain-funcs eutils flag-o-matic multilib |
58 |
|
59 |
DESCRIPTION="The Portage Package Management System. The primary 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 |
DEPEND=">=dev-lang/python-2.4 |
67 |
!build? ( >=sys-apps/sed-4.0.5 ) |
68 |
doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
69 |
epydoc? ( >=dev-python/epydoc-2.0 )" |
70 |
RDEPEND=">=dev-lang/python-2.4 |
71 |
!build? ( >=sys-apps/sed-4.0.5 |
72 |
>=app-shells/bash-3.2_p17 ) |
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 |
doc? ( |
80 |
|| ( app-portage/eclass-manpages app-portage/portage-manpages ) |
81 |
) |
82 |
!build? ( |
83 |
>=net-misc/rsync-2.6.4 |
84 |
userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
85 |
|| ( >=dev-lang/python-2.5 >=dev-python/pycrypto-2.0.1-r6 ) |
86 |
)" |
87 |
# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
88 |
# rsync-2.6.4 rdep is for the --filter option #167668 |
89 |
SRC_ARCHIVES="http://dev.gentoo.org/~zmedico/portage/archives" |
90 |
|
91 |
PV_PL="2.1.2" |
92 |
PATCHVER_PL="" |
93 |
TARBALL_PV="2.1.3.16" |
94 |
SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
95 |
${SRC_ARCHIVES}/${PN}-${TARBALL_PV}.tar.bz2 |
96 |
linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2 |
97 |
${SRC_ARCHIVES}/${PN}-man-pl-${PV_PL}.tar.bz2 )" |
98 |
|
99 |
PATCHVER=${PV} |
100 |
if [ -n "${PATCHVER}" ]; then |
101 |
SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PATCHVER}.patch.bz2 |
102 |
${SRC_ARCHIVES}/${PN}-${PATCHVER}.patch.bz2" |
103 |
fi |
104 |
|
105 |
if [ -n "${PATCHVER_PL}" ]; then |
106 |
SRC_URI="${SRC_URI} linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch.bz2 |
107 |
${SRC_ARCHIVES}/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch.bz2 )" |
108 |
fi |
109 |
|
110 |
S="${WORKDIR}"/${PN}-${TARBALL_PV} |
111 |
S_PL="${WORKDIR}"/${PN}-${PV_PL} |
112 |
|
113 |
portage_docs() { |
114 |
elog "" |
115 |
elog "For help with using portage please consult the Gentoo Handbook" |
116 |
elog "at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3" |
117 |
elog "" |
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.py || \ |
129 |
die "Failed to patch portage.VERSION" |
130 |
eend 0 |
131 |
if [ -n "${PATCHVER_PL}" ]; then |
132 |
use linguas_pl && \ |
133 |
epatch "${WORKDIR}/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch" |
134 |
fi |
135 |
} |
136 |
|
137 |
src_compile() { |
138 |
append-lfs-flags |
139 |
|
140 |
cd "${S}"/src |
141 |
$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o tbz2tool tbz2tool.c || \ |
142 |
die "Failed to build tbz2tool" |
143 |
|
144 |
if use doc; then |
145 |
cd "${S}"/doc |
146 |
touch fragment/date |
147 |
sed -i "s/svn-trunk/${PVR}/" fragment/version |
148 |
make xhtml xhtml-nochunks || die "failed to make docs" |
149 |
fi |
150 |
|
151 |
if use epydoc; then |
152 |
einfo "Generating api docs" |
153 |
mkdir "${WORKDIR}"/api |
154 |
local my_modules |
155 |
my_modules="$(find "${S}/pym" -name "*.py" \ |
156 |
| sed -e 's:/__init__.py$::' -e 's:\.py$::' -e "s:^${S}/pym/::" \ |
157 |
-e 's:/:.:g')" || die "error listing modules" |
158 |
PYTHONPATH="${S}/pym:${PYTHONPATH}" epydoc -o "${WORKDIR}"/api \ |
159 |
-qqqqq --ignore-param-mismatch --no-frames --show-imports \ |
160 |
--name "${PN}" --url "${HOMEPAGE}" \ |
161 |
${my_modules} || die "epydoc failed" |
162 |
fi |
163 |
} |
164 |
|
165 |
src_test() { |
166 |
./tests/runTests || \ |
167 |
die "test(s) failed" |
168 |
} |
169 |
|
170 |
src_install() { |
171 |
local libdir=$(get_libdir) |
172 |
local portage_base="/usr/${libdir}/portage" |
173 |
cd "${S}"/cnf |
174 |
insinto /etc |
175 |
doins etc-update.conf dispatch-conf.conf make.globals |
176 |
if [ -f "make.conf.${ARCH}".diff ]; then |
177 |
patch make.conf "make.conf.${ARCH}".diff || \ |
178 |
die "Failed to patch make.conf.example" |
179 |
newins make.conf make.conf.example |
180 |
else |
181 |
eerror "" |
182 |
eerror "Portage does not have an arch-specific configuration for this arch." |
183 |
eerror "Please notify the arch maintainer about this issue. Using generic." |
184 |
eerror "" |
185 |
newins make.conf make.conf.example |
186 |
fi |
187 |
|
188 |
insinto /etc/logrotate.d |
189 |
doins "${S}"/cnf/logrotate.d/elog-save-summary |
190 |
|
191 |
dodir ${portage_base}/bin |
192 |
exeinto ${portage_base}/bin |
193 |
# BSD and OSX need a sed wrapper so that find/xargs work properly |
194 |
if use userland_GNU; then |
195 |
rm "${S}"/bin/sed || die "Failed to remove sed wrapper" |
196 |
else |
197 |
local x |
198 |
for x in awk make patch ; do |
199 |
# these wrappers will be preferred in $PATH |
200 |
# and they do foo -> gfoo translation |
201 |
dosym sed "${portage_base}/bin/${x}" |
202 |
done |
203 |
fi |
204 |
cd "${S}"/bin |
205 |
doexe * |
206 |
doexe "${S}"/src/tbz2tool |
207 |
dosym newins ${portage_base}/bin/donewins |
208 |
|
209 |
local mydir |
210 |
for mydir in pym pym/cache pym/elog_modules; do |
211 |
dodir ${portage_base}/${mydir} |
212 |
insinto ${portage_base}/${mydir} |
213 |
cd "${S}"/${mydir} |
214 |
doins *.py |
215 |
done |
216 |
|
217 |
doman "${S}"/man/*.[0-9] |
218 |
if use linguas_pl; then |
219 |
doman -i18n=pl "${S_PL}"/man/pl/*.[0-9] |
220 |
doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9] |
221 |
fi |
222 |
dodoc "${S}"/ChangeLog |
223 |
dodoc "${S}"/NEWS |
224 |
dodoc "${S}"/RELEASE-NOTES |
225 |
use doc && dohtml "${S}"/doc/*.html |
226 |
use epydoc && dohtml -r "${WORKDIR}"/api |
227 |
|
228 |
dodir /usr/bin |
229 |
local x |
230 |
for x in ebuild emerge portageq repoman tbz2tool xpak; do |
231 |
dosym ../${libdir}/portage/bin/${x} /usr/bin/${x} |
232 |
done |
233 |
|
234 |
dodir /usr/sbin |
235 |
local my_syms="archive-conf |
236 |
dispatch-conf |
237 |
emaint |
238 |
emerge-webrsync |
239 |
env-update |
240 |
etc-update |
241 |
fixpackages |
242 |
quickpkg |
243 |
regenworld" |
244 |
local x |
245 |
for x in ${my_syms}; do |
246 |
dosym ../${libdir}/portage/bin/${x} /usr/sbin/${x} |
247 |
done |
248 |
dosym env-update /usr/sbin/update-env |
249 |
dosym etc-update /usr/sbin/update-etc |
250 |
|
251 |
dodir /etc/portage |
252 |
keepdir /etc/portage |
253 |
|
254 |
echo PYTHONPATH=\"${portage_base}/pym\" > "${WORKDIR}"/05portage.envd |
255 |
doenvd "${WORKDIR}"/05portage.envd |
256 |
} |
257 |
|
258 |
pkg_preinst() { |
259 |
if ! use build && ! has_version dev-python/pycrypto && \ |
260 |
has_version '>=dev-lang/python-2.5' ; then |
261 |
if ! built_with_use '>=dev-lang/python-2.5' ssl ; then |
262 |
echo "If you are a Gentoo developer and you plan to" \ |
263 |
"commit ebuilds with this system then please install" \ |
264 |
"pycrypto or enable python's ssl USE flag in order" \ |
265 |
"to enable RMD160 hash support. See bug #198398 for" \ |
266 |
"more information." | \ |
267 |
fmt -w 70 | while read line ; do ewarn "${line}" ; done |
268 |
fi |
269 |
fi |
270 |
local portage_base="/usr/$(get_libdir)/portage" |
271 |
if has livecvsportage ${FEATURES} && [ "${ROOT}" = "/" ]; then |
272 |
rm -rf "${D}"/${portage_base}/pym/* |
273 |
mv "${D}"/${portage_base}/bin/tbz2tool "${T}" |
274 |
rm -rf "${D}"/${portage_base}/bin/* |
275 |
mv "${T}"/tbz2tool "${D}"/${portage_base}/bin/ |
276 |
fi |
277 |
} |
278 |
|
279 |
pkg_postinst() { |
280 |
local x |
281 |
|
282 |
if [ ! -f "${ROOT}/var/lib/portage/world" ] && |
283 |
[ -f "${ROOT}"/var/cache/edb/world ] && |
284 |
[ ! -h "${ROOT}"/var/cache/edb/world ]; then |
285 |
mv "${ROOT}"/var/cache/edb/world "${ROOT}"/var/lib/portage/world |
286 |
ln -s ../../lib/portage/world /var/cache/edb/world |
287 |
fi |
288 |
|
289 |
for x in "${ROOT}"/etc/._cfg????_make.globals; do |
290 |
# Overwrite the globals file automatically. |
291 |
[ -e "${x}" ] && mv -f "${x}" "${ROOT}etc/make.globals" |
292 |
done |
293 |
|
294 |
# Compile all source files recursively. Any orphans |
295 |
# will be identified and removed in postrm. |
296 |
compile_all_python_bytecodes "${ROOT}usr/$(get_libdir)/portage/pym" |
297 |
|
298 |
portage_docs |
299 |
} |
300 |
|
301 |
pkg_postrm() { |
302 |
remove_orphan_python_bytecodes "${ROOT}usr/$(get_libdir)/portage/pym" |
303 |
} |
304 |
|
305 |
compile_all_python_bytecodes() { |
306 |
python -c "from compileall import compile_dir; compile_dir('${1}', quiet=True)" |
307 |
python -O -c "from compileall import compile_dir; compile_dir('${1}', quiet=True)" |
308 |
} |
309 |
|
310 |
remove_orphan_python_bytecodes() { |
311 |
[[ -d ${1} ]] || return |
312 |
find "${1}" -name '*.py[co]' -print0 | \ |
313 |
while read -d $'\0' f ; do |
314 |
src_py=${f%[co]} |
315 |
[[ -f ${src_py} ]] && continue |
316 |
rm -f "${src_py}"[co] |
317 |
done |
318 |
} |
319 |
|
320 |
|
321 |
|
322 |
-- |
323 |
gentoo-commits@g.o mailing list |