Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 May 2015 17:35:34 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r385644 - in head/databases: db48 db5 db6
Message-ID:  <201505071735.t47HZYQf052709@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Thu May  7 17:35:33 2015
New Revision: 385644
URL: https://svnweb.freebsd.org/changeset/ports/385644

Log:
  enable posix-mutexes by default for armv6 targets as db will crash and burn
  when using the internal mutex implementation via unsupported instructions.
  
  PR:		197227
  Submitted by:	andrew@
  Approved by:	mandree@

Modified:
  head/databases/db48/Makefile
  head/databases/db5/Makefile
  head/databases/db6/Makefile

Modified: head/databases/db48/Makefile
==============================================================================
--- head/databases/db48/Makefile	Thu May  7 17:32:52 2015	(r385643)
+++ head/databases/db48/Makefile	Thu May  7 17:35:33 2015	(r385644)
@@ -33,6 +33,13 @@ INSTALL_TARGET=	install_include install_
 WRKSRC=		${WRKDIR}/${DISTNAME}/build_unix
 USE_LDCONFIG=	yes
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == "armv6"
+# db48 uses a deprecated instruction for mutexes on ARM, fbsd bug#197227
+CONFIGURE_ARGS+=	--enable-posixmutexes
+.endif
+
 post-patch:
 	${REINPLACE_CMD} -Ee 's|--mode=install cp -p|--mode=install ${INSTALL} -s|;' ${WRKSRC}/${CONFIGURE_SCRIPT}
 

Modified: head/databases/db5/Makefile
==============================================================================
--- head/databases/db5/Makefile	Thu May  7 17:32:52 2015	(r385643)
+++ head/databases/db5/Makefile	Thu May  7 17:35:33 2015	(r385644)
@@ -39,6 +39,11 @@ SQL_DESC=	Enable SQL API (EXPERIMENTAL)
 
 .include <bsd.port.options.mk>
 
+.if ${ARCH} == "armv6"
+# db5 uses a deprecated instruction for mutexes on ARM, fbsd bug#197227
+CONFIGURE_ARGS+=	--enable-posixmutexes
+.endif
+
 .if ${PORT_OPTIONS:MDOCS}
 INSTALL_TARGET+=install_docs docdir=${DOCSDIR}
 PORTDOCS=	*

Modified: head/databases/db6/Makefile
==============================================================================
--- head/databases/db6/Makefile	Thu May  7 17:32:52 2015	(r385643)
+++ head/databases/db6/Makefile	Thu May  7 17:35:33 2015	(r385644)
@@ -40,6 +40,11 @@ SQL_DESC=	Enable SQL API (EXPERIMENTAL)
 
 .include <bsd.port.options.mk>
 
+.if ${ARCH} == "armv6"
+# db6 uses a deprecated instruction for mutexes on ARM, fbsd bug#197227
+CONFIGURE_ARGS+=	--enable-posixmutexes
+.endif
+
 .if ${PORT_OPTIONS:MDOCS}
 INSTALL_TARGET+=install_docs
 PORTDOCS=	*



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