Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Oct 2016 20:29:06 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r424288 - in head/devel/libgrading: . files
Message-ID:  <201610192029.u9JKT65X027494@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Wed Oct 19 20:29:06 2016
New Revision: 424288
URL: https://svnweb.freebsd.org/changeset/ports/424288

Log:
  - Mark BROKEN on 9.x: doesn't build due to lacking c++11 support
  - Fix build on 10.1, don't try to use missing sys/capsicum.h
  
  Approved by:	portmgr blanket

Added:
  head/devel/libgrading/files/
  head/devel/libgrading/files/patch-src_posix.cpp   (contents, props changed)
Modified:
  head/devel/libgrading/Makefile

Modified: head/devel/libgrading/Makefile
==============================================================================
--- head/devel/libgrading/Makefile	Wed Oct 19 20:28:17 2016	(r424287)
+++ head/devel/libgrading/Makefile	Wed Oct 19 20:29:06 2016	(r424288)
@@ -12,10 +12,12 @@ LICENSE=	APACHE20
 
 LIB_DEPENDS=	libdistance.so:devel/libdistance
 
+BROKEN_FreeBSD_9=	does not build (lack of std::to_string)
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	trombonehero
 
-USES=		cmake
+USES=		cmake compiler:c++11-lib
 USE_LDCONFIG=	yes
 
 PLIST_FILES=	include/libgrading.h \

Added: head/devel/libgrading/files/patch-src_posix.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libgrading/files/patch-src_posix.cpp	Wed Oct 19 20:29:06 2016	(r424288)
@@ -0,0 +1,14 @@
+--- src/posix.cpp.orig	2016-09-19 18:47:05 UTC
++++ src/posix.cpp
+@@ -186,6 +186,11 @@ TestResult grading::ForkTest(TestClosure
+ 
+ 
+ #ifdef __FreeBSD__
++#include <sys/param.h>
++#endif
++
++#if defined(__FreeBSD__) && __FreeBSD_version >= 1001511
++
+ #include <sys/capsicum.h>
+ 
+ #include <err.h>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610192029.u9JKT65X027494>