Code

work around liblvm2app depreciation
[pkg-collectd.git] / debian / patches / liblvm2app_depreciation_warning.patch
1 Description: mute liblvm2app depreciation warning
2 Forwarded: https://github.com/collectd/collectd/issues/2647
3 Author: Christian Ehrhardt <christian.ehrhardt@canonical.com>
4 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881641
6 --- a/Makefile.am
7 +++ b/Makefile.am
8 @@ -1042,7 +1042,7 @@ endif
9  if BUILD_PLUGIN_LVM
10  pkglib_LTLIBRARIES += lvm.la
11  lvm_la_SOURCES = src/lvm.c
12 -lvm_la_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_LIBLVM2APP_CPPFLAGS)
13 +lvm_la_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_LIBLVM2APP_CPPFLAGS) -Wno-cpp
14  lvm_la_LDFLAGS = $(PLUGIN_LDFLAGS) $(BUILD_WITH_LIBLVM2APP_LDFLAGS)
15  lvm_la_LIBADD = $(BUILD_WITH_LIBLVM2APP_LIBS)
16  endif