Index: head/sysutils/apache-mesos/Makefile =================================================================== --- head/sysutils/apache-mesos/Makefile (revision 536277) +++ head/sysutils/apache-mesos/Makefile (revision 536278) @@ -1,73 +1,73 @@ # $FreeBSD$ PORTNAME= mesos PORTVERSION= 1.9.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= sysutils MASTER_SITES= APACHE/mesos/${PORTVERSION} PKGNAMEPREFIX= apache- MAINTAINER= james.wright@digital-chaos.com COMMENT= Cluster manager providing resource isolation and sharing LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE IGNORE_FreeBSD_11= does not build BUILD_DEPENDS= boost-libs>0:devel/boost-libs \ elfio>0:devel/elfio \ http-parser>0:www/http-parser \ leveldb>0:databases/leveldb \ picojson>0:devel/picojson \ protobuf>0:devel/protobuf \ rapidjson>0:devel/rapidjson \ libzookeeper>0:devel/libzookeeper LIB_DEPENDS= libapr-1.so:devel/apr1 \ libcurl.so:ftp/curl \ libgpr.so:devel/grpc \ libglog.so:devel/glog \ libhttp_parser.so:www/http-parser \ libev.so:devel/libev \ libleveldb.so:databases/leveldb \ libprotobuf.so:devel/protobuf \ libsasl2.so:security/cyrus-sasl2 \ libsvn_delta-1.so:devel/subversion \ libsvn_subr-1.so:devel/subversion \ libzookeeper_mt.so:devel/libzookeeper USES= gmake libarchive libtool python:run shebangfix USE_LDCONFIG= yes SHEBANG_FILES= src/cli/mesos-cat \ src/cli/mesos-ps \ src/cli/mesos-scp \ src/cli/mesos-tail GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-java \ --disable-python \ --disable-werror \ --with-apr=${LOCALBASE} \ --with-boost=${LOCALBASE} \ --with-elfio=${LOCALBASE} \ --with-glog=${LOCALBASE} \ --with-grpc=${LOCALBASE} \ --with-http_parser=${LOCALBASE} \ --with-leveldb=${LOCALBASE} \ --with-libarchive=${LOCALBASE} \ --with-libev=${LOCALBASE} \ --with-protobuf=${LOCALBASE} \ --with-picojson=${LOCALBASE} \ --with-rapidjson=${LOCALBASE} \ --with-sasl=${LOCALBASE} \ --with-svn=${LOCALBASE} \ --with-zookeeper=${LOCALBASE} INSTALL_TARGET= install-strip OPTIONS_DEFINE= DEPLOY OPTIONS_SUB= yes DEPLOY_DESC= Install deploy scripts .include Index: head/sysutils/apache-mesos/files/patch-3rdparty_stout_include_stout_os_freebsd.hpp =================================================================== --- head/sysutils/apache-mesos/files/patch-3rdparty_stout_include_stout_os_freebsd.hpp (nonexistent) +++ head/sysutils/apache-mesos/files/patch-3rdparty_stout_include_stout_os_freebsd.hpp (revision 536278) @@ -0,0 +1,49 @@ +--- 3rdparty/stout/include/stout/os/freebsd.hpp.orig 2020-05-22 20:48:06 UTC ++++ 3rdparty/stout/include/stout/os/freebsd.hpp +@@ -88,18 +88,29 @@ inline Try memory() + const size_t pageSize = os::pagesize(); + + unsigned int freeCount; +- size_t length = sizeof(freeCount); +- ++ size_t freeCountLength = sizeof(freeCount); + if (sysctlbyname( +- "vm.stats.v_free_count", ++ "vm.stats.vm.v_free_count", + &freeCount, +- &length, ++ &freeCountLength, + nullptr, + 0) != 0) { + return ErrnoError(); + } +- memory.free = Bytes(freeCount * pageSize); + ++ unsigned int inactiveCount; ++ size_t inactiveCountLength = sizeof(inactiveCount); ++ if (sysctlbyname( ++ "vm.stats.vm.v_inactive_count", ++ &inactiveCount, ++ &inactiveCountLength, ++ nullptr, ++ 0) != 0) { ++ return ErrnoError(); ++ } ++ ++ memory.free = Bytes((freeCount + inactiveCount) * pageSize); ++ + int totalBlocks = 0; + int usedBlocks = 0; + +@@ -112,8 +123,9 @@ inline Try memory() + // FreeBSD supports multiple swap devices. Here we sum across all of them. + struct xswdev xswd; + size_t xswdSize = sizeof(xswd); +- int* mibDevice = &(mib[mibSize + 1]); +- for (*mibDevice = 0; ; (*mibDevice)++) { ++ for (int ndev = 0; ; ndev++) { ++ mib[mibSize] = ndev; ++ + if (::sysctl(mib, 3, &xswd, &xswdSize, nullptr, 0) != 0) { + if (errno == ENOENT) { + break; Property changes on: head/sysutils/apache-mesos/files/patch-3rdparty_stout_include_stout_os_freebsd.hpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property