From owner-svn-ports-all@FreeBSD.ORG Mon Jun 9 04:25:03 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3A5B4F3C; Mon, 9 Jun 2014 04:25:03 +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 2764E2883; Mon, 9 Jun 2014 04:25:03 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s594P3ng063778; Mon, 9 Jun 2014 04:25:03 GMT (envelope-from danfe@svn.freebsd.org) Received: (from danfe@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s594P2hD063776; Mon, 9 Jun 2014 04:25:02 GMT (envelope-from danfe@svn.freebsd.org) Message-Id: <201406090425.s594P2hD063776@svn.freebsd.org> From: Alexey Dokuchaev Date: Mon, 9 Jun 2014 04:25:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r357102 - in head/math/tomsfastmath: . 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-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2014 04:25:03 -0000 Author: danfe Date: Mon Jun 9 04:25:02 2014 New Revision: 357102 URL: http://svnweb.freebsd.org/changeset/ports/357102 QAT: https://qat.redports.org/buildarchive/r357102/ Log: Remove USE_GCC and fix the broken code instead. While gcc accepts %cc and %memory, the syntax is wrong, since % is only used for registers. Clang currently rejects those constructs [1]. Similar fix was applied to NSS by Mozilla team before [2]. While here: remove BROKEN for ia64/sparc64 where it builds (for powerpc use BROKEN_powerpc), allow staging as regular user, GC stray MASTER_SITE_SUBDIR. [1] http://llvm.org/bugs/show_bug.cgi?id=10365 [2] https://bugzilla.mozilla.org/show_bug.cgi?id=671711 Modified: head/math/tomsfastmath/Makefile head/math/tomsfastmath/files/patch-makefile Modified: head/math/tomsfastmath/Makefile ============================================================================== --- head/math/tomsfastmath/Makefile Mon Jun 9 04:07:14 2014 (r357101) +++ head/math/tomsfastmath/Makefile Mon Jun 9 04:25:02 2014 (r357102) @@ -4,26 +4,25 @@ PORTNAME= tomsfastmath PORTVERSION= 0.12 CATEGORIES= math MASTER_SITES= http://libtom.org/files/ -MASTER_SITE_SUBDIR= miwi DISTNAME= tfm-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Portable fixed precision math library for fast exponentiations +BROKEN_powerpc= internal compiler error at src/mul/fp_mul_comba_48.c:398 + +USES= gmake tar:bzip2 WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} MAKEFILE= makefile -USES= gmake tar:bzip2 -USE_GCC= any ALL_TARGET= default PLIST_FILES= include/tfm.h lib/libtfm.a -.include - -.if ${ARCH} == "ia64" || ${ARCH} == "sparc64" -BROKEN= Does not compile on ia64 or sparc64 -.elif ${ARCH} == "powerpc" -BROKEN= Causes gcc coredump on powerpc -.endif +# Unbreak against Clang ("cc" is not a register) +post-patch: + @${REINPLACE_CMD} -e 's,"%cc","cc",' \ + ${WRKSRC}/src/mont/fp_montgomery_reduce.c \ + ${WRKSRC}/src/mul/fp_mul_comba.c \ + ${WRKSRC}/src/sqr/fp_sqr_comba.c -.include +.include Modified: head/math/tomsfastmath/files/patch-makefile ============================================================================== --- head/math/tomsfastmath/files/patch-makefile Mon Jun 9 04:07:14 2014 (r357101) +++ head/math/tomsfastmath/files/patch-makefile Mon Jun 9 04:25:02 2014 (r357102) @@ -1,6 +1,6 @@ --- makefile.orig Wed Apr 12 13:16:32 2006 +++ makefile Wed Apr 12 13:16:48 2006 -@@ -11,7 +11,7 @@ +@@ -11,7 +11,7 @@ endif ifndef IGNORE_SPEED @@ -9,8 +9,8 @@ #profiling #PROF=-pg -g -@@ -53,11 +53,11 @@ - HEADERS=tfm.h +@@ -52,11 +52,11 @@ HEADERS=src/headers/tfm.h + #END_INS ifndef LIBPATH - LIBPATH=/usr/lib @@ -23,3 +23,18 @@ endif ifndef INSTALL_GROUP +@@ -82,10 +82,10 @@ $(LIBNAME): $(OBJECTS) + ranlib $@ + + install: $(LIBNAME) +- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH) +- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH) +- install -g $(GROUP) -o $(USER) $(LIBNAME) $(DESTDIR)$(LIBPATH) +- install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH) ++ install -d $(DESTDIR)$(LIBPATH) ++ install -d $(DESTDIR)$(INCPATH) ++ install -m 644 $(LIBNAME) $(DESTDIR)$(LIBPATH) ++ install -m 644 $(HEADERS) $(DESTDIR)$(INCPATH) + + mtest/mtest: mtest/mtest.o + cd mtest ; CFLAGS="$(CFLAGS) -I../" MAKE=${MAKE} ${MAKE} mtest