Bug 456305

Summary: kcm region_language fails to configure on Ubuntu if packagekitqt5 is missing
Product: [Applications] systemsettings Reporter: Kai Uwe Broulik <kde>
Component: kcm_regionandlangAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: hanyoung, hein, nate
Priority: NOR    
Version: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kai Uwe Broulik 2022-07-04 07:14:59 UTC
SUMMARY
The region_language KCM fails to CMake configure if pakagekitq5 is missing

STEPS TO REPRODUCE
1. Build on Ubuntu, dont have packagekitqt5-dev installed

OBSERVED RESULT
Fails to configure because TARGET PK::packagekitqt5 was not found

EXPECTED RESULT
It checks whether the target is found because the find_package dependency on it is optional

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: git master as of 2022-07-04
Qt Version: 5.15.5
Comment 1 hanyoung 2022-07-06 05:08:01 UTC
The packagekit dependency is required on Ubuntu based system by default. If you don't want it, add UBUNTU_PACKAGEKIT=OFF option to cmake