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