ports/133242: [PATCH] science/gromacs: fix sparc64, fix WITH_MPICH

Florian Smeets flo at kasimir.com
Tue Mar 31 14:40:04 UTC 2009


>Number:         133242
>Category:       ports
>Synopsis:       [PATCH] science/gromacs: fix sparc64, fix WITH_MPICH
>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:   Tue Mar 31 14:40:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Florian Smeets
>Release:        FreeBSD 8.0-CURRENT sparc64
>Organization:
>Environment:
System: FreeBSD 280r.solomo.de 8.0-CURRENT FreeBSD 8.0-CURRENT #34 r190520M: Sun Mar 29 15:18:18 CEST
>Description:
- remove BROKEN on sparc64, a patch was added to files/

- fix portlint warnings
  - use ${LOCALBASE} instead of ${PREFIX} in  *_DEPENDS
  - fix IGNORE
- fix WITH_MPICH, net/mpich -> net/mpich2

Added file(s):
- files/patch-include__gmx_cyclecounter.h

Port maintainer (stephen at math.missouri.edu) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- gromacs-4.0.3.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/science/gromacs.orig/Makefile /usr/ports/science/gromacs/Makefile
--- /usr/ports/science/gromacs.orig/Makefile	2009-03-30 19:05:00.480929887 +0200
+++ /usr/ports/science/gromacs/Makefile	2009-03-31 16:26:03.885269656 +0200
@@ -27,7 +27,7 @@
 		GSL	"Enable extra analysis using math/gsl"		on  \
 		FLOAT	"Use single instead of double precision"	off \
 		X11	"Build and install X11 programs"		on  \
-		MPICH	"Enable MPI support using net/mpich"		off \
+		MPICH	"Enable MPI support using net/mpich2"		off \
 		OMPI	"Enable MPI support using net/openmpi"		off
 
 .include <bsd.port.pre.mk>
@@ -37,11 +37,11 @@
 .endif
 
 .if !defined(WITHOUT_FFTW3) && defined(WITH_FFTW2)
-IGNORE=		Cannot build with FFTW3 and FFTW2. Run 'make config' again and choose only one of them.
+IGNORE=		cannot build with FFTW3 and FFTW2. Run 'make config' again and choose only one of them
 .endif
 
 .if defined(WITH_MPICH) && defined(WITH_OMPI)
-IGNORE=		Cannot build with MPICH and OpenMPI support. Run 'make config' again and choose only one of them.
+IGNORE=		cannot build with MPICH and OpenMPI support. Run 'make config' again and choose only one of them
 .endif
 
 .if !defined(WITHOUT_FFTW3)
@@ -89,15 +89,15 @@
 
 .if defined(WITH_MPICH) || defined(WITH_OMPI)
 CONFIGURE_ARGS+=	--enable-mpi
-. if defined(WITH_MPICH)
-CONFIGURE_ENV+=	MPICC=${PREFIX}/mpich/bin/mpicc
-BUILD_DEPENDS+=	${PREFIX}/mpich/bin/mpicc:${PORTSDIR}/net/mpich
-RUN_DEPENDS+=	${PREFIX}/mpich/bin/mpicc:${PORTSDIR}/net/mpich
-. else
+.if defined(WITH_MPICH)
+CONFIGURE_ENV+=	MPICC=${PREFIX}/mpich2/bin/mpicc
+BUILD_DEPENDS+=	${LOCALBASE}/bin/mpicc:${PORTSDIR}/net/mpich2
+RUN_DEPENDS+=	${LOCALBASE}/bin/mpicc:${PORTSDIR}/net/mpich2
+.elif defined(WITH_OMPI)
 CONFIGURE_ENV+=	MPICC=${PREFIX}/mpi/openmpi/bin/mpicc
-BUILD_DEPENDS+=	${PREFIX}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi
-RUN_DEPENDS+=	${PREFIX}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi
-. endif
+BUILD_DEPENDS+=	${LOCALBASE}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi
+RUN_DEPENDS+=	${LOCALBASE}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi
+.endif
 PLIST_SUB+=	SUFFIX_MPI="_mpi" MPI=""
 .else
 PLIST_SUB+=	SUFFIX_MPI="" MPI="@comment "
diff -ruN --exclude=CVS /usr/ports/science/gromacs.orig/files/patch-include__gmx_cyclecounter.h /usr/ports/science/gromacs/files/patch-include__gmx_cyclecounter.h
--- /usr/ports/science/gromacs.orig/files/patch-include__gmx_cyclecounter.h	1970-01-01 01:00:00.000000000 +0100
+++ /usr/ports/science/gromacs/files/patch-include__gmx_cyclecounter.h	2009-03-31 16:26:04.069279950 +0200
@@ -0,0 +1,11 @@
+--- ./include/gmx_cyclecounter.h.orig	2009-03-31 13:25:55.036329291 +0200
++++ ./include/gmx_cyclecounter.h	2009-03-31 13:26:11.504803886 +0200
+@@ -408,7 +408,7 @@
+ static __inline__ gmx_cycles_t gmx_cycles_read(void)
+ { 
+     /* gcc inline assembly on sparc v9 */
+-    ticks ret;
++    gmx_cycles_t ret;
+     __asm__("rd %%tick, %0" : "=r" (ret));
+     return ret;  
+ }
--- gromacs-4.0.3.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list