From owner-svn-ports-head@freebsd.org Wed Sep 2 09:23:06 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CCDCC9C8416; Wed, 2 Sep 2015 09:23:06 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.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 A39186A3; Wed, 2 Sep 2015 09:23:06 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t829N6ne016335; Wed, 2 Sep 2015 09:23:06 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t829N6TD016333; Wed, 2 Sep 2015 09:23:06 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201509020923.t829N6TD016333@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Wed, 2 Sep 2015 09:23:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r395826 - in head/biology/crux: . files 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: Wed, 02 Sep 2015 09:23:06 -0000 Author: danfe Date: Wed Sep 2 09:23:05 2015 New Revision: 395826 URL: https://svnweb.freebsd.org/changeset/ports/395826 Log: Unbreak the build on PowerPC, it had nothing to do with "error in pthreads": configure script was passing `-faltivec' to the compiler, while this flag is non-standard and only supported on Mac OS X/Darwin systems. Also replace Apple-specific Altivec detection with querying the "hw.altivec" sysctl instead. Added: head/biology/crux/files/patch-lib_Crux_CxPpc.c (contents, props changed) Modified: head/biology/crux/Makefile Modified: head/biology/crux/Makefile ============================================================================== --- head/biology/crux/Makefile Wed Sep 2 08:54:03 2015 (r395825) +++ head/biology/crux/Makefile Wed Sep 2 09:23:05 2015 (r395826) @@ -13,8 +13,6 @@ COMMENT= Software toolkit for phylogenet LICENSE= BSD2CLAUSE BSD3CLAUSE LICENSE_COMB= multi -BROKEN_powerpc= does not build on powerpc: error in pthreads - USES= fortran gmake python tar:bzip2 USE_CSTD= gnu99 GNU_CONFIGURE= yes @@ -26,11 +24,13 @@ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib OPTIONS_DEFINE= SYS_LINALG + SYS_LINALG_DESC= Enable system ATLAS/LAPACK SYS_LINALG_LIB_DEPENDS= libatlas.so:${PORTSDIR}/math/atlas SYS_LINALG_CONFIGURE_ENABLE= sys-linalg post-patch: + @${REINPLACE_CMD} -e '/altivec/s|-f|-m|' ${WRKSRC}/configure @${REINPLACE_CMD} -e \ 's|\([[:blank:]]\)\($$(BINDIR)\)|\1$$(DESTDIR)\2| ; \ s|\([[:blank:]]\)\($$(DATADIR)\)|\1$$(DESTDIR)\2| ; \ Added: head/biology/crux/files/patch-lib_Crux_CxPpc.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/biology/crux/files/patch-lib_Crux_CxPpc.c Wed Sep 2 09:23:05 2015 (r395826) @@ -0,0 +1,18 @@ +--- lib/Crux/CxPpc.c.orig 2009-09-19 04:31:04 UTC ++++ lib/Crux/CxPpc.c +@@ -8,14 +8,11 @@ bool CxgPpcUseAltivec; + void + CxPpcCpuInit(void) + { +- int mib[2]; + int result, error; + size_t len; + +- mib[0] = CTL_HW; +- mib[1] = HW_VECTORUNIT; + len = sizeof(result); +- error = sysctl(mib, 2, &result, &len, NULL, 0); ++ error = sysctlbyname("hw.altivec", &result, &len, NULL, 0); + if (error != 0) + { + CxgPpcUseAltivec = false;