Line 0
Link Here
|
|
|
1 |
Install version of libxml2 without support for XML catalogs. |
2 |
|
3 |
libxml2.so library is renamed to libxml2-catalogless.so. |
4 |
Versions of global defined symbols are renamed from LIBXML2* to LIBXML2_CATALOGLESS*. |
5 |
|
6 |
xmlcatalog executable is not built. |
7 |
xmllint executable is built, but is not installed. |
8 |
|
9 |
xml2-config script is renamed to xml2-catalogless-config. |
10 |
libxml2 cmake module is renamed to libxml2-catalogless. |
11 |
libxml-2.0.pc pkg-config file is renamed to libxml-2.0-catalogless.pc. |
12 |
xml2Conf.sh file is renamed to xml2CataloglessConf.sh. |
13 |
|
14 |
Location of installed headers is renamed from ${includedir}/libxml2/libxml to ${includedir}/libxml2-catalogless/libxml |
15 |
due to content of xmlversion.h header being dependent on presence of support for XML catalogs. |
16 |
|
17 |
--- /Makefile.am |
18 |
+++ /Makefile.am |
19 |
@@ -15,12 +15,12 @@ |
20 |
testReader testapi testModule runtest runsuite testchar \ |
21 |
testdict runxmlconf testrecurse testlimits |
22 |
|
23 |
-bin_PROGRAMS = xmllint xmlcatalog |
24 |
+noinst_PROGRAMS = xmllint |
25 |
|
26 |
-bin_SCRIPTS=xml2-config |
27 |
+bin_SCRIPTS=xml2-catalogless-config |
28 |
|
29 |
-lib_LTLIBRARIES = libxml2.la |
30 |
-libxml2_la_LIBADD = $(ICU_LIBS) $(THREAD_LIBS) $(Z_LIBS) $(LZMA_LIBS) $(ICONV_LIBS) $(M_LIBS) $(WIN32_EXTRA_LIBADD) |
31 |
+lib_LTLIBRARIES = libxml2-catalogless.la |
32 |
+libxml2_catalogless_la_LIBADD = $(ICU_LIBS) $(THREAD_LIBS) $(Z_LIBS) $(LZMA_LIBS) $(ICONV_LIBS) $(M_LIBS) $(WIN32_EXTRA_LIBADD) |
33 |
|
34 |
if USE_VERSION_SCRIPT |
35 |
LIBXML2_VERSION_SCRIPT = $(VERSION_SCRIPT_FLAGS)$(srcdir)/libxml2.syms |
36 |
@@ -28,7 +28,7 @@ |
37 |
LIBXML2_VERSION_SCRIPT = |
38 |
endif |
39 |
|
40 |
-libxml2_la_LDFLAGS = $(CYGWIN_EXTRA_LDFLAGS) $(WIN32_EXTRA_LDFLAGS) \ |
41 |
+libxml2_catalogless_la_LDFLAGS = $(CYGWIN_EXTRA_LDFLAGS) $(WIN32_EXTRA_LDFLAGS) \ |
42 |
$(LIBXML2_VERSION_SCRIPT) \ |
43 |
-version-info $(LIBXML_VERSION_INFO) \ |
44 |
$(MODULE_PLATFORM_LIBS) |
45 |
@@ -45,7 +45,7 @@ |
46 |
trio_sources = |
47 |
endif |
48 |
|
49 |
-libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \ |
50 |
+libxml2_catalogless_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \ |
51 |
parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \ |
52 |
valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \ |
53 |
xpointer.c xinclude.c nanohttp.c nanoftp.c \ |
54 |
@@ -57,8 +57,8 @@ |
55 |
xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c \ |
56 |
xmlmodule.c schematron.c xzlib.c |
57 |
|
58 |
-DEPS = $(top_builddir)/libxml2.la |
59 |
-LDADDS = $(STATIC_BINARIES) $(top_builddir)/libxml2.la $(THREAD_LIBS) $(Z_LIBS) $(LZMA_LIBS) $(ICONV_LIBS) $(M_LIBS) $(WIN32_EXTRA_LIBADD) |
60 |
+DEPS = $(top_builddir)/libxml2-catalogless.la |
61 |
+LDADDS = $(STATIC_BINARIES) $(top_builddir)/libxml2-catalogless.la $(THREAD_LIBS) $(Z_LIBS) $(LZMA_LIBS) $(ICONV_LIBS) $(M_LIBS) $(WIN32_EXTRA_LIBADD) |
62 |
|
63 |
|
64 |
man_MANS = xml2-config.1 libxml.3 |
65 |
@@ -111,11 +111,6 @@ |
66 |
testHTML_DEPENDENCIES = $(DEPS) |
67 |
testHTML_LDADD= $(LDADDS) |
68 |
|
69 |
-xmlcatalog_SOURCES=xmlcatalog.c |
70 |
-xmlcatalog_LDFLAGS = |
71 |
-xmlcatalog_DEPENDENCIES = $(DEPS) |
72 |
-xmlcatalog_LDADD = $(RDL_LIBS) $(LDADDS) |
73 |
- |
74 |
testXPath_SOURCES=testXPath.c |
75 |
testXPath_LDFLAGS = |
76 |
testXPath_DEPENDENCIES = $(DEPS) |
77 |
@@ -668,7 +663,9 @@ |
78 |
rm result.$$name result.$$name.err ; \ |
79 |
fi ; fi ; done) |
80 |
|
81 |
-Catatests : xmlcatalog$(EXEEXT) |
82 |
+Catatests : |
83 |
+ @echo "## Catalog support disabled" |
84 |
+ @false |
85 |
@(echo > .memdump) |
86 |
@echo "## Catalog regression tests" |
87 |
-@(for i in $(srcdir)/test/catalogs/*.script ; do \ |
88 |
@@ -1224,25 +1221,25 @@ |
89 |
rpm: cleanup cleantar |
90 |
@(unset CDPATH ; $(MAKE) dist-source dist && rpmbuild -ta $(distdir).tar.gz) |
91 |
|
92 |
-## We create xml2Conf.sh here and not from configure because we want |
93 |
+## We create xml2CataloglessConf.sh here and not from configure because we want |
94 |
## to get the paths expanded correctly. Macros like srcdir are given |
95 |
## the value NONE in configure if the user doesn't specify them (this |
96 |
## is an autoconf feature, not a bug). |
97 |
|
98 |
-xml2Conf.sh: xml2Conf.sh.in Makefile |
99 |
+xml2CataloglessConf.sh: xml2Conf.sh.in Makefile |
100 |
## Use sed and then mv to avoid problems if the user interrupts. |
101 |
sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \ |
102 |
-e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \ |
103 |
-e 's?\@VERSION\@?$(VERSION)?g' \ |
104 |
-e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \ |
105 |
< $(srcdir)/xml2Conf.sh.in > xml2Conf.tmp \ |
106 |
- && mv xml2Conf.tmp xml2Conf.sh |
107 |
+ && mv xml2Conf.tmp xml2CataloglessConf.sh |
108 |
|
109 |
-CLEANFILES = runxmlconf.log test.out xml2Conf.sh *.gcda *.gcno *.res |
110 |
+CLEANFILES = runxmlconf.log test.out xml2CataloglessConf.sh *.gcda *.gcno *.res |
111 |
DISTCLEANFILES = COPYING missing.lst |
112 |
|
113 |
confexecdir=$(libdir) |
114 |
-confexec_DATA = xml2Conf.sh |
115 |
+confexec_DATA = xml2CataloglessConf.sh |
116 |
CVS_EXTRA_DIST= |
117 |
EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml2.spec \ |
118 |
libxml.m4 Copyright check-xml-test-suite.py gentest.py \ |
119 |
@@ -1261,10 +1258,10 @@ |
120 |
|
121 |
|
122 |
pkgconfigdir = $(libdir)/pkgconfig |
123 |
-pkgconfig_DATA = libxml-2.0.pc |
124 |
+pkgconfig_DATA = libxml-2.0-catalogless.pc |
125 |
|
126 |
-cmakedir = $(libdir)/cmake/libxml2 |
127 |
-cmake_DATA = libxml2-config.cmake |
128 |
+cmakedir = $(libdir)/cmake/libxml2-catalogless |
129 |
+cmake_DATA = libxml2-catalogless-config.cmake |
130 |
|
131 |
# |
132 |
# Install the tests program sources as examples |
133 |
@@ -1292,7 +1289,7 @@ |
134 |
rm -rf $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE) |
135 |
|
136 |
tst: tst.c |
137 |
- $(CC) $(CFLAGS) -Iinclude -o tst tst.c .libs/libxml2.a -lpthread -lm -lz -llzma |
138 |
+ $(CC) $(CFLAGS) -Iinclude -o tst tst.c .libs/libxml2-catalogless.a -lpthread -lm -lz -llzma |
139 |
|
140 |
sparse: clean |
141 |
$(MAKE) CC=cgcc |
142 |
--- /configure.ac |
143 |
+++ /configure.ac |
144 |
@@ -103,8 +103,6 @@ |
145 |
|
146 |
AC_ARG_WITH(c14n, |
147 |
[ --with-c14n add the Canonicalization support (on)]) |
148 |
-AC_ARG_WITH(catalog, |
149 |
-[ --with-catalog add the Catalog support (on)]) |
150 |
AC_ARG_WITH(debug, |
151 |
[ --with-debug add the debugging module (on)]) |
152 |
AC_ARG_WITH(docbook, |
153 |
@@ -248,10 +246,6 @@ |
154 |
then |
155 |
with_c14n=no |
156 |
fi |
157 |
- if test "$with_catalog" = "" |
158 |
- then |
159 |
- with_catalog=no |
160 |
- fi |
161 |
echo So far so good! |
162 |
if test "$with_debug" = "" |
163 |
then |
164 |
@@ -733,7 +727,7 @@ |
165 |
[AC_DEFINE([HAVE_ISINF], [], [Define if isinf is there])])) |
166 |
|
167 |
XML_LIBDIR='-L${libdir}' |
168 |
-XML_INCLUDEDIR='-I${includedir}/libxml2' |
169 |
+XML_INCLUDEDIR='-I${includedir}/libxml2-catalogless' |
170 |
|
171 |
dnl |
172 |
dnl Extra flags |
173 |
@@ -1269,16 +1263,10 @@ |
174 |
AC_SUBST(TEST_VALID) |
175 |
AC_SUBST(TEST_VTIME) |
176 |
|
177 |
-if test "$with_catalog" = "no" ; then |
178 |
- echo Disabling Catalog support |
179 |
- WITH_CATALOG=0 |
180 |
- CATALOG_OBJ= |
181 |
- TEST_CATALOG= |
182 |
-else |
183 |
- WITH_CATALOG=1 |
184 |
- CATALOG_OBJ="catalog.o" |
185 |
- TEST_CATALOG=Catatests |
186 |
-fi |
187 |
+echo Disabling Catalog support |
188 |
+WITH_CATALOG=0 |
189 |
+CATALOG_OBJ= |
190 |
+TEST_CATALOG= |
191 |
AC_SUBST(WITH_CATALOG) |
192 |
AC_SUBST(CATALOG_OBJ) |
193 |
AC_SUBST(TEST_CATALOG) |
194 |
@@ -1533,8 +1521,8 @@ |
195 |
WITH_ICU=1 |
196 |
fi |
197 |
fi |
198 |
-XML_LIBS="-lxml2 $Z_LIBS $LZMA_LIBS $THREAD_LIBS $ICONV_LIBS $ICU_LIBS $M_LIBS $LIBS" |
199 |
-XML_LIBTOOLLIBS="libxml2.la" |
200 |
+XML_LIBS="-lxml2-catalogless $Z_LIBS $LZMA_LIBS $THREAD_LIBS $ICONV_LIBS $ICU_LIBS $M_LIBS $LIBS" |
201 |
+XML_LIBTOOLLIBS="libxml2-catalogless.la" |
202 |
AC_SUBST(WITH_ICU) |
203 |
|
204 |
WITH_ISO8859X=1 |
205 |
@@ -1695,9 +1683,9 @@ |
206 |
ln -s $srcdir/Copyright COPYING |
207 |
|
208 |
# keep on one line for cygwin c.f. #130896 |
209 |
-AC_CONFIG_FILES([libxml2.spec:libxml.spec.in Makefile include/Makefile include/libxml/Makefile doc/Makefile doc/examples/Makefile doc/devhelp/Makefile example/Makefile python/Makefile python/tests/Makefile xstc/Makefile include/libxml/xmlversion.h libxml-2.0.pc libxml-2.0-uninstalled.pc libxml2-config.cmake]) |
210 |
+AC_CONFIG_FILES([libxml2.spec:libxml.spec.in Makefile include/Makefile include/libxml/Makefile doc/Makefile doc/examples/Makefile doc/devhelp/Makefile example/Makefile python/Makefile python/tests/Makefile xstc/Makefile include/libxml/xmlversion.h libxml-2.0-catalogless.pc:libxml-2.0.pc.in libxml-2.0-catalogless-uninstalled.pc:libxml-2.0-uninstalled.pc.in libxml2-catalogless-config.cmake:libxml2-config.cmake.in]) |
211 |
AC_CONFIG_FILES([python/setup.py], [chmod +x python/setup.py]) |
212 |
-AC_CONFIG_FILES([xml2-config], [chmod +x xml2-config]) |
213 |
+AC_CONFIG_FILES([xml2-catalogless-config:xml2-config.in], [chmod +x xml2-catalogless-config]) |
214 |
AC_OUTPUT |
215 |
|
216 |
echo Done configuring |
217 |
--- /doc/examples/Makefile.am |
218 |
+++ /doc/examples/Makefile.am |
219 |
@@ -5,7 +5,7 @@ |
220 |
|
221 |
AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(srcdir)/include |
222 |
AM_CFLAGS = $(THREAD_CFLAGS) $(Z_CFLAGS) |
223 |
-LDADD = $(RDL_LIBS) $(STATIC_BINARIES) $(top_builddir)/libxml2.la $(THREAD_LIBS) $(Z_LIBS) $(ICONV_LIBS) -lm $(WIN32_EXTRA_LIBADD) |
224 |
+LDADD = $(RDL_LIBS) $(STATIC_BINARIES) $(top_builddir)/libxml2-catalogless.la $(THREAD_LIBS) $(Z_LIBS) $(ICONV_LIBS) -lm $(WIN32_EXTRA_LIBADD) |
225 |
|
226 |
CLEANFILES = *.tmp |
227 |
|
228 |
--- /doc/examples/index.py |
229 |
+++ /doc/examples/index.py |
230 |
@@ -227,7 +227,7 @@ |
231 |
|
232 |
AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(srcdir)/include |
233 |
AM_CFLAGS = $(THREAD_CFLAGS) $(Z_CFLAGS) |
234 |
-LDADD = $(RDL_LIBS) $(STATIC_BINARIES) $(top_builddir)/libxml2.la $(THREAD_LIBS) $(Z_LIBS) $(ICONV_LIBS) -lm $(WIN32_EXTRA_LIBADD) |
235 |
+LDADD = $(RDL_LIBS) $(STATIC_BINARIES) $(top_builddir)/libxml2-catalogless.la $(THREAD_LIBS) $(Z_LIBS) $(ICONV_LIBS) -lm $(WIN32_EXTRA_LIBADD) |
236 |
|
237 |
CLEANFILES = *.tmp |
238 |
|
239 |
--- /doc/syms.xsl |
240 |
+++ /doc/syms.xsl |
241 |
@@ -8,26 +8,31 @@ |
242 |
<xsl:template match="/"> |
243 |
<xsl:text># |
244 |
# Officially exported symbols, for which header |
245 |
-# file definitions are installed in /usr/include/libxml2 |
246 |
+# file definitions are installed in /usr/include/libxml2-catalogless |
247 |
# |
248 |
# Automatically generated from symbols.xml and syms.xsl |
249 |
# |
250 |
# Versions here are *fixed* to match the libxml2 version |
251 |
# at which the symbol was introduced. This ensures that |
252 |
# a new client app requiring symbol foo() can't accidentally |
253 |
-# run with old libxml2.so not providing foo() - the global |
254 |
+# run with old libxml2-catalogless.so not providing foo() - the global |
255 |
# soname version info can't enforce this since we never |
256 |
# change the soname |
257 |
# |
258 |
|
259 |
</xsl:text> |
260 |
<xsl:apply-templates select="/symbols/release"/> |
261 |
+ <xsl:text>LIBXML2_CATALOGLESS { |
262 |
+ global: |
263 |
+ *; |
264 |
+}; |
265 |
+</xsl:text> |
266 |
</xsl:template> |
267 |
|
268 |
<xsl:template match="release"> |
269 |
<xsl:variable name="prev" |
270 |
select="preceding-sibling::release[position()=1]"/> |
271 |
- <xsl:text>LIBXML2_</xsl:text> |
272 |
+ <xsl:text>LIBXML2_CATALOGLESS_</xsl:text> |
273 |
<xsl:value-of select="string(@version)"/> |
274 |
<xsl:text> { |
275 |
global: |
276 |
@@ -46,7 +51,7 @@ |
277 |
|
278 |
<xsl:text>} </xsl:text> |
279 |
<xsl:if test="$prev"> |
280 |
- <xsl:text>LIBXML2_</xsl:text> |
281 |
+ <xsl:text>LIBXML2_CATALOGLESS_</xsl:text> |
282 |
<xsl:value-of select="$prev/@version"/> |
283 |
</xsl:if> |
284 |
<xsl:text>; |
285 |
--- /example/Makefile.am |
286 |
+++ /example/Makefile.am |
287 |
@@ -2,6 +2,6 @@ |
288 |
|
289 |
AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(srcdir)/include |
290 |
AM_CFLAGS = $(THREAD_CFLAGS) $(Z_CFLAGS) |
291 |
-LDADD = $(RDL_LIBS) $(STATIC_BINARIES) $(top_builddir)/libxml2.la $(THREAD_LIBS) $(Z_LIBS) $(ICONV_LIBS) -lm $(WIN32_EXTRA_LIBADD) |
292 |
+LDADD = $(RDL_LIBS) $(STATIC_BINARIES) $(top_builddir)/libxml2-catalogless.la $(THREAD_LIBS) $(Z_LIBS) $(ICONV_LIBS) -lm $(WIN32_EXTRA_LIBADD) |
293 |
|
294 |
gjobread_SOURCES=gjobread.c |
295 |
--- /include/libxml/Makefile.am |
296 |
+++ /include/libxml/Makefile.am |
297 |
@@ -1,6 +1,6 @@ |
298 |
## Process this file with automake to produce Makefile.in |
299 |
|
300 |
-xmlincdir = $(includedir)/libxml2/libxml |
301 |
+xmlincdir = $(includedir)/libxml2-catalogless/libxml |
302 |
|
303 |
xmlinc_HEADERS = \ |
304 |
SAX.h \ |
305 |
--- /libxml-2.0-uninstalled.pc.in |
306 |
+++ /libxml-2.0-uninstalled.pc.in |
307 |
@@ -4,9 +4,9 @@ |
308 |
includedir=${pcfiledir}/include |
309 |
|
310 |
|
311 |
-Name: libXML |
312 |
+Name: libXML-catalogless |
313 |
Version: @VERSION@ |
314 |
-Description: libXML library version2. |
315 |
+Description: libXML library version2 without Catalog support. |
316 |
Requires: |
317 |
-Libs: -L${libdir} -lxml2 @ICU_LIBS@ @THREAD_LIBS@ @Z_LIBS@ @LZMA_LIBS@ @ICONV_LIBS@ @M_LIBS@ @LIBS@ |
318 |
+Libs: -L${libdir} -lxml2-catalogless @ICU_LIBS@ @THREAD_LIBS@ @Z_LIBS@ @LZMA_LIBS@ @ICONV_LIBS@ @M_LIBS@ @LIBS@ |
319 |
Cflags: -I${includedir} @XML_INCLUDEDIR@ @XML_CFLAGS@ |
320 |
--- /libxml-2.0.pc.in |
321 |
+++ /libxml-2.0.pc.in |
322 |
@@ -4,10 +4,10 @@ |
323 |
includedir=@includedir@ |
324 |
modules=@WITH_MODULES@ |
325 |
|
326 |
-Name: libXML |
327 |
+Name: libXML-catalogless |
328 |
Version: @VERSION@ |
329 |
-Description: libXML library version2. |
330 |
+Description: libXML library version2 without Catalog support. |
331 |
Requires: |
332 |
-Libs: -L${libdir} -lxml2 |
333 |
+Libs: -L${libdir} -lxml2-catalogless |
334 |
Libs.private: @ICU_LIBS@ @THREAD_LIBS@ @Z_LIBS@ @LZMA_LIBS@ @ICONV_LIBS@ @M_LIBS@ @WIN32_EXTRA_LIBADD@ @LIBS@ |
335 |
Cflags: @XML_INCLUDEDIR@ @XML_CFLAGS@ |
336 |
--- /libxml2-config.cmake.in |
337 |
+++ /libxml2-config.cmake.in |
338 |
@@ -1,7 +1,7 @@ |
339 |
-# libxml2-config.cmake |
340 |
+# libxml2-catalogless-config.cmake |
341 |
# -------------------- |
342 |
# |
343 |
-# Libxml2 cmake module. |
344 |
+# Libxml2-catalogless cmake module. |
345 |
# THis module sets the following variables: |
346 |
# |
347 |
# :: |
348 |
@@ -21,9 +21,9 @@ |
349 |
set(LIBXML2_VERSION_MICRO @LIBXML_MICRO_VERSION@) |
350 |
set(LIBXML2_VERSION_STRING "@VERSION@") |
351 |
set(LIBXML2_INSTALL_PREFIX ${_libxml2_rootdir}) |
352 |
-set(LIBXML2_INCLUDE_DIRS ${_libxml2_rootdir}/include ${_libxml2_rootdir}/include/libxml2) |
353 |
+set(LIBXML2_INCLUDE_DIRS ${_libxml2_rootdir}/include ${_libxml2_rootdir}/include/libxml2-catalogless) |
354 |
set(LIBXML2_LIBRARY_DIR ${_libxml2_rootdir}/lib) |
355 |
-set(LIBXML2_LIBRARIES -L${LIBXML2_LIBRARY_DIR} -lxml2) |
356 |
+set(LIBXML2_LIBRARIES -L${LIBXML2_LIBRARY_DIR} -lxml2-catalogless) |
357 |
|
358 |
if(@WITH_THREADS@) |
359 |
find_package(Threads REQUIRED) |
360 |
--- /python/Makefile.am |
361 |
+++ /python/Makefile.am |
362 |
@@ -25,7 +25,7 @@ |
363 |
|
364 |
libxml2mod_la_SOURCES = libxml.c libxml_wrap.h libxml2-py.h libxml2-py.c types.c |
365 |
libxml2mod_la_LDFLAGS = $(CYGWIN_EXTRA_LDFLAGS) $(WIN32_EXTRA_LDFLAGS) -module -avoid-version \ |
366 |
- $(top_builddir)/libxml2.la $(CYGWIN_EXTRA_PYTHON_LIBADD) $(WIN32_EXTRA_PYTHON_LIBADD) $(PYTHON_LIBS) |
367 |
+ $(top_builddir)/libxml2-catalogless.la $(CYGWIN_EXTRA_PYTHON_LIBADD) $(WIN32_EXTRA_PYTHON_LIBADD) $(PYTHON_LIBS) |
368 |
|
369 |
BUILT_SOURCES = libxml2-export.c libxml2-py.h libxml2-py.c |
370 |
|
371 |
--- /xml2-config.in |
372 |
+++ /xml2-config.in |
373 |
@@ -8,7 +8,7 @@ |
374 |
usage() |
375 |
{ |
376 |
cat <<EOF |
377 |
-Usage: xml2-config [OPTION] |
378 |
+Usage: xml2-catalogless-config [OPTION] |
379 |
|
380 |
Known values for OPTION are: |
381 |
|