257.54. kdnssd-6.31.0
KDE Frameworks: DNS-SD service discovery through Avahi
6.31.0-1 · LGPL-2.0-or-later · 1.2 SBU · 460.0 KiB, 28 files · 43_toolkits, 134 of 344 · ports/core/kf6/kdnssd
Homepage: https://api.kde.org/frameworks/kdnssd/html/
Why it is in KDOS. The comment above the 61 ports from karchive to kfilemetadata in script/phases/43_toolkits/packages.d/kf6.txt:
The libraries KDE applications are built on, without Plasma.
KDNSSD is the KDE Frameworks library for DNS-SD service discovery over multicast DNS (Zeroconf): it browses for services such as printers, file shares and game servers on the local network, and publishes a program’s own. It speaks to avahi-daemon over the system bus. The network games built on libkdegames find their opponents through it.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, avahi.
Required by (8): kfourinline, kio-extras, kio-zeroconf, knavalbattle, krdc, krfb, ktorrent, libkdegames.
Sources: kdnssd-6.31.0.tar.xz (2.1 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install kdnssd'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_TESTING=OFF \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D KF_SKIP_PO_PROCESSING=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Avahi=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D CMAKE_REQUIRE_FIND_PACKAGE_Avahi=ON— Make Avahi a requirement. Upstream looks for it as optional, falls back to a plaindns_sd.himplementation when it is missing, and with neither builds a library whose every lookup finds nothing, with only a line in the configure summary. The configure reads only a header of avahi,avahi-common/defs.h; the library talks to the daemon over D-Bus and links no Avahi library.-D KF_SKIP_PO_PROCESSING=ON— Build none of the Qt translation catalogues underpoqm/, whichecm_install_po_files_as_qm()would compile into.qmfiles. The strings in the source are English, and the package-wide English-only rule (see Size and language policy) would remove every catalogue in another language.
Libraries: libKF6DNSSD.so.
Directories: /usr/include/KF6/KDNSSD, /usr/lib/cmake/KF6DNSSD, /usr/share/licenses/kdnssd.
avahi is also a run-time dependency: without avahi-daemon running, browsing finds no service.