Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Feb 2016 14:32:11 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r408633 - in head/databases: mongodb32 mongodb32-tools
Message-ID:  <201602101432.u1AEWB7M072435@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Wed Feb 10 14:32:11 2016
New Revision: 408633
URL: https://svnweb.freebsd.org/changeset/ports/408633

Log:
  databases/mongodb32{-tools}: Disable WIRETIGER on i386, Mark BROKEN on 9.x
  
  MongoDB 3.2 doesn't build on FreeBSD 9.x, and its tools fail to build
  for a separate reason: TLS 1.1 and 1.2 are not found in the OpenSSL
  version that the builder detects.
  
  Fortunately, we don't have to solve that as the primary port does not
  support FreeBSD 9 either. Patched to IGNORE on < FreeBSD 10.
  
  PR:		206795, 206796
  Submitted by:	Brendan Molloy <brendan+freebsd bbqsrc net> (maintainer)
  MFH:		2016Q1

Modified:
  head/databases/mongodb32-tools/Makefile
  head/databases/mongodb32/Makefile

Modified: head/databases/mongodb32-tools/Makefile
==============================================================================
--- head/databases/mongodb32-tools/Makefile	Wed Feb 10 13:48:09 2016	(r408632)
+++ head/databases/mongodb32-tools/Makefile	Wed Feb 10 14:32:11 2016	(r408633)
@@ -4,6 +4,7 @@
 PORTNAME=	mongodb32-tools
 PORTVERSION=	3.2.1
 DISTVERSIONPREFIX=	r
+PORTREVISION=	1
 CATEGORIES=	databases net
 
 MAINTAINER=	brendan+freebsd@bbqsrc.net
@@ -39,6 +40,13 @@ MAKE_ENV=	GOPATH="${WRKSRC}/.gopath:${WR
 USES=	localbase
 MY_TAGS=	-tags "${USE_MY_TAGS}"
 
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 1000000
+# Cannot be built
+IGNORE=	unsupported on FreeBSD 9 or older
+.endif
+
 post-patch:
 	@cd ${WRKSRC} ; ${MKDIR} ${WRKSRC}/.gopath/src/github.com/${GH_ACCOUNT} ; \
 		${LN} -sf ${WRKSRC} ${WRKSRC}/.gopath/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}
@@ -62,4 +70,4 @@ post-install:
 	${INSTALL_MAN} ${WRKSRC}/${x} ${STAGEDIR}${DOCSDIR}
 .endfor
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Modified: head/databases/mongodb32/Makefile
==============================================================================
--- head/databases/mongodb32/Makefile	Wed Feb 10 13:48:09 2016	(r408632)
+++ head/databases/mongodb32/Makefile	Wed Feb 10 14:32:11 2016	(r408633)
@@ -4,6 +4,7 @@
 PORTNAME=	mongodb32
 PORTVERSION=	3.2.1
 DISTVERSIONPREFIX=	r
+PORTREVISION=	1
 CATEGORIES=	databases net
 MASTER_SITES=	https://fastdl.mongodb.org/src/ \
 		http://fastdl.mongodb.org/src/ \
@@ -11,7 +12,7 @@ MASTER_SITES=	https://fastdl.mongodb.org
 DISTNAME=	mongodb-src-${DISTVERSIONPREFIX}${PORTVERSION}
 
 MAINTAINER=	brendan+freebsd@bbqsrc.net
-COMMENT=	NOSQL distributed document-oriented database
+COMMENT=	Distributed document-oriented "NoSQL" database
 
 # mongodb is AGPLv3, C++ driver is APACHE20
 LICENSE=	AGPLv3 APACHE20
@@ -25,17 +26,26 @@ TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yam
 ONLY_FOR_ARCHS=	i386 amd64
 ONLY_FOR_ARCHS_REASON=	"not yet ported to anything other than i386 and amd64"
 
-OPTIONS_DEFINE=	SASL SSL
-OPTIONS_DEFAULT=SSL
+OPTIONS_DEFINE=		SASL SSL WIREDTIGER
+OPTIONS_DEFAULT=	SSL WIREDTIGER
+
+# Only supported on 64-bit
+OPTIONS_EXCLUDE_i386=	WIREDTIGER
 
 SASL_LIB_DEPENDS=	libsasl2.so:${PORTSDIR}/security/cyrus-sasl2
-SASL_MAKE_ARGS=	--use-sasl-client
+SASL_MAKE_ARGS=		--use-sasl-client
 
 SSL_USE=	openssl=yes
 SSL_MAKE_ARGS=	--ssl
 
+WIREDTIGER_DESC=	WiredTiger database engine support
+WIREDTIGER_VARS=	wiredtiger_build=on
+WIREDTIGER_VARS_OFF=	wiredtiger_build=off
+
 USES=		cpe execinfo python:build scons
+
 MAKE_ARGS=	--prefix=${STAGEDIR}${PREFIX} \
+		--wiredtiger=${WIREDTIGER_BUILD} \
 		--use-system-pcre --use-system-snappy \
 		--release
 
@@ -47,6 +57,17 @@ USE_RC_SUBR=	mongod
 ALL_TARGET=	core
 TEST_TARGET=	unittests
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "i386"
+WIREDTIGER_BUILD=	off
+.endif
+
+.if ${OSVERSION} < 1000000
+# Cannot be built
+IGNORE=	unsupported on FreeBSD 9 or older
+.endif
+
 post-install:
 .for f in mongo mongod mongoperf mongos mongosniff
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${f}
@@ -62,4 +83,4 @@ PORTSCOUT=	limitw:1,even
 
 CPE_PRODUCT=	mongodb
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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