354.23. discover-6.8.2
Software centre — system updates over the A/B slots and firmware updates through fwupd
| Version | 6.8.2, release 1 |
| Shelf | kde — KDE Plasma and Gear platform pieces outside Frameworks that have no other domain: KIO workers, thumbnailers, Plasma integration, KDE Wayland glue |
| Phase | 50_desktop (Desktop), 46 of 92 in build order |
| Licence | (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND LGPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND LGPL-3.0-or-later AND GPL-2.0-or-later |
| Homepage | https://invent.kde.org/plasma/discover |
| Build time | 0.4 SBU |
| Installed size | 3.2 MiB in 78 files |
| Recipe | ports/core/kde/discover/kpkgbuild |
About
Discover is Plasma’s software centre. This port builds Discover itself with two of upstream’s backends:
- operating-system updates over the A/B slots, through
SystemdSysupdateBackend, which talks toorg.freedesktop.sysupdate1on the system bus; - firmware updates, through fwupd.
Applications, packs, boxes and host software come from a third backend that is not upstream’s: kdos-backend.so, installed by kdos-discover, which also adds the KDOS update notifier plugin. This port also carries the Software Update page of System Settings and the tray notifier that announces pending updates. There is no third-party store: no Flatpak, no Snap, no PackageKit and no KNewStuff add-ons (see Offline by construction). What each page shows on a running system is in Discover.
Why it is in KDOS
The comment above it in script/phases/50_desktop/packages.txt:
The software centre: system updates over the A/B slots and firmware through fwupd.
Sources
discover-6.8.2.tar.xz(1.2 MiB)
sha2562bc7280155adb003498a3b31817be8815673cc665b424b98b8250cc97dff5bc6
upstream: https://download.kde.org/stable/plasma/6.8.2/discover-6.8.2.tar.xz
archive copy: sources-3/kde--discover-6.8.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, pkgconf, qt6-qtbase, qt6-qtdeclarative, kirigami, kirigami-addons, kitemmodels, kcoreaddons, kconfig, kcrash, kdbusaddons, ki18n, karchive, kxmlgui, kio, kcmutils, kidletime, knotifications, purpose, kstatusnotifieritem, kiconthemes, appstream, qcoro, fwupd.
Required by (2): kde-plasma, kdos-discover.
Patches
build.sh applies these; kpkg applies nothing by itself.
odrs-offline.patch adds [Software] FetchOdrsRatings to discoverrc, read by the ratings backend before it downloads anything; upstream fetches every application’s ratings from odrs.gnome.org at each start whose cached copy is a day old, for the Home page’s “Most Popular” list. /usr/share/kdos/xdg/discoverrc sets it false. The key defaults to true, so the patch changes nothing where it is unset, and it is to be proposed upstream in that form.
sysupdate-errors.patch makes the system-update backend read the error replies of org.freedesktop.sysupdate1. Upstream reads GetVersion and CheckNew straight into a string, and an error reply converts to its own message, so a refused check (kdos-sysupdated’s Interactive authentication required) is listed as an update to a version of that name. With the patch an error reply is a passive message and the target gets no resource, and a failed ListTargets ends the fetch it began. The patch also sets “restart to finish” only when the Install job ends with status 0, so a refused or failed Acquire leaves nothing pending; and it asks the size service upstream expects at http://localhost:3129 once per update, leaving the size empty when nothing answers there, which on KDOS is always, so an update with no size of its own shows no size row instead of a busy indicator that never stops. It is to be offered upstream.
sysupdate-size.patch makes the system-update backend take an update’s size from the AppStream file the target names: the download size of an artifact of the release whose version is the one offered. sysupdate1 has no size query, so upstream asks only the size service above; kdos-sysupdated writes that artifact from the update document, and the Updates list shows the size and its total instead of “Unknown”. It applies after sysupdate-errors.patch and is to be offered upstream.
update-failed-stays-listed.patch reports a transaction that ended with an error to the Updates page as not started, as a cancelled one is, instead of done. The page hides rows whose state is done, and keeps its rows when the list of offered updates is unchanged, which it is after a refused or failed update; without the patch the page lists nothing, with Update All still enabled, until Refresh. It is to be offered upstream.
sysupdate-appstream-after-check.patch makes the system-update backend ask a target’s GetVersion and CheckNew before it fetches the target’s AppStream, and fetch the AppStream only for a target that offers a version. kdos-sysupdated regenerates the AppStream from the update document, which the check behind CheckNew rewrites, so a copy read before the check describes the previous one; upstream’s order shows the first session that finds a release with its size “Unknown” until Refresh, because sysupdate-size.patch finds no release of the offered version. It applies after update-failed-stays-listed.patch and is to be offered upstream.
notifier-reboot-clears.patch makes the tray notifier ask every backend notifier’s needsReboot() at each needsRebootChanged and report the change both ways, and makes the tray item set its title, tooltip, icon and the “Install Updates and Restart…” and “Install Updates and Shut Down…” entries from the answer each time. The notifier keeps its persistent “Restart is required” notification, and closes it when the restart is withdrawn and before it posts another. A restart withdrawn while updates are still offered shows the tray item again at once. Upstream hides an item of ordinary updates until requiredNotificationInterval has passed since the last notification, which would keep the update the disarmed slot held out of the tray for up to a day, the interval /usr/share/kdos/xdg/PlasmaDiscoverUpdates sets.
The patch also has the system-update backend read io.kdos.Slots1’s State, on the bus it reaches sysupdate1 on, when it starts, and follow it after. When rebootRequired is true and the armed slot’s version (State’s version while its phase is armed) is newer, by AppStream’s vercmpSimple, than the version the target’s GetVersion answered (less the (slot A) that answer carries), the backend sets the updater’s restart. An update applied from a terminal then puts the restart prompt on the Updates page instead of “Up to date”. A slot armed at the running or an older version is a switch between versions and sets none. A State that arrives before the first fetch has read GetVersion is taken again when the fetch ends. When rebootRequired goes false, the backend clears the restart and lists the targets again, so an open Updates page drops “Restart and Install Updates” and offers the update again.
Without the patch, upstream latches the first announcement for the session in the notifier, and learns of a restart only from the backend’s own Install, which it keeps for the life of the process. After “Keep” on the System Versions page disarms a trial slot, the tray (through kdos-discover’s notifier plugin), the notification and the open window would then keep asking for a restart that boots the slot already running. The notifier half is to be offered upstream; the backend half names a KDOS interface and stays KDOS’s.
sysupdate-licenses.patch makes the system-update resource’s licenses() return AppStreamUtils::licenses() of its component, the license objects (name, URL, whether it is free) the application page’s Licenses field reads. Upstream returns the project and metadata licences as bare SPDX strings, which the page reads as nothing, so More Info on the KDOS update shows “Licenses:” with nothing after it although kdos-sysupdated’s AppStream file carries MIT. It is to be offered upstream.
notifyrc-update-restart.patch makes the tray notifier’s “Restart is required” notification, posted when an installed update needs a restart, find its configuration and go out once. Upstream builds it with the static KNotification::event(), which queues a sendEvent() of its own, and then calls sendEvent() itself, so org.freedesktop.Notifications receives two Notify calls for every restart; it posts the UpdateRestart event with KNotification::DefaultEvent, which makes KNotification look it up in the default component, plasma_workspace, whose notifyrc declares no such event, rather than in the discoverabstractnotifier component the call names; and that component’s notifyrc spells the group [Event/UpdateResart]. The patch constructs the KNotification with its title, text and icon and the discoverabstractnotifier component, without DefaultEvent, so the one sendEvent() posts it, and renames the group [Event/UpdateRestart]; KNotification shows nothing for an event its component does not declare, so the notification appears only with both halves. It applies after notifier-reboot-clears.patch and is to be offered upstream.
notifier-restart-labels.patch labels the two buttons of that notification “Restart” and “Shut Down” where upstream reads “Update and Restart” and “Update and Shut Down”. They open the logout prompt’s restart and shut-down pages and start nothing else, and KDOS has staged the update in the other slot before the notification is posted. It applies after notifyrc-update-restart.patch and is to be offered upstream.
ratings-need-reviews.patch shows the application page’s rating row and its Reviews section, with “Write a Review”, only when the resource’s backend has a reviews backend, and leaves the Home page’s “Highest-Rated Games” and “Highest-Rated Developer Tools” rows empty when the current application backend has none. Neither KDOS backend has one, so on KDOS no page offers a rating or a review it has nowhere to send, and no row is ranked by ratings nobody gave. It is to be offered upstream.
notifier-reboot-clears.patch— notifier, sysupdate: clear "Restart to apply updates" when no backend needs itA backend notifier announces needsRebootChanged both when a restart becomes pending and when it is withdrawn, as an image update does when its staged slot is disarmed in the session. The notifier latches the first announcement, and the tray item sets its restart title, tooltip and menu entries once, so a withdrawn restart leaves the tray, and the persistent "Restart is required" notification, asking for one that would install nothing. Ask every backend at each announcement, report the change both ways, close the restart notification when the restart is withdrawn, and have the tray item follow it both ways.
A withdrawn restart with updates still offered shows the tray item again at once: the item showed those updates before the install, and the requiredNotificationInterval wait would hide them until the next notification time.
The sysupdate backend's updater learns of a restart only from its own install, and keeps it for the life of the process: an update applied from a terminal leaves the Updates page saying "Up to date" while the staged slot waits for a restart, and an open page keeps asking for the restart after the slot is disarmed. The backend reads io.kdos.Slots1's State beside sysupdate1 on its bus when it starts and follows it after. When rebootRequired is true and the armed slot's version (State's `version` while its `phase` is "armed") is newer than the version the target's GetVersion answered, less the slot that answer names, it sets the updater's restart; an armed slot of the running or an older version is a switch between versions and sets none. When rebootRequired goes false it clears the restart and reads the targets again, so the page offers the update once more.
notifier-restart-labels.patch— notifier: label the "Restart is required" actions "Restart" and "Shut Down"The notification is shown when a backend reports needsReboot, after its updates are installed and wait only for the restart. Its two actions open the logout prompt's reboot and shut-down pages (promptReboot, promptShutDown) and start no update, so "Update and Restart" and "Update and Shut Down" offer an update that is already done. Label them for what they do.
notifyrc-update-restart.patch— notifier: post "Restart is required" once, from discoverabstractnotifier.notifyrc as UpdateRestartDiscoverNotifier::showRebootNotification() builds the notification with the static KNotification::event(), which queues a sendEvent() of its own, and then calls sendEvent() itself, so every restart is sent to org.freedesktop.Notifications twice. Construct the KNotification and set its title, text and icon instead, so the one sendEvent() posts it once.
It also posts "UpdateRestart" with KNotification::DefaultEvent, which makes KNotification look the event up in the default component, plasma_workspace, instead of the discoverabstractnotifier component it names; plasma_workspace.notifyrc declares no UpdateRestart, so "Restart is required" is never shown. Name discoverabstractnotifier as the component without DefaultEvent, and spell that notifyrc's group [Event/UpdateRestart], the name the notifier posts, where it declares [Event/UpdateResart].
odrs-offline.patch— libdiscover: let discoverrc turn off the ODRS ratings fetchThe Home page's "Most Popular" list asks OdrsReviewsBackend for its ratings, and the backend downloads them from odrs.gnome.org at every start whose cache is older than a day, whatever backends are loaded. With [Software] FetchOdrsRatings=false in discoverrc nothing is requested and an existing cache is still parsed; the key defaults to true.
ratings-need-reviews.patch— discover: show ratings and reviews only where a reviews backend serves themThe application page showed the rating row ("0 ratings") and the Reviews section with "Write a Review" for every non-technical package, even when the resource's backend has no reviews backend, so the dialog had nowhere to send a review. Both now require one. The Home page's "Highest-Rated Games" and "Highest-Rated Developer Tools" rows rank by rating, and without a reviews backend for the current application backend their order means nothing, so they hold no rows.
sysupdate-appstream-after-check.patch— SystemdSysupdateBackend: read a target's AppStream after CheckNewA sysupdate1 service may rewrite the AppStream it serves for a target when CheckNew looks for a new version, so that it describes the release CheckNew answers. Read before CheckNew, the AppStream describes the previous check, and on the first check after a release is published anything taken from the offered release, such as its download size, is missing until the next refresh. GetVersion and CheckNew now run first, and the AppStream is fetched only for a target that offers a version.
sysupdate-errors.patch— SystemdSysupdateBackend: report error replies instead of taking them for versionsGetVersion and CheckNew were read straight into a QString, and an error reply converts to its own message, so a refused check ("Interactive authentication required") became an update to a version of that name. Each reply is now checked: an error is shown as a passive message and the target gets no resource. A failed ListTargets ends the fetch it began, so the backend does not stay busy.
installApplication set needsReboot before the transaction ran, so a refused or failed Acquire still left "A pending update will be installed when restarting". The flag is now set when the Install job ends with status 0.
The update size is asked of http://localhost:3129 once per resource; when nothing answers, the size stays 0 and sizeDescription() is empty, which hides the page's size row instead of spinning a busy indicator for ever.
sysupdate-licenses.patch— sysupdate: give the Licenses field license objectsApplicationPage reads each entry of licenses() as an object with a name, a URL and whether the license is free, the shape AppStreamUtils::licenses() builds from a component. The sysupdate resource returns its project and metadata licenses as bare SPDX strings, which the page reads as nothing, so the Licenses field of a system update stays empty. Return AppStreamUtils::licenses() of the component instead.
sysupdate-size.patch— SystemdSysupdateBackend: take the update size from the release artifactsysupdate1 has no size query, so the backend asks a size service at http://localhost:3129. A sysupdate1 service can instead put the size in the AppStream it already serves for the target: the download size of an artifact of the release whose version is the one offered. size() now reads that first and asks the size service only when no such artifact names a size.
update-failed-stays-listed.patch— StandardBackendUpdater: keep a failed update listed on the Updates pageA transaction that ends in DoneWithErrorStatus was reported to the Updates page as Done. The page filters out rows whose state is done, and UpdateModel keeps the same rows when the list of offered resources does not change, which it does not after a refused or failed update: the page listed nothing, with Update All still enabled, until a refresh. A failed transaction now reports None, as a cancelled one does.
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/50_desktop/phase.env && kpkg install discover'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/kde/discover.
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/kde/discover
echo '2bc7280155adb003498a3b31817be8815673cc665b424b98b8250cc97dff5bc6 discover-6.8.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/discover
SRC=$SRC_ROOT/discover-6.8.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf discover-6.8.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 recipe’s helpers group and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
patch -p1 -i "$PORT_SRC/odrs-offline.patch"
patch -p1 -i "$PORT_SRC/sysupdate-errors.patch"
patch -p1 -i "$PORT_SRC/ratings-need-reviews.patch"
patch -p1 -i "$PORT_SRC/sysupdate-size.patch"
patch -p1 -i "$PORT_SRC/update-failed-stays-listed.patch"
patch -p1 -i "$PORT_SRC/sysupdate-appstream-after-check.patch"
patch -p1 -i "$PORT_SRC/notifier-reboot-clears.patch"
patch -p1 -i "$PORT_SRC/sysupdate-licenses.patch"
patch -p1 -i "$PORT_SRC/notifyrc-update-restart.patch"
patch -p1 -i "$PORT_SRC/notifier-restart-labels.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 BUILD_SystemdSysupdateBackend=ON \
-D BUILD_FwupdBackend=ON \
-D BUILD_FlatpakBackend=OFF \
-D BUILD_SnapBackend=OFF \
-D BUILD_PackageKitBackend=OFF \
-D BUILD_RpmOstreeBackend=OFF \
-D BUILD_HoloBackend=OFF \
-D BUILD_DummyBackend=OFF \
-D BUILD_AlpineApkBackend=OFF \
-D BUILD_AppStreamPreviewBackend=OFF \
-D CMAKE_DISABLE_FIND_PACKAGE_KF6NewStuff=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_KF6UserFeedback=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_Qt6WebView=ON \
-D WITH_KCM=ON \
-D WITH_NOTIFIER=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
cd libdiscover
find . \( -path ./backends -o -path ./tests \) -prune -o -name '*.h' -print | while read -r h; do
install -Dm644 "$h" "$PKG/usr/include/discover/$h"
done
cd ..
install -Dm644 -t "$PKG/usr/include/discover" build/DiscoverConfig.h \
build/libdiscover/discovercommon_export.h \
build/libdiscover/notifiers/discovernotifiers_export.h
rm "$PKG/usr/share/applications/org.kde.discover.snap.desktop" \
"$PKG/usr/share/applications/org.kde.discover.appstreampreview.desktop"
test "$(ls "$PKG/usr/lib/qt6/plugins/discover")" = "$(printf '%s\n' fwupd-backend.so systemdsysupdate-backend.so)"
The switches, and why each is set:
-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).-D BUILD_SystemdSysupdateBackend=ON— Build the backend fororg.freedesktop.sysupdate1. Upstream’s default is off. KDOS serves that interface over its A/B slots, so this backend is how Discover lists, downloads and installs a new system image; without it Discover has no operating system updates to show.-D BUILD_FwupdBackend=ON— Build the firmware backend. It is upstream’s default, but the backend is still dropped in silence when thefwupdpkg-config module is missing, so the last line ofbuild.shchecks that it was built.-D BUILD_FlatpakBackend=OFF— No Flatpak backend. Upstream’s default is on; Flatpak is not a port, and KDOS has no third-party store. Software Discover installs comes throughkdos-backend.soalone: ports from the signed release binhost, packs and boxes.-D BUILD_SnapBackend=OFF— No Snap backend, for the same reason. Upstream’s default is on.-D BUILD_AlpineApkBackend=OFF— No backend for Alpine’s package manager. Upstream’s default is on and only the absence of ApkQt keeps it out; naming it off means a stray ApkQt in the build root cannot bring it in.-D BUILD_PackageKitBackend=OFF— No PackageKit backend. PackageKit is not a port; host software is installed into the running system bykdos-backend.so, through the same helper askdos update install.-D BUILD_RpmOstreeBackend=OFF— No rpm-ostree backend; KDOS has no OSTree deployments.-D BUILD_HoloBackend=OFF— No backend for SteamOS’s image updater.-D BUILD_DummyBackend=OFF— No test backend, which would show invented applications.-D BUILD_AppStreamPreviewBackend=OFF— No backend that opens a loose AppStream file as an installable entry. Upstream defaults it to whether AppStreamQt was found, which on KDOS is always.-D CMAKE_DISABLE_FIND_PACKAGE_KF6NewStuff=ON— Turns off the KNewStuff backend, which has no option of its own: it is built whenever KF6Attica, KF6NewStuff and AppStreamQt are all found, and all three are ports. That backend downloads themes, widgets and scripts from store.kde.org.-D CMAKE_DISABLE_FIND_PACKAGE_KF6UserFeedback=ON— No KUserFeedback, which Discover uses to submit telemetry. It is not a port; refusing it means a stray copy in the build root cannot be picked up.-D CMAKE_DISABLE_FIND_PACKAGE_Qt6WebView=ON— No Qt WebView. Discover uses it only for the web sign-in a Flatpak remote can ask for, and the Flatpak backend is not built; found, it would link Qt WebEngine into Discover for a dialog that never opens.-D WITH_KCM=ON— Build the Software Update page of System Settings (kcm_updates), where automatic updates and the notification frequency are set. It is upstream’s default, named so the page cannot disappear unnoticed.-D WITH_NOTIFIER=ON— BuildDiscoverNotifier, the tray notifier started from/etc/xdg/autostart. It is upstream’s default, named for the same reason.
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/discover, 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 discover-6.8.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/discover, and runs the triggers its paths call for.
Contents
Installed programs: plasma-discover.
Installed directories: /usr/include/discover, /usr/lib/plasma-discover, /usr/share/kxmlgui5/plasmadiscover, /usr/share/licenses/discover.
Notes
The last line of build.sh fails the build unless /usr/lib/qt6/plugins/discover/ holds exactly fwupd-backend.so and systemdsysupdate-backend.so. A backend that appears or goes missing there is a change to what Discover offers, so it stops the build instead of shipping.
build.sh removes two hidden desktop entries upstream installs whatever backends are built: org.kde.discover.snap.desktop, which claims snap: links, and org.kde.discover.appstreampreview.desktop, which claims loose AppStream files. With neither backend built, each would open a Discover window with nothing in it, and claim a type for a program that cannot handle it (see Desktop entries belong to the port).
The firmware backend refreshes the metadata of every enabled remote that is neither local nor a directory each time Discover starts (FwupdBackend::setRemotes). fwupd installs its LVFS remote switched off and lists firmware from the kdos-snapshot local remote, so starting Discover downloads nothing; once fwupdmgr enable-remote lvfs turns the LVFS on, every start of Discover downloads its metadata.
Three of Discover’s own paths reach the network whatever backends are loaded. The ratings fetch is turned off by odrs-offline.patch. The featured list is read from the URL in /usr/share/discover/featuredurlrc, which kdos-discover installs pointing at a local file, instead of autoconfig.kde.org. The firmware backend’s refresh is the paragraph above.
libdiscover is private to Discover and installs no header, so build.sh copies its headers, and the three the build generates (DiscoverConfig.h with the plugin IIDs, and the two export headers), to /usr/include/discover. kdos-discover builds its backend and its notifier plugin against them. The IIDs embed the full version (org.kde.discover.6.8.2.…), and Discover’s loader skips a plugin whose IID differs, so every discover version bump, point releases included, rebuilds kdos-discover and changes its KDOS_DISCOVER_VERSION. Upstream keeps libdiscover private on purpose, so the header installation stays KDOS’s.
The system-update backend only pings org.freedesktop.sysupdate1 to decide whether it is usable, so it finds KDOS’s own kdos-sysupdated, which owns that name on the system bus, with no patch. Discover’s packaging-library plugins are versioned by the exact Plasma release (DISCOVER_PLUGIN_IID), so a backend built against another Discover release is not loaded.
The configure also finds the libmarkdown pkg-config module when discount is installed; only the PackageKit backend uses it, so its presence changes nothing that is built.
kirigami, kirigami-addons, kitemmodels and purpose are QML modules Discover loads at run time; the configure checks only for org.kde.kitemmodels.