public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kmscon] f43: Update to v10.1.1
@ 2026-11-05 14:44 Jocelyn Falempe
  0 siblings, 0 replies; only message in thread
From: Jocelyn Falempe @ 2026-11-05 14:44 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/kmscon
            Branch : f43
            Commit : 17a2c7cb4a87103d18949063299924ac718a02cf
            Author : Jocelyn Falempe <jfalempe@redhat.com>
            Date   : 2026-11-05T13:15:59+01:00
            Stats  : +5/-214 in 8 file(s)
            URL    : https://src.fedoraproject.org/rpms/kmscon/c/17a2c7cb4a87103d18949063299924ac718a02cf?branch=f43

            Log:
            Update to v10.1.1

 * seat: don't use VT_WAITACTIVE by @kdj0c in #603
 * font_freetype: fallback to non-monospace fonts for uncovered languages by @tagoh in #598
 * libseat: remove input open/close callback in case of error by @kdj0c in #605

Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>

---
diff --git a/.gitignore b/.gitignore
index 1aa5386..d0ce139 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,5 @@
 /kmscon-10.0.2.tar.gz
 /kmscon-10.0.3.tar.gz
 /kmscon-10.0.4.tar.gz
+/kmscon-10.1.0.tar.gz
+/kmscon-10.1.1.tar.gz

