1 |
commit: 5d9183a38a07a1d99855e5d8f684b18a51dd949b |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 25 13:26:52 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 25 13:26:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d9183a3 |
7 |
|
8 |
dev-libs/libxml2: drop 2.9.12-r1 |
9 |
|
10 |
Upstream patch was found to be flawed. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/790737 |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
dev-libs/libxml2/Manifest | 1 - |
16 |
dev-libs/libxml2/libxml2-2.9.12-r1.ebuild | 249 ------------------------------ |
17 |
2 files changed, 250 deletions(-) |
18 |
|
19 |
diff --git a/dev-libs/libxml2/Manifest b/dev-libs/libxml2/Manifest |
20 |
index 116882cc1d5..7204ce092f5 100644 |
21 |
--- a/dev-libs/libxml2/Manifest |
22 |
+++ b/dev-libs/libxml2/Manifest |
23 |
@@ -1,6 +1,5 @@ |
24 |
DIST libxml2-2.9.10-r1-patchset.tar.xz 72088 BLAKE2B 4d5f8aed35d6c0232089e09f22a77cbd25cbd2007c1330538e1c7acc4398ec3ef9023289129677cf5499dbacde4c2f28850ae81acab351d02625d3452aedaede SHA512 a63032d1e85128f637c2b54356aab06a17e31eb1f5facd8fdf88463eb21df6a1d9fd8cc751fa94b8d322fa4f796be4e1d9aa071cbd0826ab31fae46525fde952 |
25 |
DIST libxml2-2.9.10.tar.gz 5624761 BLAKE2B a9958bd7db17fbfb8259b64d66548eb19d28f1aecf40cf66752fcec5720855d31cea9941d52963badd8c18ea1770485f1c11da6213149458336ce0273418f421 SHA512 0adfd12bfde89cbd6296ba6e66b6bed4edb814a74b4265bda34d95c41d9d92c696ee7adb0c737aaf9cc6e10426a31a35079b2a23d26c074e299858da12c072ed |
26 |
-DIST libxml2-2.9.12-r1-patchset.tar.bz2 5497 BLAKE2B fda8ad166c89209abaf8f94a5dfbff84e5a6c89cca36350a2f0b9b8db42c6f348b6cb8c7738a35aed8421ca994cc6ad76c3aa02a8a9899fa969b493ca1761b01 SHA512 469befb393430d2532e27f9ed834e0ab5473fc371c89582c3b1434ab1c370140f132d4acf315f7c2b9d1841ab3e78ef04069cca78d66917269b5112ab42127df |
27 |
DIST libxml2-2.9.12-r2-patchset.tar.bz2 5939 BLAKE2B e518a174385a121ca5545d0a51c2a2b4ddd21b1e7996e2806f368588b27d60e8318ab50ebfb90c3ee57ccece4f1c37e05c1daeed4203a4e9cb5a056ba530ad2b SHA512 06b96ab8426cd560c1147998965b5e718bee08536549a278269f6535ff1460ed97d83067ed0e8a4d834145a5e5a6caa912cf8aa5a33a360e4b1bc9d9135bfb04 |
28 |
DIST libxml2-2.9.12.tar.gz 5681632 BLAKE2B ab93633140e9fd119d3a48ed829a91213c3d7956a00d181203f5188fb0ed0d3a7150d3128fe986b13efadf6fe484393262a3de575527f38f74aa6c0067a6d934 SHA512 df1c6486e80f0fcf3c506f3599bcfb94b620c00d0b5d26831bc983daa78d58ec58b5057b1ec7c1a26c694f40199c6234ee2a6dcabf65abfa10c447cb5705abbd |
29 |
DIST libxml2-2.9.12.tar.gz.asc 488 BLAKE2B 48ec86ec373d94de73bdb52141fc77fccd0ca296a35ed97aa3479ecdcf82b15422dd7d751359b5b1ca477e24b8eee9226784cfbfd861236e10eed2519e7959bf SHA512 69ca6ab7170cad467724e19eff99a3544966a26069e78a7b7cc27ae93a9077b11cc8dad2536bd0b27c3b45f4ea7520c813fe5a018cd65f103059f7f75147a656 |
30 |
|
31 |
diff --git a/dev-libs/libxml2/libxml2-2.9.12-r1.ebuild b/dev-libs/libxml2/libxml2-2.9.12-r1.ebuild |
32 |
deleted file mode 100644 |
33 |
index 8ae91f42ff0..00000000000 |
34 |
--- a/dev-libs/libxml2/libxml2-2.9.12-r1.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,249 +0,0 @@ |
37 |
-# Copyright 1999-2021 Gentoo Authors |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=7 |
41 |
- |
42 |
-# Note: Please bump in sync with dev-libs/libxslt |
43 |
- |
44 |
-PATCHSET_VERSION="2.9.12-r1-patchset" |
45 |
- |
46 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
47 |
-PYTHON_REQ_USE="xml" |
48 |
-VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/danielveillard.asc |
49 |
-inherit autotools flag-o-matic prefix python-r1 multilib-minimal verify-sig |
50 |
- |
51 |
-XSTS_HOME="http://www.w3.org/XML/2004/xml-schema-test-suite" |
52 |
-XSTS_NAME_1="xmlschema2002-01-16" |
53 |
-XSTS_NAME_2="xmlschema2004-01-14" |
54 |
-XSTS_TARBALL_1="xsts-2002-01-16.tar.gz" |
55 |
-XSTS_TARBALL_2="xsts-2004-01-14.tar.gz" |
56 |
-XMLCONF_TARBALL="xmlts20130923.tar.gz" |
57 |
-DESCRIPTION="XML C parser and toolkit" |
58 |
-HOMEPAGE="http://www.xmlsoft.org/ https://gitlab.gnome.org/GNOME/libxml2" |
59 |
-SRC_URI=" |
60 |
- ftp://xmlsoft.org/${PN}/${PN}-${PV/_rc/-rc}.tar.gz |
61 |
- https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-${PATCHSET_VERSION}.tar.bz2 |
62 |
- test? ( |
63 |
- ${XSTS_HOME}/${XSTS_NAME_1}/${XSTS_TARBALL_1} |
64 |
- ${XSTS_HOME}/${XSTS_NAME_2}/${XSTS_TARBALL_2} |
65 |
- https://www.w3.org/XML/Test/${XMLCONF_TARBALL} |
66 |
- ) |
67 |
- verify-sig? ( ftp://xmlsoft.org/${PN}/${PN}-${PV/_rc/-rc}.tar.gz.asc ) |
68 |
-" |
69 |
-S="${WORKDIR}/${PN}-${PV%_rc*}" |
70 |
- |
71 |
-LICENSE="MIT" |
72 |
-SLOT="2" |
73 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
74 |
-IUSE="debug examples icu ipv6 lzma +python readline static-libs test" |
75 |
-RESTRICT="!test? ( test )" |
76 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
77 |
- |
78 |
-BDEPEND=" |
79 |
- dev-util/gtk-doc-am |
80 |
- virtual/pkgconfig |
81 |
- verify-sig? ( app-crypt/openpgp-keys-danielveillard ) |
82 |
-" |
83 |
-RDEPEND=" |
84 |
- >=sys-libs/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}] |
85 |
- icu? ( >=dev-libs/icu-51.2-r1:=[${MULTILIB_USEDEP}] ) |
86 |
- lzma? ( >=app-arch/xz-utils-5.0.5-r1:=[${MULTILIB_USEDEP}] ) |
87 |
- python? ( ${PYTHON_DEPS} ) |
88 |
- readline? ( sys-libs/readline:= ) |
89 |
-" |
90 |
-DEPEND="${RDEPEND}" |
91 |
- |
92 |
-MULTILIB_CHOST_TOOLS=( |
93 |
- /usr/bin/xml2-config |
94 |
-) |
95 |
- |
96 |
-DOCS=( AUTHORS ChangeLog NEWS README TODO TODO_SCHEMAS ) |
97 |
- |
98 |
-PATCHES=( |
99 |
- ## Gentoo |
100 |
- # Patches needed for prefix support |
101 |
- "${WORKDIR}"/${PN}-2.7.1-catalog_path.patch |
102 |
- |
103 |
- # Fix python detection, bug #567066 |
104 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=760458 |
105 |
- "${WORKDIR}"/${PN}-2.9.2-python-ABIFLAG.patch |
106 |
- |
107 |
- # Fix python tests when building out of tree #565576 |
108 |
- "${WORKDIR}"/${PN}-2.9.8-out-of-tree-test.patch |
109 |
- |
110 |
- # bug #745162 |
111 |
- "${WORKDIR}"/${PN}-2.9.8-python3-unicode-errors.patch |
112 |
- |
113 |
- # Avoid failure on missing fuzz.h when running tests |
114 |
- "${WORKDIR}"/${PN}-2.9.11-disable-fuzz-tests.patch |
115 |
- |
116 |
- ## Upstream |
117 |
- # Fix lxml compatibility |
118 |
- "${WORKDIR}"/${PN}-2.9.12-fix-lxml-compatibility.patch |
119 |
-) |
120 |
- |
121 |
-src_unpack() { |
122 |
- local tarname=${P/_rc/-rc}.tar.gz |
123 |
- |
124 |
- if use verify-sig ; then |
125 |
- verify-sig_verify_detached "${DISTDIR}"/${tarname}{,.asc} |
126 |
- fi |
127 |
- |
128 |
- # ${A} isn't used to avoid unpacking of test tarballs into ${WORKDIR}, |
129 |
- # as they are needed as tarballs in ${S}/xstc instead and not unpacked |
130 |
- unpack ${tarname} ${PN}-${PATCHSET_VERSION}.tar.bz2 |
131 |
- |
132 |
- cd "${S}" || die |
133 |
- |
134 |
- if use test ; then |
135 |
- cp "${DISTDIR}/${XSTS_TARBALL_1}" \ |
136 |
- "${DISTDIR}/${XSTS_TARBALL_2}" \ |
137 |
- "${S}"/xstc/ \ |
138 |
- || die "Failed to install test tarballs" |
139 |
- unpack ${XMLCONF_TARBALL} |
140 |
- fi |
141 |
-} |
142 |
- |
143 |
-src_prepare() { |
144 |
- default |
145 |
- |
146 |
- eprefixify catalog.c xmlcatalog.c runtest.c xmllint.c |
147 |
- |
148 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
149 |
- # Avoid final linking arguments for python modules |
150 |
- sed -i -e '/PYTHON_LIBS/s/ldflags/libs/' configure.ac || die |
151 |
- # gcc-apple doesn't grok -Wno-array-bounds |
152 |
- sed -i -e 's/-Wno-array-bounds//' configure.ac || die |
153 |
- fi |
154 |
- |
155 |
- # Please do not remove, as else we get references to PORTAGE_TMPDIR |
156 |
- # in /usr/lib/python?.?/site-packages/libxml2mod.la among things. |
157 |
- # We now need to run eautoreconf at the end to prevent maintainer mode. |
158 |
- #elibtoolize |
159 |
- eautoreconf |
160 |
-} |
161 |
- |
162 |
-multilib_src_configure() { |
163 |
- # Filter seemingly problematic CFLAGS (#26320) |
164 |
- filter-flags -fprefetch-loop-arrays -funroll-loops |
165 |
- |
166 |
- # Notes: |
167 |
- # 1) USE zlib support breaks gnome2 |
168 |
- # (libgnomeprint for instance fails to compile with |
169 |
- # fresh install, and existing) - <azarah@g.o> (22 Dec 2002). |
170 |
- # |
171 |
- # 2) The meaning of the 'debug' USE flag does not apply to the --with-debug |
172 |
- # switch (enabling the libxml2 debug module). See bug #100898. |
173 |
- # |
174 |
- # 3) --with-mem-debug causes unusual segmentation faults (bug #105120). |
175 |
- |
176 |
- libxml2_configure() { |
177 |
- ECONF_SOURCE="${S}" econf \ |
178 |
- --with-html-subdir=${PF}/html \ |
179 |
- $(use_with debug run-debug) \ |
180 |
- $(use_with icu) \ |
181 |
- $(use_with lzma) \ |
182 |
- $(use_enable ipv6) \ |
183 |
- $(use_enable static-libs static) \ |
184 |
- $(multilib_native_use_with readline) \ |
185 |
- $(multilib_native_use_with readline history) \ |
186 |
- "$@" |
187 |
- } |
188 |
- |
189 |
- libxml2_py_configure() { |
190 |
- # Ensure python build dirs exist |
191 |
- mkdir -p "${BUILD_DIR}" || die |
192 |
- |
193 |
- # Odd build system, also see bug #582130 |
194 |
- run_in_build_dir libxml2_configure \ |
195 |
- "--with-python=${EPYTHON}" \ |
196 |
- "--with-python-install-dir=$(python_get_sitedir)" |
197 |
- } |
198 |
- |
199 |
- # Build python bindings separately |
200 |
- libxml2_configure --without-python |
201 |
- |
202 |
- if multilib_is_native_abi && use python ; then |
203 |
- python_foreach_impl libxml2_py_configure |
204 |
- fi |
205 |
-} |
206 |
- |
207 |
-libxml2_py_emake() { |
208 |
- pushd "${BUILD_DIR}/python" > /dev/null || die |
209 |
- |
210 |
- emake "$@" |
211 |
- |
212 |
- popd > /dev/null || die |
213 |
-} |
214 |
- |
215 |
-multilib_src_compile() { |
216 |
- default |
217 |
- |
218 |
- if multilib_is_native_abi && use python ; then |
219 |
- local native_builddir="${BUILD_DIR}" |
220 |
- |
221 |
- python_foreach_impl libxml2_py_emake \ |
222 |
- top_builddir="${native_builddir}" \ |
223 |
- all |
224 |
- fi |
225 |
-} |
226 |
- |
227 |
-multilib_src_test() { |
228 |
- ln -s "${S}"/xmlconf || die |
229 |
- |
230 |
- emake check |
231 |
- |
232 |
- if multilib_is_native_abi && use python ; then |
233 |
- python_foreach_impl libxml2_py_emake test |
234 |
- fi |
235 |
-} |
236 |
- |
237 |
-multilib_src_install() { |
238 |
- emake \ |
239 |
- DESTDIR="${D}" \ |
240 |
- EXAMPLES_DIR="${EPREFIX}"/usr/share/doc/${PF}/examples \ |
241 |
- install |
242 |
- |
243 |
- if multilib_is_native_abi && use python ; then |
244 |
- python_foreach_impl libxml2_py_emake \ |
245 |
- DESTDIR="${D}" \ |
246 |
- docsdir="${EPREFIX}"/usr/share/doc/${PF}/python \ |
247 |
- exampledir="${EPREFIX}"/usr/share/doc/${PF}/python/examples \ |
248 |
- install |
249 |
- |
250 |
- python_foreach_impl python_optimize |
251 |
- fi |
252 |
-} |
253 |
- |
254 |
-multilib_src_install_all() { |
255 |
- rm -rf "${ED}"/usr/share/doc/${P} |
256 |
- |
257 |
- einstalldocs |
258 |
- |
259 |
- if ! use examples ; then |
260 |
- rm -rf "${ED}"/usr/share/doc/${PF}/examples |
261 |
- rm -rf "${ED}"/usr/share/doc/${PF}/python/examples |
262 |
- fi |
263 |
- |
264 |
- find "${D}" -name '*.la' -delete || die |
265 |
-} |
266 |
- |
267 |
-pkg_postinst() { |
268 |
- # We don't want to do the xmlcatalog during stage1, as xmlcatalog will not |
269 |
- # be in / and stage1 builds to ROOT=/tmp/stage1root. This fixes bug #208887. |
270 |
- if [[ -n "${ROOT}" ]]; then |
271 |
- elog "Skipping XML catalog creation for stage building (bug #208887)." |
272 |
- else |
273 |
- # Need an XML catalog, so no-one writes to a non-existent one |
274 |
- CATALOG="${EROOT}/etc/xml/catalog" |
275 |
- |
276 |
- # We don't want to clobber an existing catalog though, |
277 |
- # only ensure that one is there |
278 |
- # <obz@g.o> |
279 |
- if [[ ! -e "${CATALOG}" ]]; then |
280 |
- [[ -d "${EROOT}/etc/xml" ]] || mkdir -p "${EROOT}/etc/xml" |
281 |
- "${EPREFIX}"/usr/bin/xmlcatalog --create > "${CATALOG}" |
282 |
- einfo "Created XML catalog in ${CATALOG}" |
283 |
- fi |
284 |
- fi |
285 |
-} |