Code

work around liblvm2app depreciation
authorMarc Fournier <marc@bl.uem.li>
Fri, 23 Feb 2018 08:28:37 +0000 (09:28 +0100)
committerMarc Fournier <marc@bl.uem.li>
Fri, 23 Feb 2018 08:28:37 +0000 (09:28 +0100)
debian/changelog
debian/patches/liblvm2app_depreciation_warning.patch [new file with mode: 0644]
debian/patches/series

index 82e25a067804fd3753d20b52be61a03561f6ce85..7c9a0efbc241f432b860ddc13fd4293ecda792ec 100644 (file)
@@ -16,8 +16,10 @@ collectd (5.8.0-1) UNRELEASED; urgency=medium
   * debian/patches:
     - Added i2c_detection.patch; needed to build against libi2c-4.0. Thanks to
       Christian Ehrhardt fo reporting this problem and Andreas Hasenack for
-      providing a patch.
-      (Closes: #886920)
+      providing a patch. (Closes: #886920)
+    - Added liblvm2app_depreciation_warning.patch; allows the the plugin to
+      build despite liblvm2app depreciation. Thanks to Christian Ehrhardt for
+      suggesting this workaround. (Closes: #881641)
     - Added rd_kafka_last_error.patch; needed to build against
       librdkafka-0.11.0. Thanks to Pavel Rochnyack for providing a patch.
     - Removed dpdk-pkg-config.patch; included upstream.
diff --git a/debian/patches/liblvm2app_depreciation_warning.patch b/debian/patches/liblvm2app_depreciation_warning.patch
new file mode 100644 (file)
index 0000000..e8bc582
--- /dev/null
@@ -0,0 +1,17 @@
+Description: mute liblvm2app depreciation warning
+Forwarded: https://github.com/collectd/collectd/issues/2647
+Author: Christian Ehrhardt <christian.ehrhardt@canonical.com>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881641
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1042,7 +1042,7 @@ endif
+ if BUILD_PLUGIN_LVM
+ pkglib_LTLIBRARIES += lvm.la
+ lvm_la_SOURCES = src/lvm.c
+-lvm_la_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_LIBLVM2APP_CPPFLAGS)
++lvm_la_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_LIBLVM2APP_CPPFLAGS) -Wno-cpp
+ lvm_la_LDFLAGS = $(PLUGIN_LDFLAGS) $(BUILD_WITH_LIBLVM2APP_LDFLAGS)
+ lvm_la_LIBADD = $(BUILD_WITH_LIBLVM2APP_LIBS)
+ endif
+
index 8041789e28d092aba792ed5b790ca6a230b15a4f..5e007636e85ea58f42ca51d8e788269debf95b6b 100644 (file)
@@ -4,3 +4,4 @@ myplugin_includes.patch
 nagios-debian-paths.patch
 rd_kafka_last_error.patch
 i2c_detection.patch
+liblvm2app_depreciation_warning.patch