Makefile.am


Log

Author Commit Date CI Message
Nick Wellnhofer eed1a07d 2025-03-04T13:32:52 build: Remove version script
Nick Wellnhofer cdc5cfed 2025-03-04T13:26:51 legacy: Remove legacy symbols
Nick Wellnhofer 552864f1 2025-02-25T23:10:46 Remove os400 port This is based on an ancient version and completely outdated.
Nick Wellnhofer e50d314a 2025-02-25T23:07:19 build: Add separate configuration option for RELAX NG Support for RELAX NG used to be enabled together with XML Schema support (--with-schemas). Now there's a separate option and a new feature macro LIBXML_RELAXNG_ENABLED.
Nick Wellnhofer 22ada0a0 2025-02-18T23:27:40 tests: Look for xmlconf in source directory Add -d option to runxmlconf for automake. Fix extraction of xmlconf.tar.gz on Windows. Make runxmlconf work with Meson CI.
Nick Wellnhofer bfe6af2e 2025-01-17T17:09:04 fuzz: Remove hacks to build lint fuzzer Don't include source file directly.
Nick Wellnhofer 41aed089 2024-12-24T23:50:39 automake: Only build testdso when testing
Nick Wellnhofer 225e0229 2024-12-09T23:28:02 autotools: Add html5ent.inc to EXTRA_DIST
Nick Wellnhofer 799104de 2024-11-21T23:38:22 build: Schema doesn't require XPath anymore
Nick Wellnhofer 52afde07 2024-11-21T23:17:07 build: Only build xmlcatalog executable if enabled
Nick Wellnhofer 2191ccdf 2024-08-18T12:16:34 autotools: Fix EXTRA_DIST Fixes #786.
Nick Wellnhofer 2adcde39 2024-07-12T16:25:05 save: Optimize xmlSerializeText Use lookup tables.
Nick Wellnhofer 3528b81f 2024-07-12T16:28:18 tools: Move codegen tools to 'tools' directory
Nick Wellnhofer 30be984a 2024-06-28T20:37:47 encoding: Rework ISO-8859-X conversion Optimize code. Pass tables as context parameter. Check for XML_ENC_ERR_SPACE.
Nick Wellnhofer e68ccfa9 2024-06-22T16:42:36 tests: Port Schematron tests to C
Nick Wellnhofer 811373e2 2024-06-22T04:18:14 tests: Remove old Python tests With the exception of the xinclude test, these tests should be equivalent to runsuite and runxmlconf.
Nick Wellnhofer 0a279e2f 2024-06-22T04:00:33 tests: Remove old timing tests
Nick Wellnhofer f06fc933 2024-06-22T03:28:27 tests: Move tests for executables to separate script Move tests for xmllint shell and xmlcatalog to separate scripts and enabled them in Autotools.
Nick Wellnhofer 4c1b8851 2024-06-21T03:26:54 autotools: Move MODULE_PLATFORM_LIBS into NON_PC_LIBS
Nick Wellnhofer 2b0c4abb 2024-06-16T21:52:12 threads: Remove pthread weak symbol hack On Linux, we tried to detect the presence of libpthread to disable things like locks. This questionable hack doesn't work since glibc 2.34 which merged libpthread into libc.
Nick Wellnhofer 33a1f897 2024-06-16T19:16:47 legacy: Merge SAX.c into legacy.c
Nick Wellnhofer 1341deac 2024-06-16T17:57:12 xmllint: Move shell to xmllint Move source code for xmllint shell to shell.c and move it from the libxml2 library to the xmllint executable. Also allow shell to run without XPath and debug modules. Add stubs for old shell API functions in legacy build mode.
Nick Wellnhofer 481fd6bb 2024-06-16T16:30:54 tests: Remove testThreads.c This was merged into runtest.c some time ago.
Nick Wellnhofer e714f506 2024-06-15T20:14:03 build: Stop installing libxml.m4 This file is deprecated and unmaintained. It will be kept in the source tree for a while.
Nick Wellnhofer dba1ed85 2024-06-12T18:19:55 ftp: Remove FTP support Remove the built-in FTP client. If you configure --with-legacy, old symbols are retained for ABI compatibility.
Nick Wellnhofer 609d2666 2024-05-01T23:46:46 Stop defining _REENTRANT This macro is obsolete, see `man feature_test_macros`.
Nick Wellnhofer bffef46c 2024-04-28T22:58:06 doc: Don't install example code
Nick Wellnhofer d381e5de 2024-04-28T21:14:32 doc: Move doc/examples to example
Vincent Torri 5732ce56 2024-04-04T12:14:46 meson: Initial commit
Nick Wellnhofer d636ef1d 2024-01-11T00:43:44 tests: Remove testOOM This was never part of the standard test suite and we now test OOM error handling more comprehensively with fuzz testing.
Mike Dalessio ed3ad3e1 2023-12-20T11:42:08 Makefile.am: omit $(top_builddir) from DEPS and LDADDS BSD make is less liberal than GNU make in matching targets, and so it tries to resolve the dependency `./libxml2.la` and fails to match the target `libxml2.la`.
Nick Wellnhofer 455c61d6 2023-11-23T15:59:41 Remove VMS support This was last updated 10 years ago and is most likely broken.
Nick Wellnhofer 7d6969d9 2023-11-23T15:48:52 Remove Trio Trio is a rather old cross-platform printf library which was bundled with libxml2. It was needed for ancient pre-C99 systems without snprintf and should be safe to remove these days.
Nick Wellnhofer a9ada183 2023-10-22T13:56:55 tests: Start with testparser.c for extra tests Several issues require customized tests. Start with a test that push parses large documents. See #539.
Mike Dalessio 34630630 2023-05-05T17:34:57 autoconf: fix iconv library paths and pass cflags when building executables See 0f77167f for prior related work
Nick Wellnhofer 886bf4e6 2023-04-30T15:35:47 Stop calling xmlMemoryDump This was used to check for memory leaks but could potentially create a .memdump file. These days, there are better ways to check for memory leaks.
Nick Wellnhofer 905386ec 2023-02-13T11:14:34 autotools: Fix make distcheck - Add private/xinclude.h to EXTRA_DIST - Add runsuite.log to CLEANFILES Fixes #485.
Nick Wellnhofer c74e5903 2022-12-21T22:24:50 Remove ancient TODOs
Nick Wellnhofer 101a542e 2022-12-21T21:47:10 Remove RPM build, Makefile.tests, README.tests
Nick Wellnhofer eaebf37f 2022-12-08T18:38:45 gentest.py: Fix memory leak in API tests Regressed in commit ff34ba3e.
Nick Wellnhofer b92768cd 2022-12-08T00:24:53 tests: Enable "runsuite" test This enables some tests with testcases in - test/xsdtest - test/relaxng/OASIS/spectest.xml - test/relaxng/testsuite.xml The XML Schema Test Suite will also be run it was downloaded, see xstc/Makefile.am. Gitlab CI should be updated to fetch these files. There are 10 expected errors in the XSD test suite. This seems to be the case since at least version 2.9.0 from 2012.
Nick Wellnhofer 3a1c5ee7 2022-09-04T18:22:30 Disable fuzzer tests if glob.h wasn't found
Nick Wellnhofer caef8563 2022-09-02T17:26:47 Move automata test to runtest.c
Nick Wellnhofer c59df16d 2022-09-02T17:00:05 Always link with -no-undefined This is a good idea to detect errors early.
Nick Wellnhofer 513d65fe 2022-09-02T16:45:06 Use AM_CFLAGS and AM_LDFLAGS consistently
Nick Wellnhofer 0f77167f 2022-09-02T02:08:44 Rework library detection in configure.ac Migrate to AC_CHECK_LIB and AC_SEARCH_LIBS. Don't pollute CPPFLAGS, LDFLAGS and LIBS.
Nick Wellnhofer 14d38a71 2022-09-01T05:53:51 Don't build unneeded .c source files
Nick Wellnhofer ae2b8021 2022-08-29T16:13:50 Cleanup distribution settings in Makefile.am - Remove useless nodist_ prefix - Prefer dist_ prefix over EXTRA_DIST - Remove .in files from EXTRA_DIST
Nick Wellnhofer aa383e66 2022-08-26T17:37:09 Don't distribute libxml2.spec This is a generated file.
Nick Wellnhofer b218abce 2022-08-26T02:49:25 Don't create missing.xml when running testapi Side effect of b31e07db. Use a non-existing directory to avoid creating a file.
Nick Wellnhofer 0f568c0b 2022-08-26T01:22:33 Consolidate private header files Private functions were previously declared - in header files in the root directory - in public headers guarded with IN_LIBXML - in libxml.h - redundantly in source files that used them. Consolidate all private header files in include/private.
Nick Wellnhofer 7f7961df 2022-08-25T13:47:16 Remove generated files from distribution - libxml2.spec - libxml-2.0.pc - xml2-config - include/libxml/xmlversion.h - python/libxml2.py - python/libxml2-export.c - python/libxml2-py.c - python/libxml2-py.h - python/libxml2class.py - python/libxml2class.txt - python/setup.py
Nick Wellnhofer b60cdf1f 2022-08-18T19:17:37 Remove Makefile rule to build testapi.c This file is under version control and should only be rebuilt on demand.
Nick Wellnhofer d20df9d8 2022-08-17T12:01:04 Cleanup files generated by test suite Fixes make distcheck.
Nick Wellnhofer e59aa6ca 2022-04-04T05:57:07 Move doc/examples tests to new test suite
Nick Wellnhofer 3f74e42b 2022-04-04T05:19:33 Simplify 'make check' targets
Nick Wellnhofer 5ce893c0 2020-07-09T03:21:07 Move regexp tests to runtest
Nick Wellnhofer 95c7f315 2022-04-03T21:39:14 Move SVG tests to runtest.c Also update the test results for the first time since 2000.
Nick Wellnhofer 0cca7b51 2022-04-03T21:29:58 Move testModule to new test suite Invoke testModule when the modern test suite is run with 'make check'.
Nick Wellnhofer f23ca9f9 2022-04-03T21:25:54 Move testThreads to new test suite Invoke testThreads when the modern test suite is run with 'make check'.
Nick Wellnhofer 48b03c84 2022-04-03T20:36:38 Remove major parts of old test suite Remove all the parts of the old test suite which are covered by runtest.c for quite some time. The following test programs are removed: - testC14N - testHTML - testReader - testRelax - testSAX - testSchemas - testURI - testXPath This also removes a few results of unimportant tests only run by the old test suite.
Nick Wellnhofer 4b10e7cf 2022-04-03T18:44:37 Remove outdated xml2Conf.sh
Nick Wellnhofer 61b78b0a 2022-04-03T18:30:26 Consolidate man pages Move xml2-config.1 into doc directory. Remove outdated libxml.3.
Nick Wellnhofer a340d8b1 2022-04-03T02:20:04 Use XML_PRIVATE_LIBS in libxml2_la_LIBADD After this change, variables Z_LIBS, LZMA_LIBS, ICU_LIBS, ICONV_LIBS and WIN32_EXTRA_LIBADD are unused outside of configure.ac. We keep exporting them with AC_SUBST for now.
Nick Wellnhofer 1db151ac 2022-04-03T14:36:03 Remove LIBS from XML_PRIVATE_LIBS
Nick Wellnhofer 7016b0e0 2022-04-03T01:42:17 Don't overlink executables With very few exceptions, utilities and test programs don't require any external libraries. - xmllint and xmlcatalog need libreadline - runtest and testThreads need pthreads
David Seifert 5c71ada8 2022-03-30T16:51:17 Detect libm using libtool's macros
David Seifert 54e3f74b 2022-03-30T16:51:13 Makefile.am: install examples more idiomatically
David Seifert 865520f0 2022-03-30T00:32:35 Respect `--sysconfdir` in source files * Prefix installations need to point to a non-root `etc` - Gentoo Prefix has been patching this for over 10 years: https://bugs.gentoo.org/317891 - MacPorts has to manually replace paths after patching: https://github.com/macports/macports-ports/blob/cc3bb736e906abe73b014da02a89ae2b70ef6295/textproc/libxml2/Portfile#L46
David Seifert d9335077 2022-03-29T13:37:16 Use AM_PATH_PYTHON/PKG_CHECK_MODULES for python bindings * `AM_PATH_PYTHON` is a much more common idiom for building and installing python modules than writing your own. * It also makes cross-compiling the python bindings possible. Previously the `PYTHON_CFLAGS`/`PYTHON_LIBS` would have been based on the `--build` python and not the `--host` python. By using `pkg-config`, we can always redirect the python-X.Y.pc. Bug: https://bugs.gentoo.org/582130
Nick Wellnhofer 4a8c71eb 2022-03-04T03:35:57 Remove DOCBparser This code has been broken and deprecated since version 2.6.0, released in 2003. Because of a bug in commit 961b535c, DOCBparser.c was never compiled since 2012. I couldn't find a Debian package using any of its symbols, so it seems safe to remove this module.
Joey Arhar 1a112c7b 2022-03-04T08:55:28 Remove regressions.py from Makefile.am This patch removes regressions.py and regressions.xml from Makefile.am. These files were removed in 5ec1ef1c and since they are still in Makefile.am, it causes "make dist-all" to fail.
Nick Wellnhofer 8f3bd262 2022-03-01T17:18:56 Remove broken VxWorks support
Nick Wellnhofer 041ed3d6 2022-03-01T17:17:19 Remove broken Mac OS 9 support
Nick Wellnhofer 50f6feb9 2022-03-01T00:05:54 Remove broken bakefile support
Nick Wellnhofer 6117700e 2022-02-20T20:56:40 Remove special configuration for certain maintainers
Nick Wellnhofer 346c3a93 2022-02-20T18:46:42 Remove elfgcchack.h The same optimization can be enabled with -fno-semantic-interposition since GCC 5. clang has always used this option by default.
Nick Wellnhofer a20a6022 2022-02-14T03:40:59 Fix distribution after README change
Nick Wellnhofer 7fe9addc 2022-02-13T23:29:51 Remove CVS and SVN-related code
Mattia Rizzolo 96753450 2021-07-29T12:14:03 Correctly install the HTML examples into their subdirectory. Previous to this commit, the examples where installed haphazardly within all the other html documents, also overwriting index.html, for example. Signed-off-by: Mattia Rizzolo <mattia@mapreri.org>
Mattia Rizzolo 7c0253aa 2021-07-29T12:11:08 Refactor the settings of $docdir This is a completely noop change for this project, since before this commit nothing was using $docdir nor PROGRAM_TARNAME. Setting the fourth parameter of AC_INIT() makes it set PROGRAM_TARNAME, which then used as the last path component of the default docdir, effectively making $docdir be the same as the previous $BASE_DIR/$DOC_MODULE. Signed-off-by: Mattia Rizzolo <mattia@mapreri.org>
Markus Rickert 5c7bdbc9 2020-11-25T18:41:14 Add CMake files to EXTRA_DIST
Nick Wellnhofer 1bde1040 2020-10-25T20:02:23 Add 'fuzz' subdirectory to DIST_SUBDIRS Fixes #191.
David Kilzer 6b4717d6 2020-07-06T12:36:27 Add regexp regression tests - Bug 757711: heap-buffer-overflow in xmlFAParsePosCharGroup <https://bugzilla.gnome.org/show_bug.cgi?id=757711> - Bug 783015 - Integer-overflow in xmlFAParseQuantExact <https://bugzilla.gnome.org/show_bug.cgi?id=783015> (Regexptests): Add support for checking stderr output when running regexp tests. This makes it possible to check in test cases that fail and not see false-positive error output when running the tests. Unlike other libxml2 test suites, if there is no stderr output, no *.err file needs to be created.
Nick Wellnhofer 00ed736e 2020-06-05T12:49:25 Add a couple of libFuzzer targets - XML fuzzer Currently tests the pull parser, push parser and reader, as well as serialization. Supports splitting fuzz data into multiple documents for things like external DTDs or entities. The seed corpus is built from parts of the test suite. - Regexp fuzzer Seed corpus was statically generated from test suite. - URI fuzzer Tests parsing and most other functions from uri.c.
Nick Wellnhofer 20c60886 2020-03-08T17:19:42 Fix typos Resolves #133.
Nick Wellnhofer d56184a0 2019-09-26T12:11:39 Disable xmlExp regex code This is apparently another regex engine that was never used, see commit 81a8ec6.
Hugh McMaster 1fc410d3 2019-07-01T22:22:14 xml2-config: Add a --dynamic switch to print only shared libraries `xml2-config --libs` prints static library linking information by default. This is un-necessary for most programs, so introduce a new option, --dynamic, which, when combined with --libs, only prints shared library linking information.
Nick Wellnhofer 57d4329b 2018-01-23T17:33:42 Merge testThreadsWin32.c into testThreads.c Apply the same cross-platform modifications as previously in runtest.c.
Nick Wellnhofer 8cb8e317 2017-11-12T18:22:23 Don't touch CFLAGS in configure.ac CFLAGS shouldn't be touched by configure.ac. The variable is supplied by the user and must come after other flags, so flags like warning options can be overridden. Rename CFLAGS to EXTRA_CFLAGS and add the value to AM_CFLAGS. This also makes it possible to override flags for each Automake program or library.
Nick Wellnhofer 86182390 2017-11-13T22:17:53 Revert "Compile testapi with -Wno-unused-function" This reverts commit f404c4f500a0ec18b04463581d5d1b3aae7f7730. The change broke non-GCC compilers.
Nick Wellnhofer f404c4f5 2017-10-31T17:14:43 Compile testapi with -Wno-unused-function
Daniel Veillard 56ec9cef 2017-08-28T20:15:38 Adding README.zOS to list of extra files for the release
Nick Wellnhofer 988a5a3b 2017-06-17T15:44:50 Build test programs only when needed Add test programs to 'check_PROGRAMS' instead of 'noinst_PROGRAMS'. Fixes bug 760457.
Nick Wellnhofer dbaab1f3 2017-06-16T21:38:57 Test SAX2 callbacks with entity substitution This detects regressions like bug 760367.
Nick Wellnhofer 67f9f9d6 2017-06-12T19:25:01 Misc fixes for 'make tests' - Silence test output. - Clean up after doc/examples tests. - Adjust expected output for script tests. - Add missing results for relaxng/pattern3 There are still two test failures I can't comment on: - regexp/bug316338 - schemas/any4_0
Nick Wellnhofer e2663054 2017-06-05T15:37:17 Fix handling of parameter-entity references There were two bugs where parameter-entity references could lead to an unexpected change of the input buffer in xmlParseNameComplex and xmlDictLookup being called with an invalid pointer. Percent sign in DTD Names ========================= The NEXTL macro used to call xmlParserHandlePEReference. When parsing "complex" names inside the DTD, this could result in entity expansion which created a new input buffer. The fix is to simply remove the call to xmlParserHandlePEReference from the NEXTL macro. This is safe because no users of the macro require expansion of parameter entities. - xmlParseNameComplex - xmlParseNCNameComplex - xmlParseNmtoken The percent sign is not allowed in names, which are grammatical tokens. - xmlParseEntityValue Parameter-entity references in entity values are expanded but this happens in a separate step in this function. - xmlParseSystemLiteral Parameter-entity references are ignored in the system literal. - xmlParseAttValueComplex - xmlParseCharDataComplex - xmlParseCommentComplex - xmlParsePI - xmlParseCDSect Parameter-entity references are ignored outside the DTD. - xmlLoadEntityContent This function is only called from xmlStringLenDecodeEntities and entities are replaced in a separate step immediately after the function call. This bug could also be triggered with an internal subset and double entity expansion. This fixes bug 766956 initially reported by Wei Lei and independently by Chromium's ClusterFuzz, Hanno Böck, and Marco Grassi. Thanks to everyone involved. xmlParseNameComplex with XML_PARSE_OLD10 ======================================== When parsing Names inside an expanded parameter entity with the XML_PARSE_OLD10 option, xmlParseNameComplex would call xmlGROW via the GROW macro if the input buffer was exhausted. At the end of the parameter entity's replacement text, this function would then call xmlPopInput which invalidated the input buffer. There should be no need to invoke GROW in this situation because the buffer is grown periodically every XML_PARSER_CHUNK_SIZE characters and, at least for UTF-8, in xmlCurrentChar. This also matches the code path executed when XML_PARSE_OLD10 is not set. This fixes bugs 781205 (CVE-2017-9049) and 781361 (CVE-2017-9050). Thanks to Marcel Böhme and Thuan Pham for the report. Additional hardening ==================== A separate check was added in xmlParseNameComplex to validate the buffer size.
Nick Wellnhofer ac9a4560 2017-05-31T19:06:30 Disable LeakSanitizer when running API tests The autogenerated API tests leak memory.
Nick Wellnhofer 43f50f4d 2017-05-26T23:01:54 Fix white space in test output Quote echoed variable to avoid newlines being converted to space.
Daniel Veillard 9b4b8cb3 2016-05-04T12:33:32 Add a make rule to rebuild for ASAN