public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kmscon] f45: Update to 10.1.0
@ 2026-11-05 10:19 Jocelyn Falempe
0 siblings, 0 replies; only message in thread
From: Jocelyn Falempe @ 2026-11-05 10:19 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/kmscon
Branch : f45
Commit : f2314c3b21b206a23116fb3ae90393e4b13e18a1
Author : Jocelyn Falempe <jfalempe@redhat.com>
Date : 2026-10-26T14:48:01+01:00
Stats : +4/-228 in 8 file(s)
URL : https://src.fedoraproject.org/rpms/kmscon/c/f2314c3b21b206a23116fb3ae90393e4b13e18a1?branch=f45
Log:
Update to 10.1.0
It's now possible to configure each monitor independently, regarding
resolution, refresh rate, and rotation. So the "mode" configuration can
now be set multiple times, and have an optional prefix for GPU and
connector. The "rotation" is removed, and replaced with "screen" which
can also be specified multiple times.
* systemd: prevent kmscon.service to run if /dev/tty0 is present by @kdj0c in https://github.com/kmscon/kmscon/pull/538
* vt_libseat: Fix build error due to logging changes by @kdj0c in https://github.com/kmscon/kmscon/pull/540
* workflows: build with libseat enabled by @kdj0c in https://github.com/kmscon/kmscon/pull/541
* drm_shared: Fix crash if a plane has no properties by @kdj0c in https://github.com/kmscon/kmscon/pull/543
* terminal: force screen redraw on seat switch by @kdj0c in https://github.com/kmscon/kmscon/pull/549
* seat: deactivate terminal and input, when going into background mode by @kdj0c in https://github.com/kmscon/kmscon/pull/548
* Term refactor by @kdj0c in https://github.com/kmscon/kmscon/pull/547
* uterm: treat platform display controllers as primary GPUs by @MarkusVolk in https://github.com/kmscon/kmscon/pull/551
* freetype: fix fallback font size. by @kdj0c in https://github.com/kmscon/kmscon/pull/552
* freetype: filter out non-monospace fonts completely by @tagoh in https://github.com/kmscon/kmscon/pull/553
* freetype: Fix memory leak when loading fallback font. by @kdj0c in https://github.com/kmscon/kmscon/pull/554
* Install pam config into /usr/lib/pam.d/ by @WhyNotHugo in https://github.com/kmscon/kmscon/pull/555
* terminal: don't wait for display before opening the pty by @kdj0c in https://github.com/kmscon/kmscon/pull/557
* freetype: retain compatibility with older Fontconfig headers by @jtollet in https://github.com/kmscon/kmscon/pull/558
* Small correctness fixes (psf, config, drm2d, drm3d) by @brunbjerg in https://github.com/kmscon/kmscon/pull/559
* config: show freetype as the default font engine in --help by @brunbjerg in https://github.com/kmscon/kmscon/pull/561
* libseat: fix activation and VT switching with seatd by @brunbjerg in https://github.com/kmscon/kmscon/pull/560
* bbulk: clear stale double_width flag on overflow cells by @parkky0331 in https://github.com/kmscon/kmscon/pull/568
* seat: Fix failure to wake the video device by @kdj0c in https://github.com/kmscon/kmscon/pull/564
* conf: Parse all command line arguments by @kdj0c in https://github.com/kmscon/kmscon/pull/563
* main: restore the previous vt when --switchvt is used. by @kdj0c in https://github.com/kmscon/kmscon/pull/569
* terminfo: add cursor shape change support to terminfo file by @shmerl in https://github.com/kmscon/kmscon/pull/572
* Seat refactor callback by @kdj0c in https://github.com/kmscon/kmscon/pull/570
* text: use Left One Eighth Block for vertical bar cursor by @shmerl in https://github.com/kmscon/kmscon/pull/573
* tests: freetype, abort test if no fonts are installed by @kdj0c in https://github.com/kmscon/kmscon/pull/574
* drm_shared: Clear overlay planes, too by @kbroulik in https://github.com/kmscon/kmscon/pull/575
* use calloc() instead of malloc() + memset() by @kdj0c in https://github.com/kmscon/kmscon/pull/576
* fbdev: fix don't close fbdev fd by @kdj0c in https://github.com/kmscon/kmscon/pull/579
* Better mode selection by @kdj0c in https://github.com/kmscon/kmscon/pull/542
* debug: improve debug logs by @kdj0c in https://github.com/kmscon/kmscon/pull/580
* terminal: print both pts and tty in the issue by @kdj0c in https://github.com/kmscon/kmscon/pull/585
* terminal: Ignore pointer events when in background. by @kdj0c in https://github.com/kmscon/kmscon/pull/583
* Freetype fix underscore not visible with DejaVu Sans Mono by @kdj0c in https://github.com/kmscon/kmscon/pull/584
* Fix interaction with seatd by @cnt0 in https://github.com/kmscon/kmscon/pull/578
* font: draw the unicode blocks 0x2580-0x259f directly by @kdj0c in https://github.com/kmscon/kmscon/pull/586
* psf: minor refactor by @kdj0c in https://github.com/kmscon/kmscon/pull/590
* fbdev: activate a display created while the video device is awake by @hosiet in https://github.com/kmscon/kmscon/pull/591
* fbdev: consume full-redraw requests after presenting a frame by @hosiet in https://github.com/kmscon/kmscon/pull/592
* terminal: If the font fails to load, retry with font_size of 16 by @kdj0c in https://github.com/kmscon/kmscon/pull/589
* Specify the `Tc`, `setrgbb` and `setrgbf` terminfo capabilities by @mavit in https://github.com/kmscon/kmscon/pull/593
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
---
diff --git a/.gitignore b/.gitignore
index 1aa5386..66086c4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,4 @@
/kmscon-10.0.2.tar.gz
/kmscon-10.0.3.tar.gz
/kmscon-10.0.4.tar.gz
+/kmscon-10.1.0.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 ff9845f..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_SPACING_CHARCELL || spacing == FC_SPACING_MONO ||
-+ spacing == FC_SPACING_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 4d32f8a..e6e6985 100644
--- a/kmscon.spec
+++ b/kmscon.spec
@@ -1,5 +1,5 @@
Name: kmscon
-Version: 10.0.4
+Version: 10.1.0
Release: %autorelease
Summary: Linux KMS/DRM based virtual Console Emulator
# MIT for the source code, and OFL-1.1 for the unifont font.
@@ -17,7 +17,7 @@ BuildRequires: xsltproc
BuildRequires: xz
BuildRequires: systemd-rpm-macros
BuildRequires: pkgconfig(egl)
-BuildRequires: pkgconfig(fontconfig)
+BuildRequires: pkgconfig(fontconfig) >= 2.16.0
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(gbm)
BuildRequires: pkgconfig(glesv2)
@@ -31,19 +31,6 @@ BuildRequires: pkgconfig(xkbcommon) >= 0.5.0
BuildRequires: pkgconfig(zlib)
Recommends: (kmscon-freetype if freetype)
-# Upstream patch to prevent running kmscon.service when VTs are enabled
-Patch1: systemd-prevent-kmscon.service-to-run-if-dev-tty0-is.patch
-# Upstream patch, prevent crash on kernel 7.3+
-Patch2: drm_shared-Fix-crash-if-a-plane-has-no-properties.patch
-
-# Upstream patch, filter out non monospace fonts in freetype
-Patch10: freetype-filter-out-non-monospace-fonts-completely.patch
-# Upstream patch, fix a memory leak when using fallback font with freetype
-Patch11: freetype-Fix-memory-leak-when-loading-fallback-font.patch
-
-# Upstream patch, start the login command even if no displays are available
-Patch12: terminal-don-t-wait-for-display-before-opening-the-p.patch
-
%description
Kmscon is a simple terminal emulator based on linux kernel mode setting (KMS).
It is an attempt to replace the in-kernel VT implementation with a userspace
diff --git a/sources b/sources
index 117b8b3..551a6ff 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (kmscon-10.0.4.tar.gz) = 885e053ee6109c46edfee50df92fb9caad567b633df2760f37e25c2757fb874d413aed1c1de75c0d3fbc2169fe66f6e63ed16ece78f9b0f79aa72cbc91f3bab3
+SHA512 (kmscon-10.1.0.tar.gz) = 5872fc1480c7c7eb5028d5e79da672352af46308adb7ab8d657356dd1b76edbeac637c6d4c996b883f12cd53fd8d5d1e85d759aaad1568d4404d9f0150092f5d
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 10:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05 10:19 [rpms/kmscon] f45: Update to 10.1.0 Jocelyn Falempe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox