From owner-freebsd-ports@FreeBSD.ORG Wed May 7 21:22:23 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FF8837B401 for ; Wed, 7 May 2003 21:22:23 -0700 (PDT) Received: from web13406.mail.yahoo.com (web13406.mail.yahoo.com [216.136.175.64]) by mx1.FreeBSD.org (Postfix) with SMTP id DEA9B43F93 for ; Wed, 7 May 2003 21:22:22 -0700 (PDT) (envelope-from giffunip@yahoo.com) Message-ID: <20030508042222.13124.qmail@web13406.mail.yahoo.com> Received: from [200.91.197.199] by web13406.mail.yahoo.com via HTTP; Thu, 08 May 2003 05:22:22 BST Date: Thu, 8 May 2003 05:22:22 +0100 (BST) From: "=?iso-8859-1?q?Pedro=20F.=20Giffuni?=" To: freebsd-ports@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-1844259360-1052367742=:12804" Content-Transfer-Encoding: 8bit Subject: Serious bug in math/superlu port (with fix) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 May 2003 04:22:23 -0000 --0-1844259360-1052367742=:12804 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Id: Content-Disposition: inline Hello; I had to reread the documentation to find out what was wrong with math/superlu! superlu is not building correctly because of a configuration problem: it doesn't know that BLAS is the FORTRAN version and expects to use the included (but very limited) C version. The attached patch fixes the problem. I tried to PR it but my system/gateway still has problem with that so I hope someone just goes ahead and commit it. cheers, Pedro. PS. it would be nice to teach BLAS to use CFLAGS too :(. __________________________________________________ Yahoo! Plus For a better Internet experience http://www.yahoo.co.uk/btoffer --0-1844259360-1052367742=:12804 Content-Type: text/plain; name=patch-superlu Content-Description: patch-superlu Content-Disposition: inline; filename=patch-superlu diff -ruN superlu.orig/Makefile superlu/Makefile --- superlu.orig/Makefile Wed May 7 17:03:44 2003 +++ superlu/Makefile Wed May 7 22:40:52 2003 @@ -17,10 +17,8 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libblas.a:${PORTSDIR}/math/blas WRKSRC= ${WRKDIR}/SuperLU +# Note: The Matlab interface (matlabmex) will not be built. ALL_TARGET= superlulib -# -# NOTE: The Matlab interface was not built. -# do-install: ${INSTALL_DATA} ${WRKSRC}/libsuperlu.* ${PREFIX}/lib diff -ruN superlu.orig/files/patch-aa superlu/files/patch-aa --- superlu.orig/files/patch-aa Wed May 7 17:03:44 2003 +++ superlu/files/patch-aa Wed May 7 22:37:00 2003 @@ -1,6 +1,6 @@ ---- make.inc.orig Tue Feb 15 13:29:45 2000 -+++ make.inc Sun Oct 15 18:11:48 2000 -@@ -16,14 +16,14 @@ +--- make.inc.orig Tue Sep 3 16:02:16 2002 ++++ make.inc Wed May 7 22:35:16 2003 +@@ -16,14 +16,15 @@ # # The machine (platform) identifier to append to the library names # @@ -14,11 +14,12 @@ -SUPERLULIB = superlu$(PLAT).a -BLASLIB = ../blas$(PLAT).a +SUPERLULIB = libsuperlu$(PLAT).a ++BLASDEF = -DUSE_VENDOR_BLAS +BLASLIB = ${LOCALBASE}/lib/libblas$(PLAT).a # # The archiver and the flag(s) to use when building archive (library) -@@ -33,12 +33,12 @@ +@@ -33,12 +34,12 @@ ARCHFLAGS = cr RANLIB = ranlib @@ -37,7 +38,7 @@ LOADOPTS = #-xO3 # -@@ -48,4 +48,4 @@ +@@ -48,4 +49,4 @@ # # The directory in which Matlab is installed # --0-1844259360-1052367742=:12804--