Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

292.3. ksystemlog-26.08.2

System log viewer — syslog, kernel, authentication, cron, CUPS and Samba logs in tabs, with filters

Version 26.08.2, release 1
Shelf sysmon — Process, resource and system-information monitors
Phase 44_apps (Applications), 386 of 422 in build order
Licence GPL-2.0-or-later AND BSD-3-Clause AND CC0-1.0
Homepage https://apps.kde.org/ksystemlog/
Build time 5.6 SBU
Installed size 1.6 MiB in 12 files
Recipe ports/core/sysmon/ksystemlog/kpkgbuild

About

KSystemLog reads the machine’s log files and shows each kind in a tab of its own: the system log, the kernel log, authentication, cron, daemons, ACPI, CUPS, Apache, Postfix and Samba. Lines are parsed into date, host, process and message columns, can be filtered and searched, and new lines appear as syslogd writes them. On KDOS the tabs read the files sysklogd writes: the system tab /var/log/messages, the kernel tab what dmesg prints, authentication /var/log/auth.log and cron /var/log/cron. The paths, and the tab the window opens on, come from /usr/share/kdos/xdg/ksystemlogrc: upstream’s defaults are Debian’s /var/log/syslog for the system and cron tabs and the journal as the first tab, and KSystemLog hides a tab whose files are missing, so without that file the system and cron tabs would be gone and the window would open on an empty log.

Sources

Dependencies

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kxmlgui, kcoreaddons, kwidgetsaddons, kitemviews, kio, kconfig, karchive, ki18n, kcompletion, ktextwidgets, kcrash, kdoctools, kconfigwidgets.

Required by (1): kde-gear-core.

Patches

build.sh applies these; kpkg applies nothing by itself.

no-substitute-uid.patch takes X-KDE-SubstituteUID=true out of the desktop entry, so the menu starts KSystemLog as the user; it is to be offered upstream as a merge request against system/ksystemlog. With the key, KIO starts it through kdesu as root, and kdesu_stub clears XDG_RUNTIME_DIR and passes the Wayland socket’s name as DISPLAY, so on the Wayland session the root process reaches no display and aborts. There is no build option for the key.

Installation

From the repository root, inside the build container, this is the line kdosbuild runs for the port:

script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install ksystemlog'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/sysmon/ksystemlog.

1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.

cd /ports/core/sysmon/ksystemlog
echo '165f6b26e5cbaab13f85b7d3dc4a0d34d840018fd2e01ed6f17aa38ab8b8406b  ksystemlog-26.08.2.tar.xz' | sha256sum -c -

2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.

SRC_ROOT=/var/cache/kpkg/work/ksystemlog
SRC=$SRC_ROOT/ksystemlog-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf ksystemlog-26.08.2.tar.xz -C "$SRC" --strip-components=1

Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.

3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

patch -p1 --no-backup-if-mismatch -i "$PORT_SRC/no-substitute-uid.patch"

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D KF_SKIP_PO_PROCESSING=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
	-D CMAKE_DISABLE_FIND_PACKAGE_Journald=ON \
	-D CMAKE_DISABLE_FIND_PACKAGE_Audit=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

The switches, and why each is set:

The common switches of each build system are explained in the Flag glossary.

4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/ksystemlog, prunes what the image does not ship, lints the tree and rolls it reproducibly:

tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
    --mtime=@$SOURCE_DATE_EPOCH \
    --use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
    -cf ksystemlog-26.08.2-1.tar.xz -C "$PKG" .

5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/ksystemlog, and runs the triggers its paths call for.

Contents

Installed programs: ksystemlog.

Installed directories: /usr/share/doc/HTML/en/ksystemlog, /usr/share/licenses/ksystemlog.

Notes

/var/log/messages, /var/log/kern.log and /var/log/auth.log are made readable by root alone at boot, and dmesg is restricted to root, so an ordinary account reads only the cron tab: the system and authentication tabs report that the file cannot be read, and the kernel tab is empty. The window therefore opens on the cron tab. The X.org and X session tabs look for an X server’s logs, which this machine never writes.