Bug 475775 - kdesrc-build workspace doesn't compile packages in a useful order
Summary: kdesrc-build workspace doesn't compile packages in a useful order
Status: RESOLVED NOT A BUG
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (show other bugs)
Version: Git
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-18 06:25 UTC by Yao Mitachi
Modified: 2023-10-20 16:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
CMake log for failed kio-extras build (13.54 KB, text/x-log)
2023-10-19 03:41 UTC, Yao Mitachi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yao Mitachi 2023-10-18 06:25:59 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Follow steps here: https://community.kde.org/Get_Involved/development/Set_up_a_development_environment
2. Then these: https://community.kde.org/Get_Involved/development/Build_software_with_kdesrc-build
3. `kdesrc-build workspace` (Qt6 is already installed from Arch repository)

OBSERVED RESULT

It attempts to build kdecorations first, which relies upon breeze, which relies upon kcoreaddons

EXPECTED RESULT

It first builds packages that don't depend on other packages that still need to be built, such as kcoreaddons.

SOFTWARE/OS VERSIONS
Linux: 6.5.7
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION
Comment 1 Nicolas Fella 2023-10-18 21:31:24 UTC
> It attempts to build kdecorations first, which relies upon breeze, which relies upon kcoreaddons

I don't follow. kdecoration does not depend on breeze. It's the other way around, breeze depends on kdecoration
Comment 2 Nicolas Fella 2023-10-18 21:47:42 UTC
What I think is happening is that `kdesrc-build workspace` only builds the packages in the workspace group, which includes kdecoration and breeze, but not kcoreaddons or any other frameworks.

If you pass "--include-dependencies" then it should pick up the kcoreaddons dependency

I know the Wiki says that including dependencies happens by default, but that's not completely the case
Comment 3 Yao Mitachi 2023-10-19 03:41:19 UTC
Created attachment 162417 [details]
CMake log for failed kio-extras build

Thanks, that got me further along. That was definitely my primary issue. Hit a roadblock at kio-extras though, I've attached the CMake log. What am I missing?
Comment 4 Nate Graham 2023-10-20 16:59:04 UTC
Something different. However this isn't the place to request help with dev setups; see https://community.kde.org/Get_Involved/Issue_Reporting#Step_1:_Make_sure_it's_a_valid_bug_or_feature_request. I'd recommend asking for help with individual failures in the #kde-devel matrix room.
As for the issue of --include-dependencies not actually being set by default; see https://invent.kde.org/sdk/kdesrc-build/-/merge_requests/297.