package/libxkbcommon: provide xkbregistry when libxml2 is enabled
PATCH 1/1 package/libxkbcommon: provide xkbregistry when libxml2 is enabled
xkbregistry is disabled by default. Yet, it only needs libxml2 to be built, which is already supported.
Add the compile flags to build xkbregistry when possible.
--- package/libxkbcommon/libxkbcommon.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
package/libxkbcommon/libxkbcommon.mk +8 -2
@@ -12,8 +12,7 @@ LIBXKBCOMMON_CPE_ID_VENDOR = xkbcommon LIBXKBCOMMON_INSTALL_STAGING = YES LIBXKBCOMMON_DEPENDENCIES = host-bison host-flex LIBXKBCOMMON_CONF_OPTS = \ - -Denable-docs=false \ - -Denable-xkbregistry=false + -Denable-docs=false ifeq ($(BR2_PACKAGE_XORG7),y) LIBXKBCOMMON_CONF_OPTS += -Denable-x11=true
@@ -22,6 +21,13 @@ else LIBXKBCOMMON_CONF_OPTS += -Denable-x11=false endif +ifeq ($(BR2_PACKAGE_LIBXML2),y) +LIBXKBCOMMON_CONF_OPTS += -Denable-xkbregistry=true +LIBXKBCOMMON_DEPENDENCIES += libxml2 +else +LIBXKBCOMMON_CONF_OPTS += -Denable-xkbregistry=false +endif + ifeq ($(BR2_PACKAGE_LIBXKBCOMMON_TOOLS),y) LIBXKBCOMMON_CONF_OPTS += -Denable-tools=true else
---
base-commit: 08f3757b0f2133b0ed50e1ef3d7a5a1d9c80de1c
change-id: 20260527-master-2e5299aaa8ca
Best regards,
Signature · 6 lines
Raphaël Gallais-Pou <[email protected]> _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Raphaël,
Le 27/05/2026 à 21:53, Raphaël Gallais-Pou a écrit :
Quoted 15 lines
xkbregistry is disabled by default. Yet, it only needs libxml2 to be built, which is already supported.
Add the compile flags to build xkbregistry when possible.
Signed-off-by Raphaël Gallais-Pou <[email protected]>--- package/libxkbcommon/libxkbcommon.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)package/libxkbcommon/libxkbcommon.mk +0
-0
package/libxkbcommon/libxkbcommon.mk LIBXKBCOMMON_CPE_ID_VENDOR = xkbcommon · line 16
Quoted 5 lines
package/libxkbcommon/libxkbcommon.mk +0
-2@@ -12,8 +12,7 @@ LIBXKBCOMMON_CPE_ID_VENDOR = xkbcommon LIBXKBCOMMON_INSTALL_STAGING = YES LIBXKBCOMMON_DEPENDENCIES = host-bison host-flex LIBXKBCOMMON_CONF_OPTS = \ - -Denable-docs=false \ - -Denable-xkbregistry=false
xkbregistry has been disabled on purpose when libxkbcommon has been updated to 1.0.1 [1].
It seems to requires xkeyboard-config at runtime [2], can you verify?
[1]
https://gitlab.com/buildroot.org/buildroot/-/commit/1791bc30a5b19bb52366375d03e66348242ff25a
Best regards,
Romain
Quoted 23 lines
package/libxkbcommon/libxkbcommon.mk +8
-1+ -Denable-docs=false ifeq ($(BR2_PACKAGE_XORG7),y) LIBXKBCOMMON_CONF_OPTS += -Denable-x11=true@@ -22,6 +21,13 @@ else LIBXKBCOMMON_CONF_OPTS += -Denable-x11=false endif +ifeq ($(BR2_PACKAGE_LIBXML2),y) +LIBXKBCOMMON_CONF_OPTS += -Denable-xkbregistry=true +LIBXKBCOMMON_DEPENDENCIES += libxml2 +else +LIBXKBCOMMON_CONF_OPTS += -Denable-xkbregistry=false +endif + ifeq ($(BR2_PACKAGE_LIBXKBCOMMON_TOOLS),y) LIBXKBCOMMON_CONF_OPTS += -Denable-tools=true else ---base-commit:
08f3757b0f2133b0ed50e1ef3d7a5a1d9c80de1c
change-id: 20260527-master-2e5299aaa8ca
Quoted 8 lines
Best regards,
Signature · 6 lines
Raphaël Gallais-Pou <[email protected]> _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 1 line · Romain Naour
Hello Raphaël,
Hi,
Quoted 12 lines
Le 27/05/2026 à 21:53, Raphaël Gallais-Pou a écrit :
Quoted 10 lines
xkbregistry is disabled by default. Yet, it only needs libxml2 to be built, which is already supported.
Add the compile flags to build xkbregistry when possible.
Signed-off-by Raphaël Gallais-Pou <[email protected]>--- package/libxkbcommon/libxkbcommon.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
Quoted 13 lines
package/libxkbcommon/libxkbcommon.mk LIBXKBCOMMON_CPE_ID_VENDOR = xkbcommon · line 16
Quoted 10 lines
package/libxkbcommon/libxkbcommon.mk +0
-2@@ -12,8 +12,7 @@ LIBXKBCOMMON_CPE_ID_VENDOR = xkbcommon LIBXKBCOMMON_INSTALL_STAGING = YES LIBXKBCOMMON_DEPENDENCIES = host-bison host-flex LIBXKBCOMMON_CONF_OPTS = \ - -Denable-docs=false \ - -Denable-xkbregistry=falsexkbregistry has been disabled on purpose when libxkbcommon has been updated to 1.0.1 [1].
Indeed I haven't see this.
Quoted 2 lines
It seems to requires xkeyboard-config at runtime [2], can you verify?
Yes: libxkbcommon does not provide dataset, which is what xkeyboard-config is. From [2]:
It is [preferred] that libxkbregistry be split into a separate packages as most clients that require libxkbcommon do not require libxkbregistry and clients requiring libxkbregistry may not need libxkbcommon.
Does that mean that a libxkbregistry package needs to be created since it is independant from libxkbcommon ?
Best regards,
Raphaël
Quoted 33 lines
[1]
https://gitlab.com/buildroot.org/buildroot/-/commit/1791bc30a5b19bb52366375d03e66348242ff25aBest regards,
RomainQuoted 23 lines
package/libxkbcommon/libxkbcommon.mk +8
-1+ -Denable-docs=false ifeq ($(BR2_PACKAGE_XORG7),y) LIBXKBCOMMON_CONF_OPTS += -Denable-x11=true@@ -22,6 +21,13 @@ else LIBXKBCOMMON_CONF_OPTS += -Denable-x11=false endif +ifeq ($(BR2_PACKAGE_LIBXML2),y) +LIBXKBCOMMON_CONF_OPTS += -Denable-xkbregistry=true +LIBXKBCOMMON_DEPENDENCIES += libxml2 +else +LIBXKBCOMMON_CONF_OPTS += -Denable-xkbregistry=false +endif + ifeq ($(BR2_PACKAGE_LIBXKBCOMMON_TOOLS),y) LIBXKBCOMMON_CONF_OPTS += -Denable-tools=true else ---base-commit:
08f3757b0f2133b0ed50e1ef3d7a5a1d9c80de1c
change-id: 20260527-master-2e5299aaa8ca
Quoted 9 lines
Quoted 8 lines
Best regards,
--
Raphaël Gallais-Pou <[email protected]>_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Raphaël, All,
Le 06/07/2026 à 17:34, Raphaël Gallais-Pou a écrit :
Quoted 39 lines · Romain Naour
Quoted 1 line
Hello Raphaël,
Hi,
Quoted 12 lines
Le 27/05/2026 à 21:53, Raphaël Gallais-Pou a écrit :
Quoted 10 lines
xkbregistry is disabled by default. Yet, it only needs libxml2 to be built, which is already supported.
Add the compile flags to build xkbregistry when possible.
Signed-off-by Raphaël Gallais-Pou <[email protected]>---
package/libxkbcommon/libxkbcommon.mk| 10 ++++++++--1 file changed, 8 insertions(+), 2 deletions(-)Quoted 14 lines
Quoted 11 lines
package/libxkbcommon/ renamed from package/libxkbcommon/libxkbcommon.mk +0
-0libxkbcommon.mk
index21a2b937ef02..98154369b419100644package/libxkbcommon/libxkbcommon.mk +0
-0@@ -12,8 +12,7 @@ LIBXKBCOMMON_CPE_ID_VENDOR = xkbcommon
LIBXKBCOMMON_INSTALL_STAGING= YESLIBXKBCOMMON_DEPENDENCIES= host-bison host-flexLIBXKBCOMMON_CONF_OPTS= \
- -Denable-docs=false \
- -Denable-xkbregistry=falsexkbregistry has been disabled on purpose when libxkbcommon has been updated to 1.0.1 [1].
Indeed I haven't see this.
Quoted 2 lines
It seems to requires xkeyboard-config at runtime [2], can you verify?
Quoted 8 lines
Yes: libxkbcommon does not provide dataset, which is what xkeyboard-config is. From [2]:
It is [preferred] that libxkbregistry be split into a separate packages as most clients that require libxkbcommon do not require libxkbregistry and clients requiring libxkbregistry may not need libxkbcommon.Does that mean that a libxkbregistry package needs to be created since it is independant from libxkbcommon ?
I don't think so, I'm fine enabling xkbregistry when the optional libxml2 dependency is available, just take care of runtime dependencies. Maybe consider adding a new sub option for packages that need explicitly libxkbregistry.
libxkbregistry is packaged by libxkbcommon package in Fedora and Yocto, there is no separate package for it [1][2].
Note: Yocto add xkeyboard-config runtime dependency to libxkbcommon with x11 support, not xkbregistry itself.
Please, send an updated patch.
[1] https://src.fedoraproject.org/rpms/libxkbcommon/blob/f45/f/libxkbcommon.spec#_18
Best regards,
Romain
Quoted 47 lines
Best regards,
RaphaëlQuoted 42 lines
[1]
https://gitlab.com/buildroot.org/buildroot/-/
commit/1791bc30a5b19bb52366375d03e66348242ff25a[2]
https://github.com/xkbcommon/libxkbcommon/
blob/2c295b10aa87e9bd8c11954adcf7e92b031b92f9/PACKAGING#L61Best regards,
RomainQuoted 29 lines
+ -Denable-docs=false
ifeq ($(BR2_PACKAGE_XORG7),y)
LIBXKBCOMMON_CONF_OPTS+= -Denable-x11=truepackage/libxkbcommon/libxkbcommon.mk +0
-0@@ -22,6 +21,13 @@ else
LIBXKBCOMMON_CONF_OPTS+= -Denable-x11=false
endif
+ifeq ($(BR2_PACKAGE_LIBXML2),y)package/libxkbcommon/libxkbcommon.mk +6
-0+LIBXKBCOMMON_CONF_OPTS += -Denable-xkbregistry=true +LIBXKBCOMMON_DEPENDENCIES += libxml2 +else +LIBXKBCOMMON_CONF_OPTS += -Denable-xkbregistry=false +endif +ifeq ($(BR2_PACKAGE_LIBXKBCOMMON_TOOLS),y)
LIBXKBCOMMON_CONF_OPTS+= -Denable-tools=true
else---
base-commit:08f3757b0f2133b0ed50e1ef3d7a5a1d9c80de1c
change-id: 20260527-master-2e5299aaa8caBest regards,
Signature · 6 lines
Raphaël Gallais-Pou <[email protected]> _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot