Summary: | boot-time unable to find ksysguarddrc warning | ||
---|---|---|---|
Product: | [Unmaintained] ksysguard | Reporter: | John Stanley <jpsinthemix> |
Component: | general | Assignee: | KSysGuard Developers <ksysguard-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | christophe, makc, rakuco |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
John Stanley
2009-07-11 01:41:57 UTC
SVN commit 994705 by johnflux: Fix finding ksysguarddrc as suggested by John Stanley BUG:199734 M +1 -1 CMakeLists.txt WebSVN link: http://websvn.kde.org/?view=rev&revision=994705 it seems this fix has been lost somwhow, can it be committed again? +krop The fix was reverted ages ago in http://quickgit.kde.org/?p=kde-workspace.git&a=commit&h=4c2df14400bf741f4910e3783e78860a06ec2755 but it is not clear to me why. Christophe, do you still remember why you did that or was it just an oversight? Actually, I should ask Max instead; if I reapply the original commit here with CMake 3.1.3 the code just doesn't build, as the code in ksysguardd.c evaluates to #define KSYSGUARDDRCFILE /s/kde/etc/ksysguarddrc instead of #define KSYSGUARDDRCFILE "/s/kde/etc/ksysguarddrc" Back then, the extra quoting was the only way to have '${SYSCONF_INSTALL_DIR}/ksysguarddrc' passed as parameter (due to some CMake CMPxxx policies set by kdelibs). On the other hand, ksysguard for an unknown reason was also supposed to build standalone but unconditionnaly adding 'cmake_minimum_required(VERSION 2.6.2)' was resetting the CMake policies to their default values. (In reply to Raphael Kubo da Costa from comment #4) > Actually, I should ask Max instead; if I reapply the original commit here > with CMake 3.1.3 the code just doesn't build, as the code in ksysguardd.c > evaluates to > > #define KSYSGUARDDRCFILE /s/kde/etc/ksysguarddrc > > instead of > > #define KSYSGUARDDRCFILE "/s/kde/etc/ksysguarddrc" With kde-workspace-4.11.14, cmake-3.1.3 I have: ksysguardd.c:static const char *ConfigFile = KSYSGUARDDRCFILE; ksysguardd/CMakeFiles/ksysguardd.dir/flags.make:C_DEFINES = -DKSYSGUARDDRCFILE="\"\\\"/usr/local/etc/ksysguarddrc\\\"\"" -DOSTYPE_FreeBSD After patching: ksysguardd/CMakeFiles/ksysguardd.dir/flags.make:C_DEFINES = -DKSYSGUARDDRCFILE=\"/usr/local/etc/ksysguarddrc\" -DOSTYPE_FreeBSD Note: a better fix for master would be to use a config file instead of relying on compilers parameters. there's already a config-ksysguardd.h.cmake that could be used for that purpose. |