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