1
0
mirror of https://github.com/GNOME/libxml2.git synced 2025-10-17 16:21:34 +08:00
Commit Graph

950 Commits

Author SHA1 Message Date
Nick Wellnhofer
d9e1198c61 Redirect examples test output to /dev/null
Regressed in commit c61e1273.
2022-04-23 18:42:35 +02:00
Nick Wellnhofer
c61e12739f Fix warnings when testing --with-minimum build
There's no simple way to make the doc/examples tests handle different
configurations. But these tests aren't especially valuable, so remove
the result file checks.
2022-04-21 06:58:14 +02:00
Nick Wellnhofer
670701075b Add configuration flag for XPointer locations support
Add a new configuration flag that controls whether the outdated support
for XPointer locations (ranges and points) is enabled.

    --with-xptr-locs          # Autotools
    LIBXML2_WITH_XPTR_LOCS    # CMake

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.

The flag defaults to "off" and support for this extensions has to be
requested explicitly. The relevant API functions are deprecated.
2022-04-21 02:41:58 +02:00
Nick Wellnhofer
9a0be0dc4d Regenerate api.xml and testapi.c 2022-04-21 01:58:59 +02:00
David Seifert
a62b31f43f Use portable python shebangs
* In conda or Gentoo Prefix, we don't want to use the system python and
  instead rely on PATH lookup.
2022-04-06 19:57:30 +02:00
Nick Wellnhofer
e59aa6cab4 Move doc/examples tests to new test suite 2022-04-04 05:57:07 +02:00
Nick Wellnhofer
5ce893c0c4 Move regexp tests to runtest 2022-04-04 04:28:15 +02:00
Nick Wellnhofer
48b03c8479 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.
2022-04-04 04:14:55 +02:00
Nick Wellnhofer
bf2436acf5 Update xml2-config man page 2022-04-03 19:02:34 +02:00
Nick Wellnhofer
61b78b0aa6 Consolidate man pages
Move xml2-config.1 into doc directory. Remove outdated libxml.3.
2022-04-03 18:42:59 +02:00
Nick Wellnhofer
7016b0e099 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
2022-04-03 14:08:43 +02:00
Nick Wellnhofer
e163764607 Rename xmlcatalog_man.xml 2022-04-02 16:42:33 +02:00
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
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
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
6117700e2c Remove special configuration for certain maintainers 2022-02-20 21:49:05 +01:00
Nick Wellnhofer
346c3a930c Remove elfgcchack.h
The same optimization can be enabled with -fno-semantic-interposition
since GCC 5. clang has always used this option by default.
2022-02-20 21:49:04 +01:00
Nick Wellnhofer
04d4124c15 Update news and rebuild documentation 2022-02-19 19:26:42 +01:00
Nick Wellnhofer
f2ad86fa60 Remove SVN keyword anchors 2022-02-17 19:05:26 +01:00
Nick Wellnhofer
b041d829a2 Remove xmlwin32version.h
This file was undocumented and never used anywhere. Maybe users were
supposed to rename this file to xmlversion.h manually. These days, both
CMake and win32/configure.js generate xmlversion.h from xmlversion.h.in,
just like the Autotools build.
2022-02-16 19:55:30 +01:00
Nick Wellnhofer
8eb0693746 Remove outdated ChangeLog code
The ChangeLog is from pre-Git times.
2022-02-14 01:01:23 +01:00
Nick Wellnhofer
1089111142 Redirect links to xmlsoft.org
Documentation and releases are now available on gitlab.gnome.org.
2022-02-13 23:10:00 +01:00
Nick Wellnhofer
4f2693a1ef Remove README.docs
This was just a partial copy of the main README.
2022-02-13 23:10:00 +01:00
Nick Wellnhofer
b0e6eb97d9 Remove xmltutorial.pdf
We already have an HTML version.
2022-02-13 23:10:00 +01:00
Nick Wellnhofer
fcd4c5b824 Document how to escape XML_CATALOG_FILES
Fixes #309.
2022-02-07 19:22:45 +01:00
Nick Wellnhofer
00e618eb0a Remove old devhelp format
See #295.
2022-01-17 21:39:27 +01:00
Kjell Ahlstedt
66fb340a0d Update URL for libxml++ C++ binding
Fixes #267
2022-01-16 15:07:40 +01:00
Mattia Rizzolo
9675345048 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>
2022-01-16 14:59:02 +01:00
Emmanuele Bassi
3ba59b9349 Generate devhelp2 index file
The devhelp2 format was introduced in 2005, and the devhelp format was
deprecated in 2017.

Fixes: https://gitlab.gnome.org/GNOME/libxml2/-/issues/295
2022-01-16 14:32:14 +01:00
Jan Tojnar
e6adc19fff man: Mention XML_CATALOG_FILES is space-separated
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=781274
2022-01-16 14:03:07 +01:00
Rainer M. Canavan
bdd482c2ec add documentaiton for xmllint exit code 10
Closes: https://gitlab.gnome.org/GNOME/libxml2/-/issues/280
2022-01-16 13:59:57 +01:00
David King
2c0f2f0341 Fix some validation errors in the FAQ
Move paragraphs inside li elements.
2021-05-23 11:57:12 +02:00
Daniel Veillard
e1bcffea18 Release of libxml2-2.9.11
Prompted by CVE-2021-3541, but this includes an awful lot of serious bug
fixes by Nick and others.
- configure.ac: bumped to new release
- doc/* updated and regenerated
2021-05-13 15:35:21 +02:00
Andre Klapper
d6761e706f Update to Devhelp index file format version 2
Fixes #89
2020-07-13 12:18:24 +02:00
Martin Vidner
43a8836cde Fix rebuilding docs, by hiding __attribute__((...)) behind a macro.
When enabled via `./configure --enable-rebuild-docs`,
`make -C doc libxml2-api.xml` will invoke apibuild.py
to rebuild libxml2-api.xml from the sources.
But the code added in
9fa3200cb3 made it error out with

```
Parsing ../parser.c
Parse Error: parsing type : expecting a name
('Got token ', ('sep', '('))
('Last token: ', ('sep', '('))
('Token queue: ', [('name', 'destructor'), ('sep', ')'), ('sep', ')')])
('Line 14689 end: ', '')
```
2020-06-24 19:55:52 +02:00
Nick Wellnhofer
20c60886e4 Fix typos
Resolves #133.
2020-03-08 17:41:53 +01:00
Nick Wellnhofer
c2e09f445c Add xmlPopOutputCallbacks
Add function to pop a single set of output callbacks from the stack.
This was only implemented for input callbacks before.

Fixes #135.
2020-02-11 11:32:23 +01:00
Daniel Veillard
41a34e1f4f Release of libxml2-2.9.10
* configure.ac doc/xml.html: updated for the release
* doc/*: regenerated docs, APIs, etc ...
2019-10-30 20:14:56 +01:00
Daniel Veillard
9acef28928 Fix some release issues on Fedora 30
* doc/Makefile.am: xzlib.html seems not generated anymore since it
  was only containing an internal define we can drop it
* libxml.spec.in: don't run python tests as part of %check as this
  is now breaking on F30
2019-10-23 18:13:08 +02:00
Nick Wellnhofer
64966ebefd Rebuild docs 2019-09-30 18:05:45 +02:00
Nick Wellnhofer
2e55f6dc67 Make apibuild.py ignore ATTRIBUTE_NO_SANITIZE 2019-09-30 18:05:45 +02:00
Jared Yanovich
2a350ee9b4 Large batch of typo fixes
Closes #109.
2019-09-30 18:04:38 +02:00
Nick Wellnhofer
80b110a95d Mark xmlExp* symbols as removed 2019-09-30 15:47:30 +02:00