Nick Wellnhofer
207b10cfee
Streamline documentation installation
...
Use Automake variables to install and distribute files. Remove
check-extra-dist.
2022-04-02 16:40:03 +02:00
Nick Wellnhofer
1366c5693d
Don't try to recreate COPYING symlink
...
Since automake is initialized with "foreign" for quite some while,
it shouldn't touch these files anymore.
2022-04-02 15:36:22 +02:00
Joey Arhar
b7b29df9c2
Add windows includes to xmlIO.c
...
xmlIO.c calls read() and getcwd() which need io.h and direct.h
respectively when compiling on windows. Otherwise, a compiler error may
be raised saying that read() and getcwd() were used implicitly.
This was regressed recently, I'm guessing it was due to the changes to
win32config.h in commit 84085a26
2022-03-31 01:11:06 +00:00
David Seifert
0137d9879b
python/tests: open() relative to test scripts
2022-03-30 22:00:50 +02:00
David Seifert
5c71ada83a
Detect libm using libtool's macros
2022-03-30 16:51:17 +02:00
David Seifert
dff686883c
configure.ac: disable static libraries by default
2022-03-30 16:51:16 +02:00
David Seifert
438209f3e1
python/Makefile.am: nest python docs in $(docdir)
2022-03-30 16:51:15 +02:00
David Seifert
9e30435358
python/Makefile.am: rely on global AM_INIT_AUTOMAKE
...
* Even Debian oldoldstable has Automake 1.15 available nowadays.
2022-03-30 16:51:14 +02:00
David Seifert
54e3f74bee
Makefile.am: install examples more idiomatically
2022-03-30 16:51:13 +02:00
David Seifert
7a4037bea2
configure.ac: remove useless AC_SUBST
...
* CPPFLAGS/LDFLAGS are always substituted
2022-03-30 16:51:12 +02:00
David Seifert
865520f048
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:
cc3bb736e9/textproc/libxml2/Portfile (L46)
2022-03-30 14:36:49 +00:00
jinsub ahn
74263eff5f
fix: xmlXPathParserContext could be double-delete in OOM case.
2022-03-30 06:02:31 +00:00
Vadim Zeitlin
e05491ae62
Ignore configure backup file created by recent autoreconf too
...
There is currently no way to disable the generation of this annoying
file, see https://savannah.gnu.org/support/?110417 , so just ignore it.
2022-03-29 15:49:01 +00:00
Nick Wellnhofer
9576654162
Only install *.html and *.c example files
2022-03-29 16:24:19 +02:00
Nick Wellnhofer
456a0bf6cb
Remove --with-html-dir option
...
Install documentation in $(docdir).
2022-03-29 16:24:19 +02:00
Nick Wellnhofer
7458096766
Rework documentation build system
...
Since several generated files are under version control, their
timestamps are essentially random and rebuilding documentation using
Makefile rules can't work reliably. Simply add a phony rebuild target
that regenerates the whole documentation and other files
unconditionally.
make -C doc rebuild
2022-03-29 16:24:19 +02:00
Nick Wellnhofer
fb3588842a
Remove old website
2022-03-29 16:24:19 +02:00
Nick Wellnhofer
991a9fc21c
Mark docbook symbols as removed
2022-03-29 16:24:19 +02:00
Nick Wellnhofer
649ddb4b2f
Port some test scripts to Python 3
2022-03-29 15:55:51 +02:00
Nick Wellnhofer
92bff86614
Fix calls to deprecated init/cleanup functions
...
Only use xmlInitParser/xmlCleanupParser.
2022-03-29 14:18:31 +02:00
David Seifert
d9335077dd
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
2022-03-29 13:37:16 +02:00
Nick Wellnhofer
9684954429
Revert "Continue to parse entity refs in recovery mode"
...
This reverts commit 84823b8634 which
exposed several other, potentially serious bugs.
Fixes #356 .
2022-03-22 19:11:05 +01:00
Nick Wellnhofer
83d5a87e37
Revert "Simplify recursive pthread mutex"
...
This reverts commit 5ffe2981b7 .
This reverts commit 4adb767763 .
Recursive mutexes are an XSI extension, so better not rely on them.
2022-03-18 15:50:44 +01:00
Nick Wellnhofer
2070ade6df
Undeprecate schema init functions
...
These functions aren't called from xmlInitParser, so it's better to keep
them public for now.
2022-03-10 01:24:31 +01:00
Nick Wellnhofer
8d06ccd479
Fix --without-debug build
...
Broken in commit 2cc93f77 .
Fixes #354 .
2022-03-09 22:37:38 +01:00
Nick Wellnhofer
5ffe2981b7
Fix weak pthread symbols after commit 4adb7677
...
Add missing mutexattr symbols.
2022-03-06 19:27:19 +01:00
Nick Wellnhofer
b35c55282d
Use critical sections as mutex on Windows
...
They're more lightweight than ordinary Windows mutexes. Also stop
counting recursive locks. This only hides potential locking bugs.
2022-03-06 16:01:59 +01:00
Nick Wellnhofer
4adb767763
Simplify recursive pthread mutex
...
Use a PTHREAD_MUTEX_RECURSIVE mutex instead of the hand-rolled approach.
2022-03-06 16:01:59 +01:00
Nick Wellnhofer
3241c47c1f
Use non-recursive mutex in dict.c
...
The mutex is never locked recursively.
2022-03-06 16:01:51 +01:00
Nick Wellnhofer
40483d0ce2
Deprecate module init and cleanup functions
...
These functions shouldn't be part of the public API. Most init
functions are only thread-safe when called from xmlInitParser. Global
variables should only be cleaned up by calling xmlCleanupParser.
2022-03-06 15:59:43 +01:00
Nick Wellnhofer
7d02c7291f
Fix parser progress checks
...
Testing the current input pointer for modification is unreliable since
the input buffer could have been freed and realloced. Check whether the
input id and the up-to-date number of bytes consumed match.
2022-03-06 02:33:01 +01:00
Nick Wellnhofer
4951c462ea
Avoid arithmetic on freed pointers
2022-03-06 02:29:00 +01:00
Nick Wellnhofer
84823b8634
Continue to parse entity refs in recovery mode
...
There doesn't seem to be a good reason to abort in xmlParseReference
if a well-formedness error was detected. Removing this check allows to
parse entity references after an error in recovery mode.
Fixes #270 .
2022-03-06 02:26:22 +01:00
Nick Wellnhofer
d99ddd9bd5
Improve buffer allocation scheme
...
In most places, we really need the double-it scheme to avoid quadratic
behavior. The hybrid scheme still can cause many reallocations and the
bounded scheme doesn't seem to provide meaningful protection in
xmlreader.c.
2022-03-06 02:26:22 +01:00
Nick Wellnhofer
422176ad29
Don't set HAVE_WIN32_THREADS in win32config.h
...
This flag must be set on the command line.
2022-03-06 02:09:29 +01:00
Nick Wellnhofer
10291f838f
Fix potential double-free in xmlXPtrStringRangeFunction
...
Fix double-free in an unlikely error condition. Thanks to Wentao Liang
for the report.
Fixes #341 .
2022-03-05 18:27:16 +01:00
Nick Wellnhofer
f2072a8b2f
Fix memory leak in xmlFindCharEncodingHandler
...
Fix memory leak in an unlikely error condition. Thanks to Wentao Liang
for the report.
Fixes #342 .
2022-03-05 18:27:12 +01:00
Nick Wellnhofer
57b81c208c
Normalize XPath strings in-place
...
Simplify the code and fix a potential memory leak.
Fixes #343 .
2022-03-05 18:22:51 +01:00
Nick Wellnhofer
ff36770845
Make examples a standalone HTML page
...
Also upload to GitLab Pages.
2022-03-05 17:51:58 +01:00
Nick Wellnhofer
28d0399682
Remove obsolete XML Software Autoupdate (XSA) file
2022-03-05 17:27:14 +01:00
Nick Wellnhofer
d4f90698f4
Add XML_DEPRECATED to ignored keywords
...
Fixes the API documentation generator.
2022-03-05 17:27:14 +01:00
Nick Wellnhofer
4a8c71eb7c
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.
2022-03-04 22:56:21 +01:00
Nick Wellnhofer
ebb1797030
Remove unneeded #includes
2022-03-04 22:11:49 +01:00
Nick Wellnhofer
f025d6ebd0
Use stdint.h with newer MSVC
...
stdint.h is available since Visual Studio 2010.
2022-03-04 22:08:58 +01:00
Nick Wellnhofer
84085a26e4
Remove cruft from win32config.h
2022-03-04 22:08:58 +01:00
Nick Wellnhofer
21ddad5284
Remove ICONV_CONST test
...
We can simply cast the offending pointer to (void *).
2022-03-04 22:08:58 +01:00
Joey Arhar
1a112c7ba2
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.
2022-03-04 09:05:36 -08:00
Nick Wellnhofer
ae3cf4831c
Remove isinf/isnan emulation in win32config.h
...
There's already a better fallback in xpath.c.
2022-03-03 23:57:59 +01:00
Nick Wellnhofer
bc06a522c1
Fix recursion check in xinclude.c
...
Compare the included URL with the document's URL to detect local
inclusions.
Fixes #348 .
2022-03-02 20:44:41 +01:00
Nick Wellnhofer
78d7a5ca3c
Update genChRanges.py
...
Remove trailing whitespace. The output now matches the generated files
in version control.
2022-03-02 20:40:41 +01:00