1 |
zmedico 07/11/23 12:08:21 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: portage-2.1.4_rc2.ebuild |
5 |
Removed: portage-2.1.4_rc1.ebuild |
6 |
Log: |
7 |
2.1.4_rc2 bump. This version makes the bashrc behavior in the ebuild |
8 |
environment more compatible with older versions of portage. Now the |
9 |
full environment will be available to the bashrc like it used to be, |
10 |
which solves an issue with grep hanging indefinitely in |
11 |
default-bsd/profile.bashrc. |
12 |
(Portage version: 2.1.4_rc2) |
13 |
|
14 |
Revision Changes Path |
15 |
1.473 sys-apps/portage/ChangeLog |
16 |
|
17 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.473&view=markup |
18 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.473&content-type=text/plain |
19 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.472&r2=1.473 |
20 |
|
21 |
Index: ChangeLog |
22 |
=================================================================== |
23 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v |
24 |
retrieving revision 1.472 |
25 |
retrieving revision 1.473 |
26 |
diff -u -r1.472 -r1.473 |
27 |
--- ChangeLog 23 Nov 2007 03:32:16 -0000 1.472 |
28 |
+++ ChangeLog 23 Nov 2007 12:08:20 -0000 1.473 |
29 |
@@ -1,6 +1,15 @@ |
30 |
# ChangeLog for sys-apps/portage |
31 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
32 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.472 2007/11/23 03:32:16 zmedico Exp $ |
33 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.473 2007/11/23 12:08:20 zmedico Exp $ |
34 |
+ |
35 |
+*portage-2.1.4_rc2 (23 Nov 2007) |
36 |
+ |
37 |
+ 23 Nov 2007; Zac Medico <zmedico@g.o> +portage-2.1.4_rc2.ebuild: |
38 |
+ 2.1.4_rc2 bump. This version makes the bashrc behavior in the ebuild |
39 |
+ environment more compatible with older versions of portage. Now the |
40 |
+ full environment will be available to the bashrc like it used to be, |
41 |
+ which solves an issue with grep hanging indefinitely in |
42 |
+ default-bsd/profile.bashrc. |
43 |
|
44 |
*portage-2.1.4_rc1 (23 Nov 2007) |
45 |
|
46 |
|
47 |
|
48 |
|
49 |
1.1 sys-apps/portage/portage-2.1.4_rc2.ebuild |
50 |
|
51 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.4_rc2.ebuild?rev=1.1&view=markup |
52 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.4_rc2.ebuild?rev=1.1&content-type=text/plain |
53 |
|
54 |
Index: portage-2.1.4_rc2.ebuild |
55 |
=================================================================== |
56 |
# Copyright 1999-2007 Gentoo Foundation |
57 |
# Distributed under the terms of the GNU General Public License v2 |
58 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.4_rc2.ebuild,v 1.1 2007/11/23 12:08:20 zmedico Exp $ |
59 |
|
60 |
inherit toolchain-funcs eutils flag-o-matic multilib |
61 |
|
62 |
DESCRIPTION="The Portage Package Management System. The primary package management and distribution system for Gentoo." |
63 |
HOMEPAGE="http://www.gentoo.org/proj/en/portage/index.xml" |
64 |
LICENSE="GPL-2" |
65 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
66 |
PROVIDE="virtual/portage" |
67 |
SLOT="0" |
68 |
IUSE="build doc epydoc selinux linguas_pl" |
69 |
DEPEND=">=dev-lang/python-2.4 |
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=">=dev-lang/python-2.4 |
74 |
!build? ( >=sys-apps/sed-4.0.5 |
75 |
>=app-shells/bash-3.2_p17 ) |
76 |
elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
77 |
elibc_glibc? ( >=sys-apps/sandbox-1.2.17 ) |
78 |
elibc_uclibc? ( >=sys-apps/sandbox-1.2.17 ) |
79 |
>=app-misc/pax-utils-0.1.13 |
80 |
selinux? ( >=dev-python/python-selinux-2.16 )" |
81 |
PDEPEND=" |
82 |
doc? ( |
83 |
|| ( app-portage/eclass-manpages app-portage/portage-manpages ) |
84 |
) |
85 |
!build? ( |
86 |
>=net-misc/rsync-2.6.4 |
87 |
userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
88 |
|| ( >=dev-lang/python-2.5 >=dev-python/pycrypto-2.0.1-r6 ) |
89 |
)" |
90 |
# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
91 |
# rsync-2.6.4 rdep is for the --filter option #167668 |
92 |
SRC_ARCHIVES="http://dev.gentoo.org/~zmedico/portage/archives" |
93 |
|
94 |
PV_PL="2.1.2" |
95 |
PATCHVER_PL="" |
96 |
TARBALL_PV="2.1.3.16" |
97 |
SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
98 |
${SRC_ARCHIVES}/${PN}-${TARBALL_PV}.tar.bz2 |
99 |
linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2 |
100 |
${SRC_ARCHIVES}/${PN}-man-pl-${PV_PL}.tar.bz2 )" |
101 |
|
102 |
PATCHVER=${PV} |
103 |
if [ -n "${PATCHVER}" ]; then |
104 |
SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PATCHVER}.patch.bz2 |
105 |
${SRC_ARCHIVES}/${PN}-${PATCHVER}.patch.bz2" |
106 |
fi |
107 |
|
108 |
if [ -n "${PATCHVER_PL}" ]; then |
109 |
SRC_URI="${SRC_URI} linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch.bz2 |
110 |
${SRC_ARCHIVES}/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch.bz2 )" |
111 |
fi |
112 |
|
113 |
S="${WORKDIR}"/${PN}-${TARBALL_PV} |
114 |
S_PL="${WORKDIR}"/${PN}-${PV_PL} |
115 |
|
116 |
portage_docs() { |
117 |
elog "" |
118 |
elog "For help with using portage please consult the Gentoo Handbook" |
119 |
elog "at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3" |
120 |
elog "" |
121 |
} |
122 |
|
123 |
src_unpack() { |
124 |
unpack ${A} |
125 |
cd "${S}" |
126 |
if [ -n "${PATCHVER}" ]; then |
127 |
cd "${S}" |
128 |
epatch "${WORKDIR}/${PN}-${PATCHVER}.patch" |
129 |
fi |
130 |
einfo "Setting portage.VERSION to ${PVR} ..." |
131 |
sed -i "s/^VERSION=.*/VERSION=\"${PVR}\"/" pym/portage.py || \ |
132 |
die "Failed to patch portage.VERSION" |
133 |
eend 0 |
134 |
if [ -n "${PATCHVER_PL}" ]; then |
135 |
use linguas_pl && \ |
136 |
epatch "${WORKDIR}/${PN}-man-pl-${PV_PL}${PATCHVER_PL}.patch" |
137 |
fi |
138 |
} |
139 |
|
140 |
src_compile() { |
141 |
append-lfs-flags |
142 |
|
143 |
cd "${S}"/src |
144 |
$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o tbz2tool tbz2tool.c || \ |
145 |
die "Failed to build tbz2tool" |
146 |
|
147 |
if use doc; then |
148 |
cd "${S}"/doc |
149 |
touch fragment/date |
150 |
sed -i "s/svn-trunk/${PVR}/" fragment/version |
151 |
make xhtml-nochunks || die "failed to make docs" |
152 |
fi |
153 |
|
154 |
if use epydoc; then |
155 |
einfo "Generating api docs" |
156 |
mkdir "${WORKDIR}"/api |
157 |
local my_modules |
158 |
my_modules="$(find "${S}/pym" -name "*.py" \ |
159 |
| sed -e 's:/__init__.py$::' -e 's:\.py$::' -e "s:^${S}/pym/::" \ |
160 |
-e 's:/:.:g')" || die "error listing modules" |
161 |
PYTHONPATH="${S}/pym:${PYTHONPATH}" epydoc -o "${WORKDIR}"/api \ |
162 |
-qqqqq --ignore-param-mismatch --no-frames --show-imports \ |
163 |
--name "${PN}" --url "${HOMEPAGE}" \ |
164 |
${my_modules} || die "epydoc failed" |
165 |
fi |
166 |
} |
167 |
|
168 |
src_test() { |
169 |
./tests/runTests || \ |
170 |
die "test(s) failed" |
171 |
} |
172 |
|
173 |
src_install() { |
174 |
local libdir=$(get_libdir) |
175 |
local portage_base="/usr/${libdir}/portage" |
176 |
cd "${S}"/cnf |
177 |
insinto /etc |
178 |
doins etc-update.conf dispatch-conf.conf make.globals |
179 |
if [ -f "make.conf.${ARCH}".diff ]; then |
180 |
patch make.conf "make.conf.${ARCH}".diff || \ |
181 |
die "Failed to patch make.conf.example" |
182 |
newins make.conf make.conf.example |
183 |
else |
184 |
eerror "" |
185 |
eerror "Portage does not have an arch-specific configuration for this arch." |
186 |
eerror "Please notify the arch maintainer about this issue. Using generic." |
187 |
eerror "" |
188 |
newins make.conf make.conf.example |
189 |
fi |
190 |
|
191 |
insinto /etc/logrotate.d |
192 |
doins "${S}"/cnf/logrotate.d/elog-save-summary |
193 |
|
194 |
dodir ${portage_base}/bin |
195 |
exeinto ${portage_base}/bin |
196 |
# BSD and OSX need a sed wrapper so that find/xargs work properly |
197 |
if use userland_GNU; then |
198 |
rm "${S}"/bin/sed || die "Failed to remove sed wrapper" |
199 |
fi |
200 |
cd "${S}"/bin |
201 |
doexe * |
202 |
doexe "${S}"/src/tbz2tool |
203 |
dosym newins ${portage_base}/bin/donewins |
204 |
|
205 |
local mydir |
206 |
for mydir in pym pym/cache pym/elog_modules; do |
207 |
dodir ${portage_base}/${mydir} |
208 |
insinto ${portage_base}/${mydir} |
209 |
cd "${S}"/${mydir} |
210 |
doins *.py |
211 |
done |
212 |
|
213 |
doman "${S}"/man/*.[0-9] |
214 |
if use linguas_pl; then |
215 |
doman -i18n=pl "${S_PL}"/man/pl/*.[0-9] |
216 |
doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9] |
217 |
fi |
218 |
dodoc "${S}"/ChangeLog |
219 |
dodoc "${S}"/NEWS |
220 |
dodoc "${S}"/RELEASE-NOTES |
221 |
use doc && dohtml "${S}"/doc/*.html |
222 |
use epydoc && dohtml -r "${WORKDIR}"/api |
223 |
|
224 |
dodir /usr/bin |
225 |
local x |
226 |
for x in ebuild emerge portageq repoman tbz2tool xpak; do |
227 |
dosym ../${libdir}/portage/bin/${x} /usr/bin/${x} |
228 |
done |
229 |
|
230 |
dodir /usr/sbin |
231 |
local my_syms="archive-conf |
232 |
dispatch-conf |
233 |
emaint |
234 |
emerge-webrsync |
235 |
env-update |
236 |
etc-update |
237 |
fixpackages |
238 |
quickpkg |
239 |
regenworld" |
240 |
local x |
241 |
for x in ${my_syms}; do |
242 |
dosym ../${libdir}/portage/bin/${x} /usr/sbin/${x} |
243 |
done |
244 |
dosym env-update /usr/sbin/update-env |
245 |
dosym etc-update /usr/sbin/update-etc |
246 |
|
247 |
dodir /etc/portage |
248 |
keepdir /etc/portage |
249 |
|
250 |
echo PYTHONPATH=\"${portage_base}/pym\" > "${WORKDIR}"/05portage.envd |
251 |
doenvd "${WORKDIR}"/05portage.envd |
252 |
} |
253 |
|
254 |
pkg_preinst() { |
255 |
if ! use build && ! has_version dev-python/pycrypto && \ |
256 |
has_version '>=dev-lang/python-2.5' ; then |
257 |
# Bug #198398 - Unless pycrypto is installed, we need |
258 |
# python's ssl flag enabled for RMD160 support. |
259 |
built_with_use '>=dev-lang/python-2.5' ssl |
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@g.o mailing list |