Log

Author Commit Date CI Message
Nick Wellnhofer c63b2692 2022-09-05T22:50:45 gitlab-ci: Disable MSan for now MSan seems broken on Ubuntu 22.04.
Nick Wellnhofer ad338459 2022-09-05T21:16:20 autotools: Fix bug with multiline arguments Should fix #404.
Nick Wellnhofer adcf399b 2022-09-05T15:36:13 autotools: Try to fix bug with multiline arguments Only happens with older autoconf?
Nick Wellnhofer 30c8d9bb 2022-09-05T02:02:54 http: Simplify IPv6 checks This should also enable IPv6 support on Windows. Untested and mostly useless anyway, since we don't support HTTPS.
Nick Wellnhofer 9e5a016e 2022-09-05T01:08:33 autotools: Fix network checks on Windows
Nick Wellnhofer 98acf28f 2022-09-04T22:12:32 Use $MSYSTEM and 'bash -lc' in MinGW CI Setting the $MSYSTEM environment variable and invoking shell scripts with 'bash -lc' sets up the correct MinGW environment. See https://www.msys2.org/docs/ci/
Nick Wellnhofer 5d32b126 2022-09-04T22:05:16 Fix detection of GNU libiconv GNU libiconv prefixes symbols with "lib".
Nick Wellnhofer 460ba0cb 2022-09-04T16:00:19 Add CI job for MinGW/Autotools
Nick Wellnhofer 0cc9c1d1 2022-09-04T15:35:47 Consolidate CI scripts
Nick Wellnhofer 89aeb4df 2022-09-04T18:44:52 Allow empty MINGW_PACKAGE_PREFIX
Nick Wellnhofer efc0e85c 2022-09-04T15:26:47 Move Dockerfile to .gitlab-ci directory
Nick Wellnhofer 02e12371 2022-09-04T20:12:18 cmake: Fix Python installation Don't install into ${Python_SITEARCH} for now.
Nick Wellnhofer 243fdbc3 2022-09-04T19:13:14 cmake: Don't check for Python 2
Nick Wellnhofer b0556e14 2022-09-04T18:49:23 testapi: Disable on Windows for now It's incredibly slow for some reason.
Nick Wellnhofer 3a1c5ee7 2022-09-04T18:22:30 Disable fuzzer tests if glob.h wasn't found
Nick Wellnhofer ad6f10a8 2022-09-04T17:21:51 Fix Python build on Windows Build Python bindings with -no-undefined on Windows. Remove libs that should already be set by PKG_CHECK_MODULE.
Nick Wellnhofer 22b82d14 2022-09-04T17:19:58 Improve network library detection
Nick Wellnhofer 0d901258 2022-09-04T16:41:43 Fix Windows compiler warnings in python/types.c
Nick Wellnhofer 71736b4e 2022-09-04T16:16:37 Fix libxml_PyFileGet Broken in commit 75cdb6dd.
Nick Wellnhofer 27b2b864 2022-09-04T18:32:55 configure.ac: Also check for MSYS host
Nick Wellnhofer f9fcb2c4 2022-09-04T04:47:48 Revert "CI job for MingW64/Autotools" This reverts commit 6bfebf4d5886bd5f2a3979ceedc27ebd6c3c5009.
Nick Wellnhofer 6bfebf4d 2022-09-04T04:04:45 CI job for MingW64/Autotools
Nick Wellnhofer 0048fd0a 2022-09-04T03:48:49 Detect ws2_32 with AC_SEARCH_LIBS
Nick Wellnhofer 60b03c9e 2022-09-04T03:31:27 Rework network configure checks Migrate to AC_SEARCH_LIBS. Don't pollute LIBS.
Nick Wellnhofer fe02289f 2022-09-04T03:19:01 Remove arg cast configure checks We can simply cast to non-const char * unconditionally.
Nick Wellnhofer 2d164d68 2022-09-04T02:54:20 Fix dlopen check
Nick Wellnhofer 1e60c768 2022-09-04T01:49:41 Remove HAVE_WIN32_THREADS configuration flag Check for LIBXML_THREAD_ENABLED and _WIN32 instead.
Nick Wellnhofer 13a66378 2022-09-04T01:05:51 Remove BeOS support Haiku shouldn't be affected.
Nick Wellnhofer 38290ec1 2022-09-04T00:49:36 Rework dlopen and pthread detection Migrate to AC_SEARCH_LIBS. Remove check for ancient GCC 3.3.
Nick Wellnhofer e47df37b 2022-09-04T00:46:32 Fix test in configure.ac Broken in commit b4847d60.
Nick Wellnhofer 81621b1f 2022-09-02T18:38:33 Fix compiler warnings in SAX2.c
Nick Wellnhofer 202b8e19 2022-09-01T06:52:02 cmake: Enable GCC compiler warnings
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 75cdb6dd 2022-09-02T16:47:25 Fix unused variable warning in python/types.c
Nick Wellnhofer 1bd24d44 2022-09-02T17:59:09 Fix compiler warning in examples
Nick Wellnhofer d0ab5c4f 2022-09-02T17:47:48 Fix compiler warnings in fuzzing code
Nick Wellnhofer 17d505e2 2022-09-02T17:33:42 Remove -Wredundant-decls Some Python headers contain redundant redeclarations.
Nick Wellnhofer 4d911ebc 2022-09-02T16:14:04 Call AC_CHECK_* with multiple arguments
Nick Wellnhofer 75bd98a5 2022-09-02T05:09:42 Remove unused code in nanohttp.c This was hidden behind an undocumented flag RES_USE_INET6.
Nick Wellnhofer 5bffa33a 2022-09-02T05:03:03 Stop including sys/types.h
Nick Wellnhofer 05fc6ee2 2022-09-02T04:45:27 configure.ac: Remove checks for unused programs
Nick Wellnhofer 16ae1d8f 2022-09-02T04:33:54 Don't define WIN32 macro
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 f2dda8e8 2022-09-02T00:51:46 Rearrange configure.ac Move some sections around and align headers.
Nick Wellnhofer 6a5c88cc 2022-09-02T00:40:03 Consolidate zlib and lzma detection Don't depend on a global variable for flag backup. Now the blocks can be moved freely around.
Nick Wellnhofer 59f2f60e 2022-09-02T00:27:57 Remove "runtime debugging" This doesn't seem useful as configuration option.
Nick Wellnhofer b4847d60 2022-09-02T00:17:43 Consolidate simple API modules in configure.ac Add some small consistency fixes.
Nick Wellnhofer 88a8757b 2022-09-01T23:44:00 Fix dependency resolution in configure.ac This mainly fixes the case of disabling a single module, for example ./configure --without-xpath Before, there were still a few cases where a module wouldn't be disabled unless another module depending on it were disabled, too. Finding the correct options to really disable some modules could be extremely hard for casual users. Now every --without option should reliably disable dependent modules unless they were specifcally requested. In the latter case, a warning is printed consistently. Some missing dependencies were added and the logic was consolidated in a single code section.
Nick Wellnhofer c7149792 2022-09-01T23:15:35 Fix --with-valid --without-regexps build This build config resulted in segfaults in 'runtest' because a special xmlElementContentPtr showed up in a few places. I'm not sure if this is the right fix. An error message was changed to conform to the --with-regexps build. There are still a few missing validity errors, so the tests don't pass.
Nick Wellnhofer 884e142d 2022-09-01T22:44:02 Fix --with-schemas --without-xpath build xmlXPathInit must be called for schemas.
Nick Wellnhofer 14d38a71 2022-09-01T05:53:51 Don't build unneeded .c source files
Nick Wellnhofer bdcf842c 2022-09-01T20:45:35 Move xmlIsXHTML to tree.c It's declared in tree.h and not guarded by LIBXML_OUTPUT_ENABLED like the other functions in xmlsave.c.
Nick Wellnhofer 6843fc72 2022-09-01T02:58:00 Remove or annotate char casts
Nick Wellnhofer 2cac6269 2022-09-01T03:14:13 Don't use sizeof(xmlChar) or sizeof(char)
Nick Wellnhofer ad338ca7 2022-09-01T01:18:30 Remove explicit integer casts Remove explicit integer casts as final operation - in assignments - when passing arguments - when returning values Remove casts - to the same type - from certain range-bound values The main motivation is that these explicit casts don't change the result of operations and only render UBSan's implicit-conversion checks useless. Removing these casts allows UBSan to detect cases where truncation or sign-changes occur unexpectedly. Document some explicit casts as truncating and add a few missing ones.
Nick Wellnhofer aeb69fd3 2022-09-01T02:33:16 Fix overflow check in SAX2.c
Nick Wellnhofer 65dc8a63 2022-09-01T00:13:19 Make xmlNewSAXParserCtx take a const sax handler Also improve documentation.
Nick Wellnhofer ce8f3d11 2022-08-29T23:53:40 Fix libxml_PyFileGet with stdout on macOS macOS returns O_RDWR for standard file descriptors, but fails to write to stdout or stderr when opened with fdopen(dup_fd, "rw").
Nick Wellnhofer b1a09618 2022-08-29T17:21:19 Migrate from PyEval_ to PyObject_ PyEval_ functions are deprecated. Fixes #208.
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 b0916e0e 2022-08-26T17:57:58 Also clean *.pyc files for Python 2
Nick Wellnhofer aa383e66 2022-08-26T17:37:09 Don't distribute libxml2.spec This is a generated file.
Xi Ruoyao df003c0a 2022-08-26T10:09:13 build: require automake-1.16.3 or later We need https://git.savannah.gnu.org/cgit/automake.git/commit/?id=e21d46f to avoid an error like checking for PYTHON... no configure: error: Package requirements (python-3.1) were not met: No package 'python-3.1' found With python-3.10. Partially fixes #392. Note that there is another issue with python-3.10, like: checking for python... no checking for python2... no checking for python3... no checking for python3.9... no ... configure: error: no suitable Python interpreter found Fixing this one will need to require bumping automake version again, but the automake version containing this fix is not released yet. And, this is rather minor because most environment has "python3" as a symlink to "python3.10" or whatever the latest python3.x installed.
Nick Wellnhofer 47803697 2022-08-26T16:31:55 Work around strange -fsanitize=integer issue With clang 14, __attribute__ ((nosanitize)) stops working with -fsanitize=undefined,integer Using the following works (and should be equivalent) -fsanitize=undefined,unsigned-integer-overflow,implicit-conversion
Nick Wellnhofer 8016c8ed 2022-08-26T15:12:21 Remove set-but-unused variable in xmlXPathScanName Fix clang warning.
Nick Wellnhofer ebc04fec 2022-08-26T15:10:06 Allow Python deprecation warnings for now See #208.
Nick Wellnhofer 4eca70e5 2022-08-26T14:50:21 Update MAINTAINERS.md
Nick Wellnhofer d7a334f2 2022-08-26T14:43:28 Silence -Warray-bounds warning This is a hack, but works for now. Fixes #389.
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 39dfb048 2022-08-26T02:41:15 Don't forget to install xmlversion.h Fixes 7f7961df.
Nick Wellnhofer 1660331b 2022-08-26T02:24:23 Remove xmlErrMemory from symbols This function was never publically declared.
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 48f84ea8 2022-08-25T21:31:08 Remove internal macros from parserInternals.h Replace MOVETO_ENDTAG with code that updates line and column numbers.
Nick Wellnhofer 58fc89e8 2022-08-25T20:57:30 Deprecate internal parser functions
Nick Wellnhofer a308c0cd 2022-08-25T20:18:16 Deprecate old HTML SAX API
Nick Wellnhofer 51035c53 2022-08-25T19:53:04 Generate deprecation warnings for old SAX API
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 2bea68af 2022-08-25T13:50:09 Bump version to 2.11.0 This will be the next release cut from the master branch.
Nick Wellnhofer 34a050cd 2022-08-24T16:35:58 Move some HTML functions to correct header file
Nick Wellnhofer ca3807d9 2022-08-24T15:55:46 Mark more functions setting globals as deprecated
Nick Wellnhofer 74c84a8c 2022-08-24T15:51:28 xmllint: Don't set deprecated globals Setting parser options should be enough.
Nick Wellnhofer e70b0c5e 2022-08-24T15:16:04 Rebuild documentation
Nick Wellnhofer fd85b566 2022-08-24T15:12:24 Mark more parser functions as deprecated No compiler warnings generated yet.
Nick Wellnhofer 88637d42 2022-08-24T15:09:46 Improve cross-references in API docs Also cross-reference keywords followed by a period. This is still a hack but catches quite a few more keywords.
Nick Wellnhofer 6cdaa192 2022-08-24T14:34:04 Rebuild documentation
Nick Wellnhofer b33be8a0 2022-08-24T14:29:50 Switch back to HTML output for API documentation
Nick Wellnhofer 0e49f882 2022-08-24T05:25:37 Mark most SAX1 functions as deprecated No compiler warnings generated yet.
Nick Wellnhofer ce93ee90 2022-08-24T05:24:13 xmllint: Stop calling xmlSAXDefaultVersion This should already be handled by setting XML_PARSE_SAX1.
Nick Wellnhofer 9a82b94a 2022-08-24T04:21:58 Introduce xmlNewSAXParserCtxt and htmlNewSAXParserCtxt Add API functions to create a parser context with a custom SAX handler without having to mess with ctxt->sax manually.
Nick Wellnhofer 0a04db19 2022-08-24T14:06:00 Don't mess with parser options in htmlParseDocument Don't set ctxt->html. This member should already be initialized. Set ctxt->linenumbers in htmlCtxtUseOptions like the XML parser does.
Nick Wellnhofer d45263a2 2022-08-24T14:04:35 Remove useless call to htmlDefaultSAXHandlerInit This function is already called from xmlInitParser.
Nick Wellnhofer 3513d76a 2022-08-24T02:18:50 Improve documentation of globals Document more global variables as deprecated. Some of the variables don't generate deprecation warnings yet, but they shouldn't be used in new code.
Nick Wellnhofer f703ed69 2022-08-24T01:29:49 Fix documentation parser Reset comment right after adding to the index.
Nick Wellnhofer bd6a4272 2022-08-24T00:17:51 Rebuild API documentation
Nick Wellnhofer 4f3eb8a3 2022-08-24T00:15:10 Support comments for global variables in documentation This was never implemented.
Nick Wellnhofer 288c951e 2022-08-24T00:12:59 Fix update call in apibuild.py There are still a few places where try/except is used for branching. This is a bad idea since it can hide errors like this one.
Nick Wellnhofer 92bb889b 2022-08-24T00:03:44 Don't index anything in DOC_DISABLE sections Somewhat misleadingly, the DOC_DISABLE directive only disabled warnings. Now we really stop the documentation generator from indexing. This results in additional warnings for xmlThrDef* functions. This should be fixed by documenting or deprecating them.
Nick Wellnhofer 75b5bc2b 2022-08-23T20:57:49 Deprecate some global variables Most of these should be completely unused.