libtsm: add recipe for kmscon dependency
PATCH v4 1/2 libtsm: add recipe for kmscon dependency
---
v1 -> v2: add tag=v${PV} to the SRC_URI
.../recipes-graphics/libtsm/libtsm_4.4.0.bb | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 meta-oe/recipes-graphics/libtsm/libtsm_4.4.0.bb
meta-oe/recipes-graphics/libtsm/libtsm_4.4.0.bb new file +35 -0
@@ -0,0 +1,35 @@ +SUMMARY = "Terminal Emulator State Machine" +DESCRIPTION = "\ + TSM is a state machine for DEC VT100-VT520 compatible terminal emulators. \ + It tries to support all common standards while keeping compatibility to \ + existing emulators like xterm, gnome-terminal, konsole, etc. \ + TSM itself does not provide any rendering nor window management. It is a \ + simple plain state machine without any external dependencies. It can be \ + used to implement terminal emulators, but also to implement other \ + applications that need to interpret terminal escape sequences. \ +" +HOMEPAGE = "https://github.com/kmscon/libtsm" +BUGTRACKER = "https://github.com/kmscon/libtsm/issues" +CVE_PRODUCT = "libtsm" +SECTION = "libs" + +LICENSE = "MIT & LGPL-2.1-or-later" +LIC_FILES_CHKSUM = "\ + file://COPYING;md5=69e8256cdc4e949f86fedf94b1b320b4 \ + file://LICENSE_htable;md5=2d5025d4aa3495befef8f17206a5b0a1 \ +" + +DEPENDS = "xkeyboard-config" + +SRC_URI = "git://github.com/kmscon/libtsm;protocol=https;branch=main;tag=v${PV}" +SRCREV = "0d33498a6de3619628f7802a0c76fc98c8773d5b" + +inherit meson pkgconfig + +EXTRA_OEMESON:append = " \ + -Dextra_debug=false \ + -Dtests=false \ + -Dgtktsm=false \ +" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.52.0
PATCH v4 2/2 kmscon: Add recipe
Provide sane defaults that do not have dependencies, such as a dummy and terminal session support and basic fbdev support.
[email protected] must be added separatly or elsedo_rootfs fails with the following error:
```
do_rootfs: Postinstall scriptlets of ['kmscon'] have failed. If the intention
is to defer them to first boot, then please place them into
pkg_postinst_ontarget:${PN} (). Deferring to first boot via 'exit 1' is no
longer supported.
```Add a small patch to fix a compiling error when using LLVM as the preferred toolchain.
---
v1 -> v2: add tag=v${PV} to the SRC_URI
v2 -> v3: Add a small patch to fix LLVM compiling errors
v3 -> v4: Fix packaging errors when systemd and usrmerge are not in DISTRO_FEATURES
..._conf.c-Fix-llvm-compilation-failure.patch | 40 +++++++++++ .../recipes-graphics/kmscon/kmscon_9.2.1.bb | 71 +++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 meta-oe/recipes-graphics/kmscon/files/0001-kmscon_conf.c-Fix-llvm-compilation-failure.patch create mode 100644 meta-oe/recipes-graphics/kmscon/kmscon_9.2.1.bb
meta-oe/recipes-graphics/kmscon/files/0001-kmscon_conf.c-Fix-llvm-compilation-failure.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 03a330d486132e3798a125d26d4f10252ffd8e2d Mon Sep 17 00:00:00 2001 +From: Adam Duskett <[email protected]> +Date: Fri, 16 Jan 2026 11:35:39 +0100 +Subject: [PATCH] kmscon_conf.c: Fix llvm compilation failure + +When building with an LLVM toolchain, the follow error occurs: + +``` +kmscon_conf.c:757:72: +error: expression which evaluates to zero treated as a null pointer constant +of type 'void *' [-Werror,-Wnon-literal-null-conversion] +CONF_OPTION(0, 0, "gpus", &conf_gpus, NULL, NULL, NULL, &conf->gpus, KMSCON_GPU_ALL), + ^~~~~~~~~~~~~~ +1 error generated. +``` + +Fix the error by adding a cast to (void *). + +Upstream-Status: Submitted [https://github.com/kmscon/kmscon/pull/225] +Signed-off-by: Adam Duskett <[email protected]> +--- + src/kmscon_conf.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/kmscon_conf.c b/src/kmscon_conf.c +index df2e51d..9e9a839 100644 +--- a/src/kmscon_conf.c ++++ b/src/kmscon_conf.c +@@ -754,7 +754,7 @@ int kmscon_conf_new(struct conf_ctx **out) + /* Video Options */ + CONF_OPTION_BOOL_FULL(0, "drm", aftercheck_drm, NULL, NULL, &conf->drm, true), + CONF_OPTION_BOOL(0, "hwaccel", &conf->hwaccel, false), +- CONF_OPTION(0, 0, "gpus", &conf_gpus, NULL, NULL, NULL, &conf->gpus, KMSCON_GPU_ALL), ++ CONF_OPTION(0, 0, "gpus", &conf_gpus, NULL, NULL, NULL, &conf->gpus, (void *)KMSCON_GPU_ALL), + CONF_OPTION_STRING(0, "render-engine", &conf->render_engine, NULL), + CONF_OPTION_BOOL(0, "use-original-mode", &conf->use_original_mode, true), + CONF_OPTION_STRING(0, "mode", &conf->mode, NULL), +-- +2.52.0 +
meta-oe/recipes-graphics/kmscon/kmscon_9.2.1.bb new file +71 -0
71 lines not on this page · raw message
Signature · 1 line
2.52.0
while I have accepted this patch, there remains one problem to address
WARNING: Nothing PROVIDES 'nativesdk-xkeyboard-config' (but virtual:nativesdk:/home/kraj200/yoe/sources/meta-openembedded/meta-oe/recipes-graphics/libtsm/ libtsm_4.4.0.bb DEPENDS on or otherwise requires it). Close matches:
nativesdk-gnu-config
nativesdk-pkgconfig
xkeyboard-config
It is because it has
BBCLASSEXTEND = "native nativesdk"
and has DEPENDS = "xkeyboard-config"
but there is no package for nativesdk-xkeyboard-config, xkeyboard-config is provided by oe-core
so, please extend the xkeyboard-config to nativesdk or if nativesdk is not needed remove extending libtsm for nativesdk.
Quoted 72 lines · Adam Duskett via lists.openembedded.org
Signed-off-by Adam Duskett <[email protected]>---
v1 -> v2: add tag=v${PV} to theSRC_URI.../recipes-graphics/libtsm/libtsm_4.4.0.bb | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 meta-oe/recipes-graphics/libtsm/libtsm_4.4.0.bbmeta-oe/recipes-graphics/libtsm/libtsm_4.4.0.bb new file +3
-0@@ -0,0 +1,35 @@ +SUMMARY = "Terminal Emulator State Machine" +DESCRIPTION = "\ + TSM is a state machine for DEC VT100-VT520 compatible terminalemulators. \
+ It tries to support all common standards while keeping compatibility
to \meta-oe/recipes-graphics/libtsm/libtsm_4.4.0.bb new file +2
-0+ existing emulators like xterm, gnome-terminal, konsole, etc. \ + TSM itself does not provide any rendering nor window management. Itis a \
+ simple plain state machine without any external dependencies. It can
be \meta-oe/recipes-graphics/libtsm/libtsm_4.4.0.bb new file +17
-0+ used to implement terminal emulators, but also to implement other \ + applications that need to interpret terminal escape sequences. \ +" +HOMEPAGE = "https://github.com/kmscon/libtsm" +BUGTRACKER = "https://github.com/kmscon/libtsm/issues" +CVE_PRODUCT = "libtsm" +SECTION = "libs" + +LICENSE = "MIT & LGPL-2.1-or-later" +LIC_FILES_CHKSUM = "\ + file://COPYING;md5=69e8256cdc4e949f86fedf94b1b320b4 \ + file://LICENSE_htable;md5=2d5025d4aa3495befef8f17206a5b0a1 \ +" + +DEPENDS = "xkeyboard-config" + +SRC_URI = "git://github.com/kmscon/libtsm;protocol=https;branch=main;tag=v${PV}
<http://github.com/kmscon/libtsm;protocol=https;branch=main;tag=v$%7BPV%7D>
"meta-oe/recipes-graphics/libtsm/libtsm_4.4.0.bb new file +11
-1+SRCREV = "0d33498a6de3619628f7802a0c76fc98c8773d5b" + +inherit meson pkgconfig + +EXTRA_OEMESON:append = " \ + -Dextra_debug=false \ + -Dtests=false \ + -Dgtktsm=false \ +" + +BBCLASSEXTEND = "native nativesdk" --2.52.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#123663):
https://lists.openembedded.org/g/openembedded-devel/message/123663
Mute This Topic: https://lists.openembedded.org/mt/117361246/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-