317.1. kmix-26.08.2
Sound mixer — per-channel volume over PulseAudio and ALSA, with a tray icon and media keys
| Version | 26.08.2, release 1 |
| Shelf | audio-io — The sound stack: ALSA, PipeWire and WirePlumber, PulseAudio client, and portable audio I/O APIs |
| Phase | 44_apps (Applications), 11 of 422 in build order |
| Licence | GPL-2.0-or-later AND LGPL-2.0-or-later AND GFDL-1.2-only |
| Homepage | https://apps.kde.org/kmix/ |
| Build time | 1.1 SBU |
| Installed size | 1.5 MiB in 59 files |
| Recipe | ports/core/audio-io/kmix/kpkgbuild |
About
KMix is KDE’s sound mixer: a window of per-channel volume sliders for every card and stream, a tray icon with a volume popup, and handling of the volume and mute keys through kglobalaccel. On KDOS it is an alternative to the Plasma volume applet, not a second one: it starts at login only once its “Start KMix on desktop startup” setting is ticked (see Patches).
Sources
kmix-26.08.2.tar.xz(1.1 MiB)
sha25625e52a2f513afdec3b6c742bd5a279f227bcfe174555dcb288b6c61e088091a2
upstream: https://download.kde.org/stable/release-service/26.08.2/src/kmix-26.08.2.tar.xz
archive copy: sources-1/audio-io--kmix-26.08.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kconfig, kconfigwidgets, kcrash, kcoreaddons, kdbusaddons, kdoctools, kglobalaccel, ki18n, knotifications, solid, kstatusnotifieritem, kwidgetsaddons, kwindowsystem, kxmlgui, libpulse, alsa-lib, libcanberra.
Required by (1): kde-gear-multimedia.
Patches
build.sh applies these; kpkg applies nothing by itself.
The patch keeps the Plasma volume applet the one volume control in the tray. It turns off two defaults that must move together: the AutoStart default in core/settings.kcfg, and the fallback in the X-KDE-autostart-condition of desktop/kmix_autostart.desktop. The autostart entry’s condition reads the AutoStart key and falls back to its own default when the key is absent, while the settings dialog reads the same key with the default in settings.kcfg, and KConfig writes nothing when a value equals its default. With only the entry changed, ticking “Start KMix on desktop startup” would store nothing and KMix would still not start. settings.kcfg is compiled into the program by kconfig_compiler, and upstream has no build option for either default. The patch is KDOS’s own and is not upstream.
autostart-off.patch— start KMix at login only when the user asks for itThe autostart entry and the AutoStart setting both default to off, so a Plasma session keeps plasma-pa as its one volume control in the tray.
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 kmix'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/audio-io/kmix.
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/audio-io/kmix
echo '25e52a2f513afdec3b6c742bd5a279f227bcfe174555dcb288b6c61e088091a2 kmix-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/kmix
SRC=$SRC_ROOT/kmix-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf kmix-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 -i "$PORT_SRC/autostart-off.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_PulseAudio=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_ALSA=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Canberra=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
The switches, and why each is set:
-D CMAKE_REQUIRE_FIND_PACKAGE_PulseAudio=ON— The PulseAudio backend, which reaches PipeWire through its PulseAudio server and is the one that shows per-application streams. Upstream looks for libpulse as optional and drops the backend without an error; required, a missing library stops the configure.-D CMAKE_REQUIRE_FIND_PACKAGE_ALSA=ON— The ALSA backend, for the hardware controls of each card, through alsa-lib. Optional upstream, and dropped quietly without it.-D CMAKE_REQUIRE_FIND_PACKAGE_Canberra=ON— The click KMix plays when a volume changes, through libcanberra. Optional upstream; without it the volume feedback is not compiled.-D KF_SKIP_PO_PROCESSING=ON— Skips building the interface translations, which the package-wide English-only rule would remove anyway (see Size and language policy).
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/kmix, 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 kmix-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/kmix, and runs the triggers its paths call for.
Contents
Installed programs: kmix, kmixctrl, kmixremote.
Installed libraries: libkmixcore.so.
Installed directories: /usr/share/doc/HTML/en/kmix, /usr/share/kmix, /usr/share/kxmlgui5/kmix, /usr/share/licenses/kmix.
Notes
The OSS backend is compiled whenever the C library headers have sys/soundcard.h; with no OSS device it finds no mixer and contributes nothing.
restore_kmix_volumes.desktop is a second autostart entry that runs kmixctrl --restore at a Plasma login. It restores only volumes KMix itself saved, and returns at once for a card it has never saved, so it changes nothing until KMix has been used.