From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Dec 21 14:30:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.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 AF63AD42 for ; Sat, 21 Dec 2013 14:30:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8675418C4 for ; Sat, 21 Dec 2013 14:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBLEU0uP009421 for ; Sat, 21 Dec 2013 14:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBLEU0Fi009420; Sat, 21 Dec 2013 14:30:00 GMT (envelope-from gnats) Resent-Date: Sat, 21 Dec 2013 14:30:00 GMT Resent-Message-Id: <201312211430.rBLEU0Fi009420@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tijl Coosemans Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 33B3CC54 for ; Sat, 21 Dec 2013 14:27:47 +0000 (UTC) Received: from mailrelay002.isp.belgacom.be (mailrelay002.isp.belgacom.be [195.238.6.175]) by mx1.freebsd.org (Postfix) with ESMTP id C2CAC18B2 for ; Sat, 21 Dec 2013 14:27:46 +0000 (UTC) Received: from 66.130-241-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.241.130.66]) by relay.skynet.be with ESMTP; 21 Dec 2013 15:27:37 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.7/8.14.7) with ESMTP id rBLERbaX018182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 21 Dec 2013 15:27:38 +0100 (CET) (envelope-from tijl@kalimero.tijl.coosemans.org) Received: (from tijl@localhost) by kalimero.tijl.coosemans.org (8.14.7/8.14.7/Submit) id rBLERbkQ018181; Sat, 21 Dec 2013 15:27:37 +0100 (CET) (envelope-from tijl) Message-Id: <201312211427.rBLERbkQ018181@kalimero.tijl.coosemans.org> Date: Sat, 21 Dec 2013 15:27:37 +0100 (CET) From: Tijl Coosemans To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/185069: [patch] math/superlu_mt: USES=fortran + misc changes X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Tijl Coosemans List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Dec 2013 14:30:00 -0000 >Number: 185069 >Category: ports >Synopsis: [patch] math/superlu_mt: USES=fortran + misc changes >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Dec 21 14:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Tijl Coosemans >Release: FreeBSD 11.0-CURRENT i386 >Organization: >Environment: >Description: - Convert USE_FORTRAN and USE_GMAKE to USES=fortran gmake. - Let the port respect CPPFLAGS and LDFLAGS. USES=fortran only sets the Fortran compiler so the base system compiler is still used for C/C++. This means ports need to respect LDFLAGS to be able to find the gfortran runtime libraries. >How-To-Repeat: >Fix: --- superlu_mt.patch begins here --- Index: math/superlu_mt/Makefile =================================================================== --- math/superlu_mt/Makefile (revision 337128) +++ math/superlu_mt/Makefile (working copy) @@ -17,8 +17,7 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= bf@FreeBSD.org COMMENT= Routines for performing multithreaded sparse factorization -USE_FORTRAN= yes -USE_GMAKE= yes +USES= fortran gmake NO_STAGE= yes .include @@ -71,8 +70,10 @@ post-patch: ${CP} -r ${WRKSRC} ${WRKSRC_SHARED} @${REINPLACE_CMD} -e 's+%%BLAS%%+-L${LOCALBASE}/lib ${BLAS}+ ; \ s+%%CC%%+${CC}+; s+%%FC%%+${FC}+; \ + s+%%CPPFLAGS%%+${CPPFLAGS}+; \ s+%%CFLAGS%%+${CFLAGS}+; \ s+%%FFLAGS%%+${FFLAGS}+; \ + s+%%LDFLAGS%%+${LDFLAGS}+; \ s+%%FPIC%%++; \ s+%%PTHREAD_CFLAGS%%+${PTHREAD_CFLAGS}+ ; \ s+%%PTHREAD_LIBS%%+${PTHREAD_LIBS}+ ' \ @@ -80,8 +81,10 @@ post-patch: @${REINPLACE_CMD} -e 's+%%BLAS%%+-L${LOCALBASE}/lib ${BLAS}+ ; \ s+%%CC%%+${CC}+; s+%%FC%%+${FC}+; \ + s+%%CPPFLAGS%%+${CPPFLAGS}+; \ s+%%CFLAGS%%+${CFLAGS} ${FPIC}+; \ s+%%FFLAGS%%+${FFLAGS} ${FPIC}+; \ + s+%%LDFLAGS%%+${LDFLAGS}+; \ s+%%FPIC%%+${FPIC}+; \ s+%%PTHREAD_CFLAGS%%+${PTHREAD_CFLAGS}+ ; \ s+%%PTHREAD_LIBS%%+${PTHREAD_LIBS}+ ' \ Property changes on: math/superlu_mt/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: math/superlu_mt/files/patch-make.inc =================================================================== --- math/superlu_mt/files/patch-make.inc (revision 337128) +++ math/superlu_mt/files/patch-make.inc (working copy) @@ -41,11 +41,11 @@ -LOADER = xlc_r -LOADOPTS = -bmaxdata:0x80000000 +CC = %%CC%% -+CFLAGS = $(PREDEFS) %%CFLAGS%% %%PTHREAD_CFLAGS%% -+FORTRAN = %%FC%% ++CFLAGS = $(PREDEFS) %%CPPFLAGS%% %%CFLAGS%% %%PTHREAD_CFLAGS%% ++FORTRAN = %%FC%% +FFLAGS = %%FFLAGS%% -+LOADER = %%FC%% -+LOADOPTS = -O ++LOADER = %%CC%% ++LOADOPTS = %%LDFLAGS%% +NOOPTS = %%FPIC%% # # C preprocessor defs for compilation for the Fortran interface Property changes on: math/superlu_mt/files/patch-make.inc ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property --- superlu_mt.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: