From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Mar 20 22:40:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org 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 D566458D for ; Thu, 20 Mar 2014 22:40: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 AE842E7B for ; Thu, 20 Mar 2014 22:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2KMe0ZM046586 for ; Thu, 20 Mar 2014 22:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2KMe03b046584; Thu, 20 Mar 2014 22:40:00 GMT (envelope-from gnats) Resent-Date: Thu, 20 Mar 2014 22:40:00 GMT Resent-Message-Id: <201403202240.s2KMe03b046584@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 [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 DAB80340 for ; Thu, 20 Mar 2014 22:35:42 +0000 (UTC) Received: from mailrelay009.isp.belgacom.be (mailrelay009.isp.belgacom.be [195.238.6.176]) by mx1.freebsd.org (Postfix) with ESMTP id 6EE98E4F for ; Thu, 20 Mar 2014 22:35:42 +0000 (UTC) Received: from 104.105-242-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.242.105.104]) by relay.skynet.be with ESMTP; 20 Mar 2014 23:35:34 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.8/8.14.8) with ESMTP id s2KMZW7B095610 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 20 Mar 2014 23:35:33 +0100 (CET) (envelope-from tijl@kalimero.tijl.coosemans.org) Received: (from tijl@localhost) by kalimero.tijl.coosemans.org (8.14.8/8.14.8/Submit) id s2KMZWhj095609; Thu, 20 Mar 2014 23:35:32 +0100 (CET) (envelope-from tijl) Message-Id: <201403202235.s2KMZWhj095609@kalimero.tijl.coosemans.org> Date: Thu, 20 Mar 2014 23:35:32 +0100 (CET) From: Tijl Coosemans To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/187801: [patch] science/mpqc: support LDFLAGS (fixes libghemical) 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: Thu, 20 Mar 2014 22:40:00 -0000 >Number: 187801 >Category: ports >Synopsis: [patch] science/mpqc: support LDFLAGS (fixes libghemical) >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: Thu Mar 20 22:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Tijl Coosemans >Release: FreeBSD 11.0-CURRENT i386 >Organization: >Environment: >Description: The attached patch makes the port use LDFLAGS from Mk/Uses/fortran.mk such that the libraries and executables are linked with the runtime libraries from lang/gcc instead of the base system. This fixes this build error in libghemical: http://beefy2.isc.freebsd.org/bulk/91amd64-default/2014-03-19_18h55m31s/logs/errors/libghemical-3.0.0_2.log Tested on redports: mpqc: https://redports.org/buildarchive/20140320200601-29431/ mpqc-mpich: https://redports.org/buildarchive/20140320202454-12424/ libghemical: https://redports.org/buildarchive/20140320202534-78415/ >How-To-Repeat: >Fix: --- mpqc.patch begins here --- Index: science/mpqc/Makefile =================================================================== --- science/mpqc/Makefile (revision 348672) +++ science/mpqc/Makefile (working copy) @@ -3,7 +3,7 @@ PORTNAME= mpqc PORTVERSION= 2.3.1 -PORTREVISION= 18 +PORTREVISION= 19 CATEGORIES= science parallel MASTER_SITES= SF @@ -59,7 +59,8 @@ CXXFLAGS= -O3 -tpp7 -xMKW -Vaxlib CONFIGURE_ARGS+=--with-cc=${CC} \ --with-cxx=${CXX} \ --with-f77=${FC} \ - --with-libdirs=-L${LOCALBASE}/lib \ + --with-include="-I${WRKDIR} -I${LOCALBASE}/include" \ + --with-libdirs="-L${LOCALBASE}/lib ${LDFLAGS}" \ --with-blas="${BLAS}" \ --with-lapack="${LAPACK}" \ --with-coptflags="${CFLAGS}" \ @@ -71,15 +72,9 @@ CONFIGURE_ARGS+=--with-cc=${CC} \ CONFIGURE_ARGS+=--with-libs="-lsvml" .endif .if defined(WITH_MPICH) -CONFIGURE_ARGS+=--with-libdirs="-L${LOCALBASE}/lib -L${LOCALBASE}/lib"\ - --enable-always-use-mpi +CONFIGURE_ARGS+=--enable-always-use-mpi CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" .endif -.if defined(WITH_MPICH) -CONFIGURE_ARGS+=--with-include="-I${LOCALBASE}/include -I${WRKDIR} -I${LOCALBASE}/include" -.else -CONFIGURE_ARGS+=--with-include="-I${WRKDIR} -I${LOCALBASE}/include" -.endif MPQC_COMMAND= ${PREFIX}/bin/mpqc Index: science/mpqc/files/patch-LocalMakefile.in =================================================================== --- science/mpqc/files/patch-LocalMakefile.in (revision 348672) +++ science/mpqc/files/patch-LocalMakefile.in (working copy) @@ -5,10 +5,10 @@ LTLINK = $(LIBTOOL) --mode=link ifneq ($(BUILDID),) - LTLINKLIBOPTS = -rpath $(libdir) -release $(BUILDID) -version-info $(SC_SO_VERSION) -+ LTLINKLIBOPTS = %%EXTRARPATH%% -rpath $(libdir) -release $(BUILDID) -version-info $(SC_SO_VERSION) ++ LTLINKLIBOPTS = $(LDFLAGS) -rpath $(libdir) -release $(BUILDID) -version-info $(SC_SO_VERSION) else - LTLINKLIBOPTS = -rpath $(libdir) -version-info $(SC_SO_VERSION) -+ LTLINKLIBOPTS = %%EXTRARPATH%% -rpath $(libdir) -version-info $(SC_SO_VERSION) ++ LTLINKLIBOPTS = $(LDFLAGS) -rpath $(libdir) -version-info $(SC_SO_VERSION) endif LTLINKBINOPTS = LTCOMP = $(LIBTOOL) --mode=compile --- mpqc.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: