Bug 415940

Summary: KF5AuthMacros relies on variables from KDEInstallDirs, does not include it & not declare dependency on ECM
Product: [Frameworks and Libraries] frameworks-kauth Reporter: Friedrich W. H. Kossebau <kossebau>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.65.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Friedrich W. H. Kossebau 2020-01-06 16:59:11 UTC
KAUTH_INSTALL_HELPER_FILES uses the variables "KDE_INSTALL_DBUSDIR" & "DBUS_SYSTEM_SERVICES_INSTALL_DIR", which are set by the ECM modules KDEInstallDirs usually.

KF5AuthMacros does not include the module "KDEInstallDirs" though, so projects trying to use the macro KAUTH_INSTALL_HELPER_FILES but not using ECM or having included the "KDEInstallDirs" module themselves before will see the call failing with "install FILES given no DESTINATION" or similar.

I would propose to fix this by adding additional arguments to pass in explicitly the installation paths. While this adds duplication in typical usage in KDE products, it avoids the dependency of KAuth on ECM, which might help adaption outside of KDE spheres.