1 |
zmedico 07/11/04 22:08:43 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: portage-2.1.3.18.ebuild |
5 |
Log: |
6 |
2.1.3.18 bump. This fixes bugs #197797, #197932, #197965, #197990, |
7 |
and #198062. Bug #198097 tracks all bugs fixed since 2.1.3.16. |
8 |
(Portage version: 2.1.3.18) |
9 |
|
10 |
Revision Changes Path |
11 |
1.463 sys-apps/portage/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.463&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?rev=1.463&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/ChangeLog?r1=1.462&r2=1.463 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v |
20 |
retrieving revision 1.462 |
21 |
retrieving revision 1.463 |
22 |
diff -u -r1.462 -r1.463 |
23 |
--- ChangeLog 3 Nov 2007 01:21:54 -0000 1.462 |
24 |
+++ ChangeLog 4 Nov 2007 22:08:42 -0000 1.463 |
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.462 2007/11/03 01:21:54 zmedico Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.463 2007/11/04 22:08:42 zmedico Exp $ |
30 |
+ |
31 |
+*portage-2.1.3.18 (04 Nov 2007) |
32 |
+ |
33 |
+ 04 Nov 2007; Zac Medico <zmedico@g.o> +portage-2.1.3.18.ebuild: |
34 |
+ 2.1.3.18 bump. This fixes bugs #197797, #197932, #197965, #197990, |
35 |
+ and #198062. Bug #198097 tracks all bugs fixed since 2.1.3.16. |
36 |
|
37 |
*portage-2.1.3.17 (02 Nov 2007) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-apps/portage/portage-2.1.3.18.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.3.18.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/portage/portage-2.1.3.18.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: portage-2.1.3.18.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.3.18.ebuild,v 1.1 2007/11/04 22:08:42 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 |
# USE_EXPAND_HIDDEN hides ELIBC and USERLAND expansions from emerge output (see make.conf.5). |
62 |
IUSE_ELIBC="elibc_glibc elibc_uclibc elibc_FreeBSD" |
63 |
IUSE="build doc epydoc selinux linguas_pl userland_GNU ${IUSE_ELIBC}" |
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 ) |
73 |
elibc_uclibc? ( >=sys-apps/sandbox-1.2.17 ) |
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.3.16" |
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=${PV} |
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-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 |
for mydir in pym pym/cache pym/elog_modules; do |
201 |
dodir ${portage_base}/${mydir} |
202 |
insinto ${portage_base}/${mydir} |
203 |
cd "${S}"/${mydir} |
204 |
doins *.py |
205 |
done |
206 |
|
207 |
doman "${S}"/man/*.[0-9] |
208 |
if use linguas_pl; then |
209 |
doman -i18n=pl "${S_PL}"/man/pl/*.[0-9] |
210 |
doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9] |
211 |
fi |
212 |
dodoc "${S}"/ChangeLog |
213 |
dodoc "${S}"/NEWS |
214 |
dodoc "${S}"/RELEASE-NOTES |
215 |
use doc && dohtml "${S}"/doc/*.html |
216 |
use epydoc && dohtml -r "${WORKDIR}"/api |
217 |
|
218 |
dodir /usr/bin |
219 |
for x in ebuild emerge portageq repoman tbz2tool xpak; do |
220 |
dosym ../${libdir}/portage/bin/${x} /usr/bin/${x} |
221 |
done |
222 |
|
223 |
dodir /usr/sbin |
224 |
local my_syms="archive-conf |
225 |
dispatch-conf |
226 |
emaint |
227 |
emerge-webrsync |
228 |
env-update |
229 |
etc-update |
230 |
fixpackages |
231 |
quickpkg |
232 |
regenworld" |
233 |
local x |
234 |
for x in ${my_syms}; do |
235 |
dosym ../${libdir}/portage/bin/${x} /usr/sbin/${x} |
236 |
done |
237 |
dosym env-update /usr/sbin/update-env |
238 |
dosym etc-update /usr/sbin/update-etc |
239 |
|
240 |
dodir /etc/portage |
241 |
keepdir /etc/portage |
242 |
|
243 |
echo PYTHONPATH=\"${portage_base}/pym\" > "${WORKDIR}"/05portage.envd |
244 |
doenvd "${WORKDIR}"/05portage.envd |
245 |
} |
246 |
|
247 |
pkg_preinst() { |
248 |
local portage_base="/usr/$(get_libdir)/portage" |
249 |
if has livecvsportage ${FEATURES} && [ "${ROOT}" = "/" ]; then |
250 |
rm -rf "${D}"/${portage_base}/pym/* |
251 |
mv "${D}"/${portage_base}/bin/tbz2tool "${T}" |
252 |
rm -rf "${D}"/${portage_base}/bin/* |
253 |
mv "${T}"/tbz2tool "${D}"/${portage_base}/bin/ |
254 |
fi |
255 |
} |
256 |
|
257 |
pkg_postinst() { |
258 |
local x |
259 |
|
260 |
if [ ! -f "${ROOT}/var/lib/portage/world" ] && |
261 |
[ -f "${ROOT}"/var/cache/edb/world ] && |
262 |
[ ! -h "${ROOT}"/var/cache/edb/world ]; then |
263 |
mv "${ROOT}"/var/cache/edb/world "${ROOT}"/var/lib/portage/world |
264 |
ln -s ../../lib/portage/world /var/cache/edb/world |
265 |
fi |
266 |
|
267 |
for x in "${ROOT}"/etc/._cfg????_make.globals; do |
268 |
# Overwrite the globals file automatically. |
269 |
[ -e "${x}" ] && mv -f "${x}" "${ROOT}etc/make.globals" |
270 |
done |
271 |
|
272 |
# Compile all source files recursively. Any orphans |
273 |
# will be identified and removed in postrm. |
274 |
compile_all_python_bytecodes "${ROOT}usr/$(get_libdir)/portage/pym" |
275 |
|
276 |
elog |
277 |
elog "FEATURES=\"userfetch\" is now enabled by default. Depending on your \${DISTDIR}" |
278 |
elog "permissions, this may result in Permission Denied errors. If you would like" |
279 |
elog "to fetch with superuser privileges, add FEATURES=\"-userfetch\" to make.conf." |
280 |
elog |
281 |
elog "The world file now supports slot atoms such as 'sys-devel/gcc:3.4'. In some" |
282 |
elog "cases, emerge --depclean may remove slots that it would not have removed" |
283 |
elog "in the past. The emerge --noreplace command can be used to add an atom to" |
284 |
elog "the world file and prevent matching packages from being removed. A slot" |
285 |
elog "atom will be recorded in the world file for any atom that is precise enough" |
286 |
elog "to identify a specific slot." |
287 |
|
288 |
portage_docs |
289 |
} |
290 |
|
291 |
pkg_postrm() { |
292 |
remove_orphan_python_bytecodes "${ROOT}usr/$(get_libdir)/portage/pym" |
293 |
} |
294 |
|
295 |
compile_all_python_bytecodes() { |
296 |
python -c "from compileall import compile_dir; compile_dir('${1}', quiet=True)" |
297 |
python -O -c "from compileall import compile_dir; compile_dir('${1}', quiet=True)" |
298 |
} |
299 |
|
300 |
remove_orphan_python_bytecodes() { |
301 |
[[ -d ${1} ]] || return |
302 |
find "${1}" -name '*.py[co]' -print0 | \ |
303 |
while read -d $'\0' f ; do |
304 |
src_py=${f%[co]} |
305 |
[[ -f ${src_py} ]] && continue |
306 |
rm -f "${src_py}"[co] |
307 |
done |
308 |
} |
309 |
|
310 |
|
311 |
|
312 |
-- |
313 |
gentoo-commits@g.o mailing list |