summaryrefslogtreecommitdiff
path: root/kde-misc/kcollectd/files/kcollectd-0.9-boost.patch
diff options
context:
space:
mode:
Diffstat (limited to 'kde-misc/kcollectd/files/kcollectd-0.9-boost.patch')
-rw-r--r--kde-misc/kcollectd/files/kcollectd-0.9-boost.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/kde-misc/kcollectd/files/kcollectd-0.9-boost.patch b/kde-misc/kcollectd/files/kcollectd-0.9-boost.patch
new file mode 100644
index 000000000000..7823ab7dbac1
--- /dev/null
+++ b/kde-misc/kcollectd/files/kcollectd-0.9-boost.patch
@@ -0,0 +1,42 @@
+--- kcollectd-0.9.orig/kcollectd/kcollectd.cc
++++ kcollectd-0.9/kcollectd/kcollectd.cc
+@@ -73,7 +73,7 @@
+ gui->show();
+ }
+ }
+- catch(basic_filesystem_error<path> &e) {
++ catch(const std::exception &e) {
+ KMessageBox::error(0, i18n("Failed to read collectd-structure at \'%1\'\n"
+ "Terminating.", QString(RRD_BASEDIR)));
+ exit(1);
+
+--- kcollectd-0.9.orig/kcollectd/gui.cc
++++ kcollectd-0.9/kcollectd/gui.cc
+@@ -127,21 +127,21 @@
+ const directory_iterator end_itr;
+ for (directory_iterator host(rrdpath); host != end_itr; ++host ) {
+ if (is_directory(*host)) {
+- QTreeWidgetItem *hostitem = mkItem(listview, host->leaf());
++ QTreeWidgetItem *hostitem = mkItem(listview, host->path().filename().string());
+ hostitem->setFlags(hostitem->flags() & ~Qt::ItemIsSelectable);
+ for (directory_iterator sensor(*host); sensor != end_itr; ++sensor ) {
+ if (is_directory(*sensor)) {
+- QTreeWidgetItem *sensoritem = mkItem(hostitem, sensor->leaf());
++ QTreeWidgetItem *sensoritem = mkItem(hostitem, sensor->path().filename().string());
+ sensoritem->setFlags(sensoritem->flags() & ~Qt::ItemIsSelectable);
+ for (directory_iterator rrd(*sensor); rrd != end_itr; ++rrd ) {
+ if (is_regular(*rrd) && extension(*rrd) == ".rrd") {
+ QTreeWidgetItem *rrditem = mkItem(sensoritem, basename(*rrd));
+ rrditem->setFlags(rrditem->flags() & ~Qt::ItemIsSelectable);
+ std::ostringstream info;
+- info << host->leaf() << delimiter
+- << sensor->leaf() << delimiter
++ info << host->path().filename().string() << delimiter
++ << sensor->path().filename().string() << delimiter
+ << basename(*rrd);
+- get_datasources(rrd->string(), info.str(), rrditem);
++ get_datasources(rrd->path().string(), info.str(), rrditem);
+ }
+ }
+ }
+