Code

patches/: rrd_filter_path.dpatch: Also patch the migrate-4-5 script.
authorSebastian Harl <sh@teamix.net>
Thu, 22 Nov 2012 11:08:37 +0000 (12:08 +0100)
committerSebastian Harl <sh@teamix.net>
Thu, 22 Nov 2012 11:08:37 +0000 (12:08 +0100)
While this is not required for the (optional) auto-migration when updating the
package (the full path is passed as an argument) it helps the user to just use
the script without the need to add further arguments.

Thanks to Joey Hess for reporting this!
Closes: #689001
debian/changelog
debian/patches/rrd_filter_path.dpatch

index 5b3fe86e58c0a859440bbd6b89e036a0a164df41..b89a6e8b5d54c8b06e45905aaeda63806a8fbfb2 100644 (file)
@@ -20,6 +20,11 @@ collectd (5.2.0-1) experimental; urgency=low
     - Removed rtnl_dump_filter.dpatch; merged upstream.
     - Added myplugin_includes.dpatch -- change the example plugin include path
       to /usr/include/collectd/core/ (see below).
+    - rrd_filter_path.dpatch: Also patch the migrate-4-5 script; while this is
+      not required for the (optional) auto-migration when updating the package
+      (the full path is passed as an argument) it helps the user to just use
+      the script without the need to add further arguments; thanks to Joey
+      Hess for reporting this (Closes: #689001).
   * debian/rules:
     - Fix installation paths used for Perl bindings. Upstream now passes
       INSTALL_BASE rather than PREFIX to Makefile.PL which resulted in the
index 2678334692305288238b47394bdd7127fd5cef0d..4580bba4029800ad041f0d77eb1685ce0fec886a 100755 (executable)
@@ -41,3 +41,17 @@ diff a/contrib/migrate-3-4.px b/contrib/migrate-3-4.px
  }
  
  sub exit_usage
+diff a/contrib/migrate-4-5.px b/contrib/migrate-4-5.px
+--- a/contrib/migrate-4-5.px
++++ b/contrib/migrate-4-5.px
+@@ -32,8 +32,8 @@
+ use File::Basename ('dirname');
+ our $InDir = '/var/lib/collectd';
+-our $RRDtool = 'rrdtool';
+-our $RRDFilter = 'rrd_filter.px';
++our $RRDtool = '/usr/bin/rrdtool';
++our $RRDFilter = '/usr/lib/collectd/utils/rrd_filter.px';
+ our %TypesCounterToDerive = # {{{
+ (