Bug 463402 - PolkitQt5-1 is not correctly set in KF5AuthConfig.cmake.in file
Summary: PolkitQt5-1 is not correctly set in KF5AuthConfig.cmake.in file
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kauth
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.101.0
Platform: Mageia RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-23 17:03 UTC by David Geiger
Modified: 2022-12-30 09:37 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Geiger 2022-12-23 17:03:01 UTC
Hi,

I found an incorrect PolkitQt5 setting in "KF5AuthConfig.cmake.in" file since this commit https://invent.kde.org/frameworks/kauth/-/commit/f6e2a38034be08650b250addcffcb6aab0933ee6
If the "KAUTH_BACKEND_NAME" = POLKITQT5-1 so the line 27:

find_dependency(PolkitQt@QT_MAJOR_VERSION@ "@POLKITQT_MIN_VERSION@")

should be replaced for: 

find_dependency(PolkitQt@QT_MAJOR_VERSION@-1 "@POLKITQT_MIN_VERSION@")

like in this patch:

--- a/KF5AuthConfig.cmake.in	2022-12-03 10:42:36.000000000 +0100
+++ b/KF5AuthConfig.cmake.in	2022-12-23 06:41:12.193626246 +0100
@@ -24,7 +24,7 @@ if(NOT @BUILD_SHARED_LIBS@)
     endif()
 
     if(KAUTH_BACKEND_NAME AND NOT @KAUTH_BUILD_CODEGENERATOR_ONLY@ AND "${KAUTH_BACKEND_NAME}" STREQUAL "POLKITQT@QT_MAJOR_VERSION@-1")
-        find_dependency(PolkitQt@QT_MAJOR_VERSION@ "@POLKITQT_MIN_VERSION@")
+        find_dependency(PolkitQt@QT_MAJOR_VERSION@-1 "@POLKITQT_MIN_VERSION@")
     endif()
 endif()
Comment 1 Bug Janitor Service 2022-12-30 00:32:46 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kauth/-/merge_requests/34
Comment 2 Nicolas Fella 2022-12-30 09:37:34 UTC
Git commit 2127ed5c79a82467503fc640e626bf7d3aee3448 by Nicolas Fella.
Committed on 30/12/2022 at 00:32.
Pushed by wrobelda into branch 'master'.

Fix polkit package name in CMake config

M  +2    -2    KF5AuthConfig.cmake.in

https://invent.kde.org/frameworks/kauth/commit/2127ed5c79a82467503fc640e626bf7d3aee3448