From 6900584a091006b5d61077978a28357c24f72752 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 18 May 2012 19:09:06 +0200 Subject: [PATCH] rules: Work around #673431 (kvm.h requires sys/types.h). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … by forcing the processes plugin on kfreebsd and manually defining HAVE_STRUCT_KINFO_PROC_FREEBSD. --- debian/changelog | 2 ++ debian/rules | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index 3745905..befdcc6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -16,6 +16,8 @@ collectd (4.10.7-1) unstable; urgency=low architecture directory, thus, making sure armhf and armel are supported as well; thanks to peter green for reporting this and providing the pointer (Closes: #656274). + - Work around #673431 (kvm.h requires sys/types.h) by forcing the processes + plugin on kfreebsd and manually defining HAVE_STRUCT_KINFO_PROC_FREEBSD. * debian/README.Debian: - Added section 'Cleanup of old data' explaining how to get rid of out-dated data files (e.g. RRD files). diff --git a/debian/rules b/debian/rules index b75ccc7..be53f76 100755 --- a/debian/rules +++ b/debian/rules @@ -100,6 +100,10 @@ endif # These plugins have not been ported to FreeBSD yet. ifneq (,$(filter kfreebsd-i386 kfreebsd-amd64, $(DEB_BUILD_ARCH))) + # Work-around an incomplete check for kvm functionality + CPPFLAGS += -DHAVE_STRUCT_KINFO_PROC_FREEBSD + confflags += --enable-processes=force + confflags += \ --disable-battery \ --disable-conntrack \ -- 2.30.2