svn commit: r385644 - in head/databases: db48 db5 db6

Sean Bruno sbruno at FreeBSD.org
Thu May 7 17:35:35 UTC 2015


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=	*


More information about the svn-ports-all mailing list