Skip to content

registry: Add DTD error logging for libxml2 < 2.14#1017

Merged
wismill merged 3 commits intoxkbcommon:masterfrom
wismill:registry/better-xml-error
Apr 17, 2026
Merged

registry: Add DTD error logging for libxml2 < 2.14#1017
wismill merged 3 commits intoxkbcommon:masterfrom
wismill:registry/better-xml-error

Conversation

@wismill
Copy link
Copy Markdown
Member

@wismill wismill commented Apr 16, 2026

Fixed missing logging of libxml2 errors when validating the DTD for libxml2 < 2.14.

Relates-to: https://bugs.kde.org/show_bug.cgi?id=518963

@ariasuni

@wismill wismill added this to the 1.14.0 milestone Apr 16, 2026
@wismill wismill added the registry Indicates a need for improvements or additions to Registry label Apr 16, 2026
@ariasuni
Copy link
Copy Markdown

ariasuni commented Apr 16, 2026

I have the problem you’re referring to with libxml2 2.15.2-1 (Arch Linux).

@wismill
Copy link
Copy Markdown
Member Author

wismill commented Apr 16, 2026

@ariasuni Have you recompiled libxkbcommon with the libxml2-2.15 headers? Fix requires recompilation to take effect.

@wismill wismill force-pushed the registry/better-xml-error branch from eff0337 to 21af9f0 Compare April 17, 2026 09:38
wismill added 3 commits April 17, 2026 14:34
The libxml2 header probing did not specify the libxml2 dependency,
resulting in failure or success depending of the system.

The system include path is `/usr/include/libxml2/libxml`. Some systems
like openSUSE Tumbleweed have a symlink `/usr/include/libxml` →
`/usr/include/libxml2/libxml`, but some other do not (e.g. ArchLinux).

Fixed by specifying the libxml2 dependency in the header probing.
Fixed missing logging of libxml2 errors when validating the DTD for
libxml2 < 2.14.

Relates-to: https://bugs.kde.org/show_bug.cgi?id=518963
Meson 1.11.0 has a bug that prevents the build.

Relates-to: mesonbuild/meson#15702
Fixed-by: mesonbuild/meson#15706
@wismill wismill force-pushed the registry/better-xml-error branch from 21af9f0 to d7fecfa Compare April 17, 2026 12:35
@wismill
Copy link
Copy Markdown
Member Author

wismill commented Apr 17, 2026

@ariasuni OK I found the issue that triggers on your system and not mine: it is about include paths in the header probing.

The libxml2-devel package of openSUSE Tumbleweed provides the symlink /usr/include/libxml/usr/include/libxml2/libxml while ArchLinux (and Ubuntu) do not.

Fixed by specifying dependency properly in the header probing in meson.build.

@wismill wismill merged commit c57de78 into xkbcommon:master Apr 17, 2026
6 checks passed
@wismill wismill deleted the registry/better-xml-error branch April 17, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

registry Indicates a need for improvements or additions to Registry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants