Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kmscon for openSUSE:Factory checked in at 2026-12-03 13:59:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kmscon (Old) and /work/SRC/openSUSE:Factory/.kmscon.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kmscon" Thu Dec 3 13:59:32 2026 rev:19 rq:1402680 version:10.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/kmscon/kmscon.changes 2026-11-17 17:23:54.455512017 +0100 +++ /work/SRC/openSUSE:Factory/.kmscon.new.1340718/kmscon.changes 2026-12-03 14:02:32.292530275 +0100 @@ -1,0 +2,12 @@ +Wed Dec 2 16:11:53 UTC 2026 - Zoltan Balogh <[email protected]> + +- Enable the upstream unit tests: build with -Dtests=true and + run them with meson test. Add pkgconfig(check) and gnu-free-fonts + so the font tests have a font to match. Add a patch for the + xkbcommon include path of test_bbulk and to let test_issue handle + an empty issue file or a missing NETLINK_ROUTE socket. Tests were + not built since 2025 (-Dtests=false, r8) and now build and pass. + Both test fixes will be sent upstream. +- 0001-tests-fix-test-build-and-netlink-handling.patch: added + +------------------------------------------------------------------- New: ---- 0001-tests-fix-test-build-and-netlink-handling.patch ----------(New B)---------- New: Both test fixes will be sent upstream. - 0001-tests-fix-test-build-and-netlink-handling.patch: added ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kmscon.spec ++++++ --- /var/tmp/diff_new_pack.uJeWQe/_old 2026-12-03 14:02:33.091564105 +0100 +++ /var/tmp/diff_new_pack.uJeWQe/_new 2026-12-03 14:02:33.092564148 +0100 @@ -27,12 +27,16 @@ Source: %{name}-%{version}.tar.xz # PATCH-FIX-UPSTREAM https://github.com/kmscon/kmscon/pull/623 Patch1: 0001-Drop-use-of-libdir-for-usr-lib-pam.d.patch +# PATCH-FIX-OPENSUSE test-only fixes, will be sent upstream +Patch2: 0001-tests-fix-test-build-and-netlink-handling.patch # PATCH-FIX-DOWNSTREAM Patch100: 0001-Reapply-service-Revert-to-agetty-for-showing-issue.patch BuildRequires: docbook-xsl-stylesheets +BuildRequires: gnu-free-fonts BuildRequires: meson BuildRequires: pkg-config BuildRequires: xsltproc +BuildRequires: pkgconfig(check) BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(freetype2) @@ -72,7 +76,7 @@ %build # Disable 3D renderer, pulls in a dependency on Mesa into the main binary # Use TERM=linux for the time being (https://github.com/kmscon/kmscon/issues/411) -%meson -Dtests=false -Dlibseat=enabled -Dterm=linux -Drenderer_gltex=disabled -Dvideo_drm3d=disabled +%meson -Dtests=true -Dlibseat=enabled -Dterm=linux -Drenderer_gltex=disabled -Dvideo_drm3d=disabled %meson_build %install @@ -81,6 +85,9 @@ # Remove example config from /etc, we use %%doc rm %{buildroot}%{_sysconfdir}/kmscon/kmscon.conf.example +%check +%meson_test + %pre %service_add_pre %{name}.service ++++++ 0001-tests-fix-test-build-and-netlink-handling.patch ++++++ diff --git a/tests/meson.build b/tests/meson.build --- a/tests/meson.build +++ b/tests/meson.build @@ -44,7 +44,7 @@ test_bbulk = executable( 'test_bbulk', 'test_bbulk.c', include_directories: src_inc, - dependencies: [libtsm_deps, htable_deps], + dependencies: [libtsm_deps, htable_deps, xkbcommon_deps], ) test('test_bbulk', test_bbulk) diff --git a/tests/test_issue.c b/tests/test_issue.c --- a/tests/test_issue.c +++ b/tests/test_issue.c @@ -54,12 +54,17 @@ int main() if (test_missing_interface()) return EXIT_FAILURE; - printf("%s\n", buf); + if (buf) + printf("%s\n", buf); free(buf); printf("----- check network issue -----\n"); book = issue_network_gen_book(); + if (!book) { + printf("no network addresses (netlink unavailable)\n"); + return 0; + } ip = issue_network_get_best_ip(book, NULL, false); printf("ipv4: %s\n", ip ? ip : "(none)");
