Bug 472850

Summary: kdesrc-build --initial-setup does not take care of packagekit dependency
Product: [Developer tools] kdesrc-build Reporter: Jannick <wz24jio0r>
Component: generalAssignee: Michael Pyne <mpyne>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jannick 2023-07-31 16:13:02 UTC
SUMMARY
Trying to build packagekit-qt with kdesrc-build fails with an error that org.freedesktop.PackageKit.xml couldn't be found. I fixed this by installing extra/packagekit


STEPS TO REPRODUCE
1. Make sure that packagekit is not installed on your system
2. kdesrc-build --initial-setup
3. kdesrc-build packagekit-qt

OBSERVED RESULT
Build fails with the following error:
ninja: error: '/usr/share/dbus-1/interfaces/org.freedesktop.PackageKit.xml', needed by 'src/daemonproxy.cpp', missing and no known rule to make it

EXPECTED RESULT
Builds successfully, or kdesrc-build --initial-setup gives a helpful message about missing dependencies

SOFTWARE/OS VERSIONS
Archlinux 6.4.7-arch1-1 x86_64
KF6/QT6 branch
Comment 1 Bug Janitor Service 2023-07-31 16:29:55 UTC
A possibly relevant merge request was started @ https://invent.kde.org/sdk/kdesrc-build/-/merge_requests/256
Comment 2 Nate Graham 2023-08-01 15:13:49 UTC
Git commit f4bf297b5dae23d3edf51771472beeffbe30f7f6 by Nate Graham, on behalf of Jannick Kremer.
Committed on 01/08/2023 at 17:13.
Pushed by ngraham into branch 'master'.

Add packagekit to dependencies for initial setup

packagekit is required to build packagekit-qt

@teams/qa

I don't know if there's any order in which the packages are listed, so I just put packagekit close to the QT stuff.
I've googled for the package name in Debian, OpenSUSE and Fedora, but have only actually tested that this is correct under Arch. 

M  +4    -0    modules/ksb/FirstRun.pm

https://invent.kde.org/sdk/kdesrc-build/-/commit/f4bf297b5dae23d3edf51771472beeffbe30f7f6