Bug 415940 - KF5AuthMacros relies on variables from KDEInstallDirs, does not include it & not declare dependency on ECM
Summary: KF5AuthMacros relies on variables from KDEInstallDirs, does not include it & ...
Status: REPORTED
Alias: None
Product: frameworks-kauth
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.65.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-06 16:59 UTC by Friedrich W. H. Kossebau
Modified: 2020-01-06 16:59 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.