diff --git a/drm_shared-Fix-crash-if-a-plane-has-no-properties.patch b/drm_shared-Fix-crash-if-a-plane-has-no-properties.patch
deleted file mode 100644
index b533750..0000000
--- a/drm_shared-Fix-crash-if-a-plane-has-no-properties.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From 77e6ced76709fc53ee1d9c9368d62ff65d971f26 Mon Sep 17 00:00:00 2001
-From: Jocelyn Falempe <jfalempe@redhat.com>
-Date: Sat, 3 Oct 2026 00:28:01 +0200
-Subject: [PATCH] drm_shared: Fix crash if a plane has no properties
-
-When testing newer kernel 7.3.0, it can happen that a plane has no
-properties at all.
-Check that there are properties before iterating on them.
-
-Also fix the same problem for the cursor plane
-
-Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
----
- src/video/drm_shared.c | 5 ++++-
- 1 file changed, 4 insertions(+), 1 deletion(-)
-
-diff --git a/src/video/drm_shared.c b/src/video/drm_shared.c
-index e4fd870..bb5c3f7 100644
---- a/src/video/drm_shared.c
-+++ b/src/video/drm_shared.c
-@@ -255,6 +255,9 @@ static int modeset_find_plane(int fd, struct display *disp)
- 			drmModeObjectPropertiesPtr props =
- 				drmModeObjectGetProperties(fd, plane_id, DRM_MODE_OBJECT_PLANE);
- 
-+			if (!props)
-+				continue;
-+
- 			plane_type = get_property_value(fd, props, "type");
- 			if (!found_primary && plane_type == DRM_PLANE_TYPE_PRIMARY) {
- 				found_primary = true;
-@@ -311,7 +314,7 @@ static void modeset_clear_cursor(drmModeAtomicReq *req, int fd)
- 		}
- 		drmModeObjectPropertiesPtr props =
- 			drmModeObjectGetProperties(fd, plane_id, DRM_MODE_OBJECT_PLANE);
--		if (get_property_value(fd, props, "type") == DRM_PLANE_TYPE_CURSOR) {
-+		if (props && get_property_value(fd, props, "type") == DRM_PLANE_TYPE_CURSOR) {
- 			uint32_t prop_id = get_property_id(fd, props, "CRTC_ID");
- 
- 			if (drmModeAtomicAddProperty(req, plane_id, prop_id, 0) < 0)
--- 
-2.55.0
-

diff --git a/freetype-Fix-memory-leak-when-loading-fallback-font.patch b/freetype-Fix-memory-leak-when-loading-fallback-font.patch
deleted file mode 100644
index e806301..0000000
--- a/freetype-Fix-memory-leak-when-loading-fallback-font.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From c4c7c3ffd3056698a33c9b18b4a66510a57c1a6a Mon Sep 17 00:00:00 2001
-From: Jocelyn Falempe <jfalempe@redhat.com>
-Date: Thu, 8 Oct 2026 13:59:01 +0200
-Subject: [PATCH] freetype: Fix memory leak when loading fallback font.
-
-font->name is the main font name, so when loading a fallback font,
-the name was replaced by the fallback, leaking the main font name.
----
- src/font/font_freetype.c | 7 ++-----
- 1 file changed, 2 insertions(+), 5 deletions(-)
-
-diff --git a/src/font/font_freetype.c b/src/font/font_freetype.c
-index 2ecdbee..86ff897 100644
---- a/src/font/font_freetype.c
-+++ b/src/font/font_freetype.c
-@@ -462,10 +462,7 @@ static FT_Face prepare_tmp_face(FT_Library ft, struct ft_font *font, int fallbac
- 	if (!pattern)
- 		return NULL;
- 
--	if (FcPatternGetString(pattern, FC_FULLNAME, 0, &full_name) == FcResultMatch)
--		font->name = strdup((char *)full_name);
--	else
--		font->name = strdup("Unknown");
-+	FcPatternGetString(pattern, FC_FULLNAME, 0, &full_name);
- 
- 	if (FcPatternGetString(pattern, FC_FILE, 0, &path) != FcResultMatch)
- 		goto err_pattern;
-@@ -473,7 +470,7 @@ static FT_Face prepare_tmp_face(FT_Library ft, struct ft_font *font, int fallbac
- 	if (FcPatternGetInteger(pattern, FC_INDEX, 0, &index) != FcResultMatch)
- 		log_warn("%s: failed to get face index", path);
- 
--	log_debug("Loading fallback font %s %s", font->name, (char *)path);
-+	log_debug("Loading fallback font %s %s", (char *)full_name, (char *)path);
- 
- 	err = FT_New_Face(ft, (char *)path, index, &face);
- 	if (err)
--- 
-2.55.0
-

diff --git a/freetype-filter-out-non-monospace-fonts-completely.patch b/freetype-filter-out-non-monospace-fonts-completely.patch
deleted file mode 100644
index 2509d94..0000000
--- a/freetype-filter-out-non-monospace-fonts-completely.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-From 5bbd44757f0a2a724060277f53d216d143eae8ab Mon Sep 17 00:00:00 2001
-From: Akira TAGOH <akira@tagoh.org>
-Date: Thu, 8 Oct 2026 19:21:30 +0900
-Subject: [PATCH] freetype: filter out non-monospace fonts completely
-
-kmscon renders into fixed cells, so it must only ever use monospace
-fonts. Requesting monospace spacing on the query pattern merely re-ranks
-the results: proportional fonts remain in the sorted font set and are
-still chosen during glyph fallback for a character the monospace fonts
-don't cover (e.g. Arabic falls back to the proportional Vazirmatn when
-no monospace Arabic font is installed).
-
-Pre-filter the fontconfig font set with FcConfigSetFontSetFilter() so
-non-monospace fonts are dropped before the font list is built and can
-never be selected. As a consequence, a script with no monospace font
-available is left unrenderable rather than shown with a misaligned
-proportional glyph.
-
-This change requires fontconfig >= 2.16.0.
----
- meson.build                |   1 +
- src/font/font_freetype.c   |  14 +++
- tests/meson.build          |  16 +++
- tests/test_font_freetype.c | 221 +++++++++++++++++++++++++++++++++++++
- 4 files changed, 252 insertions(+)
- create mode 100644 tests/test_font_freetype.c
-
-diff --git a/meson.build b/meson.build
-index f34baa6..3563084 100644
---- a/meson.build
-+++ b/meson.build
-@@ -94,6 +94,7 @@ freetype_deps = dependency(
- )
- fontconfig_deps = dependency(
-     'fontconfig',
-+    version: '>=2.16.0',  # FcConfigSetFontSetFilter()
-     disabler: true,
-     required: get_option('font_freetype'),
- )
-diff --git a/src/font/font_freetype.c b/src/font/font_freetype.c
-index e1dd9ec..2ecdbee 100644
---- a/src/font/font_freetype.c
-+++ b/src/font/font_freetype.c
-@@ -204,6 +204,19 @@ err:
- 	return -EINVAL;
- }
- 
-+static FcBool _fc_monospace_font_filter_func(const FcPattern *pat, void *user_data)
-+{
-+	int spacing;
-+
-+	if (FcPatternGetInteger(pat, FC_SPACING, 0, &spacing) == FcResultMatch) {
-+		if (spacing == FC_CHARCELL || spacing == FC_MONO ||
-+		    spacing == FC_DUAL)
-+			return FcTrue;
-+	}
-+	/* non-monospace font doesn't have FC_SPACING property */
-+	return FcFalse;
-+}
-+
- static int kmscon_font_freetype_init(struct kmscon_font *out, const char *name, unsigned int height)
- {
- 	struct ft_data *ftf;
-@@ -220,6 +233,7 @@ static int kmscon_font_freetype_init(struct kmscon_font *out, const char *name,
- 		log_err("Failed to initialize FreeType\n");
- 		goto err_free;
- 	}
-+	FcConfigSetFontSetFilter(NULL, _fc_monospace_font_filter_func, NULL, NULL);
- 	if (prepare_font(ftf->ft, &ftf->regular, name, height, false, out))
- 		goto err_done;
- 
--- 
-2.55.0
-

diff --git a/kmscon.spec b/kmscon.spec
index 3d0a388..3f972ba 100644
--- a/kmscon.spec
+++ b/kmscon.spec
@@ -1,5 +1,5 @@
 Name:           kmscon
-Version:        10.0.4
+Version:        10.1.1
 Release:        %autorelease
 Summary:        Linux KMS/DRM based virtual Console Emulator
 # MIT for the source code, and OFL-1.1 for the unifont font.
@@ -12,6 +12,7 @@ BuildRequires:  libtsm-devel >= 4.8.0
 BuildRequires:  meson
 BuildRequires:  ncurses
 BuildRequires:  gcc
+BuildRequires:  gnu-free-mono-fonts
 BuildRequires:  pkg-config
 BuildRequires:  xsltproc
 BuildRequires:  xz

diff --git a/sources b/sources
index 117b8b3..f7e4360 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (kmscon-10.0.4.tar.gz) = 885e053ee6109c46edfee50df92fb9caad567b633df2760f37e25c2757fb874d413aed1c1de75c0d3fbc2169fe66f6e63ed16ece78f9b0f79aa72cbc91f3bab3
+SHA512 (kmscon-10.1.1.tar.gz) = 8c64e711d0ff4d32e1ebfc2c3bb3a6d9d8c3fbbe616e35c6cb0b66416449e35cbc225d5bb5547a00f0de6ccc3ec5034f8c3bb8bc89eee83ce61c0618ce09e199

diff --git a/systemd-prevent-kmscon.service-to-run-if-dev-tty0-is.patch b/systemd-prevent-kmscon.service-to-run-if-dev-tty0-is.patch
deleted file mode 100644
index 2531ba9..0000000
--- a/systemd-prevent-kmscon.service-to-run-if-dev-tty0-is.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 8af81edc3e0e93aed8447573f74f323ea97aaaf5 Mon Sep 17 00:00:00 2001
-From: Jocelyn Falempe <jfalempe@redhat.com>
-Date: Mon, 28 Sep 2026 10:09:16 +0200
-Subject: [PATCH] systemd: prevent kmscon.service to run if /dev/tty0 is
- present
-
-kmscon.service shouldn't be run when VTs are present. Use kmsconvt@
-service instead
----
- scripts/systemd/kmscon.service.in | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/scripts/systemd/kmscon.service.in b/scripts/systemd/kmscon.service.in
-index 9b169f0..45bad14 100644
---- a/scripts/systemd/kmscon.service.in
-+++ b/scripts/systemd/kmscon.service.in
-@@ -4,6 +4,7 @@ Documentation=man:kmscon(1)
- After=plymouth-quit-wait.service
- After=systemd-user-sessions.service
- After=rc-local.service
-+ConditionPathExists=!/dev/tty0
- 
- [Service]
- @PAM_CFG@
--- 
-2.55.0
-

diff --git a/terminal-don-t-wait-for-display-before-opening-the-p.patch b/terminal-don-t-wait-for-display-before-opening-the-p.patch
deleted file mode 100644
index 57b4bd3..0000000
--- a/terminal-don-t-wait-for-display-before-opening-the-p.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From fd2c8ddfbcb3490eb7390fa7a11a72cd1ce796bc Mon Sep 17 00:00:00 2001
-From: Jocelyn Falempe <jfalempe@redhat.com>
-Date: Fri, 9 Oct 2026 00:46:43 +0200
-Subject: [PATCH] terminal: don't wait for display before opening the pty
-
-This allows to run the login program in any case.
-If there are no display, you can still login, and start a ssh server
-blindly.
----
- src/terminal.c | 4 ----
- 1 file changed, 4 deletions(-)
-
-diff --git a/src/terminal.c b/src/terminal.c
-index 9963557..5ce88f4 100644
---- a/src/terminal.c
-+++ b/src/terminal.c
-@@ -1285,10 +1285,6 @@ void terminal_refresh_displays(struct kmscon_terminal *term)
- 
- void terminal_activate(struct kmscon_terminal *term)
- {
--	// Don't open pty yet if there are no screens.
--	if (dlist_empty(&term->screens))
--		return;
--
- 	term->awake = true;
- 	if (term->conf->blink) {
- 		ev_timer_enable(term->blink_timer);
--- 
-2.55.0
-

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-05 14:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05 14:44 [rpms/kmscon] f43: Update to v10.1.1 Jocelyn Falempe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox