1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-02-05 05:47:00 +03:00

40 Commits

Author SHA1 Message Date
Nick Wellnhofer
84a4f84c1c build: Don't check for required headers and functions
Unless we are on Windows, the following POSIX headers are required.
They're part of the earliest POSIX specs and it doesn't make sense to
check for them.

- fcntl.h
- unistd.h
- sys/stat.h
- sys/time.h

On Windows, io.h, fcntl.h and sys/stat.h are always available.
2024-06-22 18:41:00 +02:00
Nick Wellnhofer
dc6f55cf6e build: Remove check for IPv6
Only check for availability of netdb.h.
2024-06-22 18:41:00 +02:00
Nick Wellnhofer
02326d72d3 build: Remove socklen_t checks
socklen_t has been mandated by POSIX for ages. Always use "socklen_t" or
"int" on Win32.
2024-06-22 00:40:40 +02:00
Rosen Penev
88cc61e3e6 meson: simplify thread_local check
Use a simple loop.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-21 14:48:31 -07:00
Rosen Penev
34fe4b8863 meson: simplify IPv6 check
We only need to find AF_INET6. Also make it a feature.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-21 14:48:30 -07:00
Rosen Penev
609c51c587 meson: simplify socklen_t check
Use a simple loop.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-21 14:39:08 -07:00
Nick Wellnhofer
c2ccbc0fed meson: Implement option dependencies
This also removes the FreeBSD hack.
2024-06-21 23:13:17 +02:00
Nick Wellnhofer
7ba6c8feea autotools: Remove libxml-2.0-uninstalled.pc 2024-06-21 13:51:09 +02:00
Rosen Penev
5803ad26b5 meson: change history to a feature
Simpler.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-21 00:12:58 +00:00
Rosen Penev
e9948ee56c meson: change readline to a feature
Simpler and easier to force enable.

Also removed wrong curses check. This is meant for static readline and
not needed with meson.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-21 00:12:58 +00:00
Heiko Becker
a4517bfeaf meson: Add libxml2 part of include dir to pc file
The autotools build results in a pkgconfig file, which looks like this:

"
...
includedir=${prefix}/include
...
Cflags: -I${includedir}/libxml2
"

The latter part is missing when built with meson.
2024-06-20 20:38:19 +00:00
Rosen Penev
1d8bd1262b meson: fix icu and iconv om BSDs again
libdir is needed when searching for iconv, not includedir.

Remove OpenBSD from the bsd list. Something is wrong there and iconv.h
is installed somewhere else.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-18 11:12:07 +00:00
Rosen Penev
f61d23b8c6 meson: only apply threads_dep to runtest
Not needed elsewhere.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-17 12:57:59 -07:00
Rosen Penev
b4b4162fc7 meson: fix compilation on BSDs with icu+iconv
on BSDs, icu is installed and included from /usr/local. When found,
libiconv headers override the normal ones and thus result in a missing
link. Work around this oddity and add the link.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-16 19:47:47 -07:00
Rosen Penev
915951b87b meson: add DEFS to CFLAGS
Adding a configuration flag as an include directory is wrong and errors
on BSDs.

ERROR: Include dir -DU_DISABLE_RENAMING=1 does not exist.

Matches the autotools build now.

Requires has_argument to fix non BSDs because of an annoying meson
quirk.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-16 19:43:44 -07:00
Nick Wellnhofer
3848802723 xmllint: Support libreadline without history 2024-06-17 00:54:47 +02:00
Nick Wellnhofer
33a1f8978d legacy: Merge SAX.c into legacy.c 2024-06-16 19:17:41 +02:00
Nick Wellnhofer
1341deac13 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.
2024-06-16 18:47:12 +02:00
Nick Wellnhofer
481fd6bbee tests: Remove testThreads.c
This was merged into runtest.c some time ago.
2024-06-16 18:47:12 +02:00
Nick Wellnhofer
b0fc67aa22 build: Remove --with-tree configuration option
This option would allow for a smaller, but mostly useless minimal build.
But it complicates the symbol availability logic in an insane way and
requires specialized tools like our custom C parser in doc/apibuild.py.

See #717.
2024-06-16 18:47:12 +02:00
Nick Wellnhofer
898e5a1442 build: Remove compiler TLS warning 2024-06-15 20:17:18 +02:00
Nick Wellnhofer
e714f506e4 build: Stop installing libxml.m4
This file is deprecated and unmaintained. It will be kept in the source
tree for a while.
2024-06-15 20:14:03 +02:00
Nick Wellnhofer
669bd34993 xpointer: Remove support for XPointer locations
The latest spec for what it essentially an XPath extension seems to be
this working draft from 2002:

    https://www.w3.org/TR/xptr-xpointer/

The xpointer() scheme is listed as "being reviewed" in the XPointer
registry since at least 2006. libxml2 seems to be the only modern
software that tries to implement this spec, but the code has many bugs
and quality issues.

If you configure --with-legacy, old symbols are retained for ABI
compatibility.
2024-06-12 18:20:01 +02:00
Nick Wellnhofer
dba1ed85a3 ftp: Remove FTP support
Remove the built-in FTP client. If you configure --with-legacy, old
symbols are retained for ABI compatibility.
2024-06-12 18:19:55 +02:00
Rosen Penev
f227086380 meson: convert boolean options to feature option
Simpler. Seems like they're only disabled by minimum.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-06 17:13:41 -07:00
Andrew Potter
ed3e53de0e meson: Pass LIBXML_STATIC in dependency 2024-06-06 22:27:54 +00:00
Rosen Penev
16d914a9f3 meson: fix compilation with local binaries
threads_dep is needed for runtest.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-03 17:20:10 -07:00
Rosen Penev
4b2f250a5b meson: don't use dl dependency on old meson
dl dependency was introduced with version 0.62.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-03 14:33:52 -07:00
Rosen Penev
0160127fda meson: fix usage as a subproject
include directories must be passed to that projects can use headers.

Also add override_dependencies to make sure that it's used when
available as a subproject.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-03 14:33:07 -07:00
Nick Wellnhofer
e349709ae7 build: Remove --with-fexceptions configuration option 2024-05-21 21:07:16 +02:00
Nick Wellnhofer
f524993e70 build: Clean up configuration options
Remove run-debug from meson. Fix documentation.
2024-05-21 21:05:32 +02:00
Nick Wellnhofer
11ce63f02b build: Don't check for isascii 2024-05-21 20:40:30 +02:00
Nick Wellnhofer
6f2a597383 build: Don't check for uint32_t 2024-05-21 20:40:30 +02:00
Nick Wellnhofer
e80f27fc81 build: Don't check for inttypes.h
This header isn't used.
2024-05-21 18:37:57 +02:00
Nick Wellnhofer
bd7cafdbce meson: Add some TODO comments 2024-05-20 23:59:55 +02:00
Nick Wellnhofer
3018842c07 build: Disable HTTP support by default 2024-05-20 23:59:55 +02:00
Nick Wellnhofer
609d2666fa Stop defining _REENTRANT
This macro is obsolete, see `man feature_test_macros`.
2024-05-13 13:08:14 +02:00
Nick Wellnhofer
bffef46c4c doc: Don't install example code 2024-04-28 22:58:06 +02:00
Nick Wellnhofer
1cdfece12b memory: Remove memory debugging
This is useless compared to sanitizers or valgrind and has a
considerable performance impact if enabled accidentally.
2024-04-28 20:42:55 +02:00
Vincent Torri
5732ce56f3 meson: Initial commit 2024-04-04 12:23:39 +02:00