From: Sebastian Harl Date: Fri, 18 May 2012 17:09:06 +0000 (+0200) Subject: rules: Work around #673431 (kvm.h requires sys/types.h). X-Git-Tag: collectd-4.10.7-1~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6900584a091006b5d61077978a28357c24f72752;p=pkg-collectd.git rules: Work around #673431 (kvm.h requires sys/types.h). … by forcing the processes plugin on kfreebsd and manually defining HAVE_STRUCT_KINFO_PROC_FREEBSD. --- 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 \