From owner-svn-ports-head@FreeBSD.ORG Thu May 7 17:35:35 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5D542494; Thu, 7 May 2015 17:35:35 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 32E5D14D9; Thu, 7 May 2015 17:35:35 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t47HZZoi052715; Thu, 7 May 2015 17:35:35 GMT (envelope-from sbruno@FreeBSD.org) Received: (from sbruno@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t47HZYQf052709; Thu, 7 May 2015 17:35:34 GMT (envelope-from sbruno@FreeBSD.org) Message-Id: <201505071735.t47HZYQf052709@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: sbruno set sender to sbruno@FreeBSD.org using -f From: Sean Bruno Date: Thu, 7 May 2015 17:35:34 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2015 17:35:35 -0000 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 + +.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 +.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 +.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= *