svn commit: r490904 - head/devel/libstatgrab
Tim Bishop
tdb at FreeBSD.org
Mon Jan 21 22:00:45 UTC 2019
Author: tdb
Date: Mon Jan 21 22:00:43 2019
New Revision: 490904
URL: https://svnweb.freebsd.org/changeset/ports/490904
Log:
Fix libstatgrab on FreeBSD 12
On FreeBSD 12 (since r309017) v_cache_count no longer exists. A
compatibility shim is in place if COMPAT_FREEBSD11 is defined in
the kernel, but if not libstatgrab fails to return any memory
statistics. This patch modifies libstatgrab to mimic this compatibility
behaviour (ie. return 0), regardless of whether COMPAT_FREEBSD11
is defined, which ensures the remaining statistics are returned
correctly.
A more complete solution will be considered upstream and hopefully
be included in the next release.
Reported by: Alexey Milevsky <a.milevsky at gmail.com>
Modified:
head/devel/libstatgrab/Makefile
Modified: head/devel/libstatgrab/Makefile
==============================================================================
--- head/devel/libstatgrab/Makefile Mon Jan 21 22:00:40 2019 (r490903)
+++ head/devel/libstatgrab/Makefile Mon Jan 21 22:00:43 2019 (r490904)
@@ -3,6 +3,7 @@
PORTNAME= libstatgrab
PORTVERSION= 0.91
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://ftp.mirrorservice.org/pub/i-scream/libstatgrab/ \
http://dl.ambiweb.de/mirrors/ftp.i-scream.org/libstatgrab/ \
@@ -13,10 +14,10 @@ COMMENT= Provides a useful interface to system statist
LICENSE= LGPL21
-USE_LDCONFIG= yes
-GNU_CONFIGURE= yes
USES= pathfix pkgconfig libtool
+USE_LDCONFIG= yes
+GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --docdir=${DOCSDIR}
OPTIONS_DEFINE= TOOLS DOCS
@@ -30,5 +31,11 @@ TOOLS_VARS= SHEBANG_FILES+="src/statgrab/statgrab-make
LICENSE+=GPLv2 LICENSE_COMB=multi
OPTIONS_SUB= yes
+
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200016
+EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_libstatgrab_memory__stats.c
+.endif
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list