retitle 474249 petsc: FTBFS: wrongly guess the MPI directory 
tags 474249 +patch
thanks

On Fri, Apr 04, 2008 at 04:58:26PM +0200, Domenico Andreoli wrote:
> 
> It looks like definition of PETSC_MPI in debian/rules is somewhat pesky,
> probably it is broken by localization issues.. don't know, but on my
> hppa it comes to "udelam" instead of "lam", which is wrong.
> 
> I suggest you to rewrite such guessing using readlink command.
> 

--- rules.orig  2008-04-04 17:02:38.000000000 +0200
+++ rules       2008-04-04 17:07:00.000000000 +0200
@@ -26,7 +26,7 @@
 # Note that as of PETSc 2.3.0 this only specifies the name of the PETSc
 # packages, the implementation is chosen by BuildSystem according to what's
 # available at build time.
-PETSC_MPI=$(shell ls -l /etc/alternatives/mpi | cut -b 74- | sed s/include//g 
| sed s/lib//g | sed s/\\///g)
+PETSC_MPI=$(shell readlink /etc/alternatives/mpi | xargs basename)
 PETSC_MPI_DIR=/usr/lib/$(PETSC_MPI)
 
 # Overriding this with "contrib" attempts to link with hypre and parmetis.

-----[ Domenico Andreoli, aka cavok
 --[ http://www.dandreoli.com/gpgkey.asc
   ---[ 3A0F 2F80 F79C 678A 8936  4FEE 0677 9033 A20E BC50



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to