1 |
leio 08/10/03 21:05:54 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libxml2-2.7.2.ebuild |
5 |
Log: |
6 |
New version with a small amount of bug fixes, including a fix for a DoS problem (infinite loop with growing memory usage) when there is an entity in an entity definition; bug 239346 |
7 |
(Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.227 dev-libs/libxml2/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libxml2/ChangeLog?rev=1.227&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libxml2/ChangeLog?rev=1.227&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libxml2/ChangeLog?r1=1.226&r2=1.227 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/libxml2/ChangeLog,v |
19 |
retrieving revision 1.226 |
20 |
retrieving revision 1.227 |
21 |
diff -u -r1.226 -r1.227 |
22 |
--- ChangeLog 1 Oct 2008 17:15:50 -0000 1.226 |
23 |
+++ ChangeLog 3 Oct 2008 21:05:54 -0000 1.227 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for dev-libs/libxml2 |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/ChangeLog,v 1.226 2008/10/01 17:15:50 dertobi123 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/ChangeLog,v 1.227 2008/10/03 21:05:54 leio Exp $ |
29 |
+ |
30 |
+*libxml2-2.7.2 (03 Oct 2008) |
31 |
+ |
32 |
+ 03 Oct 2008; Mart Raudsepp <leio@g.o> +libxml2-2.7.2.ebuild: |
33 |
+ New version with a small amount of bug fixes, including a fix for a DoS |
34 |
+ problem (infinite loop with growing memory usage) when there is an entity |
35 |
+ in an entity definition; bug 239346 |
36 |
|
37 |
01 Oct 2008; Tobias Scherbaum <dertobi123@g.o> |
38 |
libxml2-2.7.1.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-libs/libxml2/libxml2-2.7.2.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libxml2/libxml2-2.7.2.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libxml2/libxml2-2.7.2.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: libxml2-2.7.2.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2008 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/libxml2-2.7.2.ebuild,v 1.1 2008/10/03 21:05:54 leio Exp $ |
52 |
|
53 |
inherit libtool flag-o-matic eutils |
54 |
|
55 |
DESCRIPTION="Version 2 of the library to manipulate XML files" |
56 |
HOMEPAGE="http://www.xmlsoft.org/" |
57 |
|
58 |
LICENSE="MIT" |
59 |
SLOT="2" |
60 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
61 |
IUSE="bootstrap build debug doc examples ipv6 python readline test" |
62 |
|
63 |
XSTS_HOME="http://www.w3.org/XML/2004/xml-schema-test-suite" |
64 |
XSTS_NAME_1="xmlschema2002-01-16" |
65 |
XSTS_NAME_2="xmlschema2004-01-14" |
66 |
XSTS_TARBALL_1="xsts-2002-01-16.tar.gz" |
67 |
XSTS_TARBALL_2="xsts-2004-01-14.tar.gz" |
68 |
|
69 |
SRC_URI="ftp://xmlsoft.org/${PN}/${P}.tar.gz |
70 |
test? ( |
71 |
${XSTS_HOME}/${XSTS_NAME_1}/${XSTS_TARBALL_1} |
72 |
${XSTS_HOME}/${XSTS_NAME_2}/${XSTS_TARBALL_2} )" |
73 |
|
74 |
RDEPEND="sys-libs/zlib |
75 |
python? ( dev-lang/python ) |
76 |
readline? ( sys-libs/readline )" |
77 |
|
78 |
DEPEND="${RDEPEND} |
79 |
hppa? ( >=sys-devel/binutils-2.15.92.0.2 )" |
80 |
|
81 |
src_unpack() { |
82 |
unpack ${P}.tar.gz |
83 |
cd "${S}" |
84 |
|
85 |
if use test; then |
86 |
cp "${DISTDIR}/${XSTS_TARBALL_1}" \ |
87 |
"${DISTDIR}/${XSTS_TARBALL_2}" \ |
88 |
"${S}"/xstc/ \ |
89 |
|| die "Failed to install test tarballs" |
90 |
fi |
91 |
|
92 |
epunt_cxx |
93 |
} |
94 |
|
95 |
src_compile() { |
96 |
# USE zlib support breaks gnome2 |
97 |
# (libgnomeprint for instance fails to compile with |
98 |
# fresh install, and existing) - <azarah@g.o> (22 Dec 2002). |
99 |
|
100 |
# The meaning of the 'debug' USE flag does not apply to the --with-debug |
101 |
# switch (enabling the libxml2 debug module). See bug #100898. |
102 |
|
103 |
# --with-mem-debug causes unusual segmentation faults (bug #105120). |
104 |
|
105 |
local myconf="--with-zlib \ |
106 |
$(use_with debug run-debug) \ |
107 |
$(use_with python) \ |
108 |
$(use_with readline) \ |
109 |
$(use_with readline history) \ |
110 |
$(use_enable ipv6)" |
111 |
|
112 |
# Please do not remove, as else we get references to PORTAGE_TMPDIR |
113 |
# in /usr/lib/python?.?/site-packages/libxml2mod.la among things. |
114 |
elibtoolize |
115 |
|
116 |
# filter seemingly problematic CFLAGS (#26320) |
117 |
filter-flags -fprefetch-loop-arrays -funroll-loops |
118 |
|
119 |
econf $myconf || die "Configuration failed" |
120 |
|
121 |
# Patching the Makefiles to respect get_libdir |
122 |
# Fixes BUG #86766, please keep this. |
123 |
# Danny van Dyk <kugelfang@g.o> 2005/03/26 |
124 |
for x in $(find "${S}" -name "Makefile") ; do |
125 |
sed \ |
126 |
-e "s|^\(PYTHON_SITE_PACKAGES\ =\ \/usr\/\).*\(\/python.*\)|\1$(get_libdir)\2|g" \ |
127 |
-i ${x} \ |
128 |
|| die "sed failed" |
129 |
done |
130 |
|
131 |
emake || die "Compilation failed" |
132 |
} |
133 |
|
134 |
src_install() { |
135 |
emake DESTDIR="${D}" install || die "Installation failed" |
136 |
|
137 |
dodoc AUTHORS ChangeLog Copyright NEWS README* TODO* |
138 |
|
139 |
if ! use doc; then |
140 |
rm -rf "${D}"/usr/share/gtk-doc |
141 |
rm -rf "${D}"/usr/share/doc/${P}/html |
142 |
fi |
143 |
|
144 |
if ! use examples; then |
145 |
rm -rf "${D}/usr/share/doc/${P}/examples" |
146 |
rm -rf "${D}/usr/share/doc/${PN}-python-${PV}/examples" |
147 |
fi |
148 |
} |
149 |
|
150 |
pkg_postinst() { |
151 |
# We don't want to do the xmlcatalog during stage1, as xmlcatalog will not |
152 |
# be in / and stage1 builds to ROOT=/tmp/stage1root. This fixes bug #208887. |
153 |
if [[ "${ROOT}" != "/" ]] |
154 |
then |
155 |
elog "Skipping XML catalog creation for stage building (bug #208887)." |
156 |
else |
157 |
# need an XML catalog, so no-one writes to a non-existent one |
158 |
CATALOG="${ROOT}etc/xml/catalog" |
159 |
|
160 |
# we dont want to clobber an existing catalog though, |
161 |
# only ensure that one is there |
162 |
# <obz@g.o> |
163 |
if [ ! -e ${CATALOG} ]; then |
164 |
[ -d "${ROOT}etc/xml" ] || mkdir -p "${ROOT}etc/xml" |
165 |
/usr/bin/xmlcatalog --create > ${CATALOG} |
166 |
einfo "Created XML catalog in ${CATALOG}" |
167 |
fi |
168 |
fi |
169 |
} |