295.3. audiocd-kio-26.08.2
audiocd:/ KIO worker — browse audio CDs and rip them to WAV, FLAC, Ogg Vorbis, Opus or MP3
26.08.2-1 · GPL-2.0-or-later AND LGPL-2.1-or-later AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND LGPL-3.0-or-later AND BSD-3-Clause AND GFDL-1.2-or-later AND CC0-1.0 · 1.3 SBU · 869.0 KiB, 35 files · 44_apps, 321 of 422 · ports/core/optical/audiocd-kio
Homepage: https://invent.kde.org/multimedia/audiocd-kio
audiocd-kio is the audiocd:/ KIO worker. An audio CD opened in Dolphin shows its tracks as WAV files, with folders that hold the same tracks as FLAC, Ogg Vorbis, Opus and MP3; copying a file out of one rips and encodes that track. Track names come from CDDB through libkcddb. A System Settings page sets the encoders’ quality and the ripper’s error correction, and a Solid action offers to open a disc when one is inserted.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kcmutils, kconfig, kdoctools, ki18n, kio, kwidgetsaddons, solid, libkcddb, cdparanoia, flac, libogg, libvorbis, lame, opus-tools.
Required by (1): kde-gear-multimedia.
Sources: audiocd-kio-26.08.2.tar.xz (572.3 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install audiocd-kio'
build.sh:
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_REQUIRE_FIND_PACKAGE_FLAC=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_OggVorbis=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D CMAKE_REQUIRE_FIND_PACKAGE_FLAC=ON— With-D CMAKE_REQUIRE_FIND_PACKAGE_OggVorbis=ON: make flac and libvorbis with libogg requirements. The two encoders link them, and upstream leaves each encoder out without a word when its library is missing. The Ogg encoder also needsvorbis_bitrate_addblock, which the module checks for and every current libvorbis has.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON— Make kdoctools a requirement. Upstream finds it as optional and drops the worker’s and the settings page’s handbooks without one.-D KF_SKIP_PO_PROCESSING=ON— Builds none of the interface translations inpo/, which kpkg’s English-only rule would remove from the package anyway (see Size and language policy).-Wno-dev— Silences CMake’s warnings meant for the project’s own developers.
Libraries: libaudiocdplugins.so.
Directories: /usr/include/audiocdplugins, /usr/lib/qt6/plugins/audiocd, /usr/share/doc/HTML/en/kcontrol/kcmaudiocd, /usr/share/doc/HTML/en/kioworker6/audiocd, /usr/share/licenses/audiocd-kio.
Reading the disc is xiph’s cdparanoia-III library from cdparanoia, found by the bundled FindCdparanoia.cmake as cdda_interface.h, libcdda_interface and libcdda_paranoia; libcdio’s paranoia, which installs other headers and names, does not satisfy it. The configure copies cdda_interface.h through sed into cdda_interface.hpp in the build directory, renaming a member called private and deleting the header’s static strerror_tr table so it compiles as C++. cdparanoia’s gcc.patch already names that member private_data, so the rename matches nothing here. This is upstream’s own build step and leaves the installed header alone.
The MP3 and Opus encoders are not linked: they run lame and opusenc from opus-tools and pipe the audio to them, so both are in depends for run time, and each encoder’s folder is hidden when its program is not found. The WAV and CDA folders need neither.
The drive is /dev/sr0 or another /dev/sr* node, and only a user allowed to open it can read the disc.