ports/72261: math/blacs: fix build after changes to make(1) on FreeBSD >= 5.x.
Thierry Thomas
thierry at pompo.net
Sat Oct 2 16:10:26 UTC 2004
>Number: 72261
>Category: ports
>Synopsis: math/blacs: fix build after changes to make(1) on FreeBSD >= 5.x.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sat Oct 02 16:10:23 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Thierry Thomas
>Release: FreeBSD 5.3-BETA4 i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD ws90bj.pompo.net 5.3-BETA4 FreeBSD 5.3-BETA4 #0: Thu Sep 16 00:17:00 CEST 2004 thierry at ws90bj.pompo.net:/usr/obj/usr/src/sys/WS90BJ-040826 i386
>Description:
This port uses $ARCH to define ar(1), and this conflicts with our
${ARCH}.
Since I'm there, pet portlint with %%DOCSDIR%% and pkg-message.
>How-To-Repeat:
cd /usr/ports/math/blacs
make
You should get the following error:
8< 8< 8<
f77 -c -O bi_f77_get_constants.f
f77 -c -O bi_f77_init.f
i386 r /usr/ports/math/blacs/work/BLACS/LIB/blacs_MPI-FreeBSD-0.a BI_HypBS.o BI_HypBR.o BI_IdringBS.o BI_IdringBR.o BI_MpathBS.o BI_MpathBR.o BI_SringBS.o BI_SringBR.o BI_TreeBS.o BI_TreeBR.o BI_Ssend.o BI_Rsend.o BI_Srecv.o BI_Asend.o BI_Arecv.o BI_TreeComb.o BI_BeComb.o BI_MringComb.o BI_ArgCheck.o BI_TransDist.o BI_GetBuff.o BI_UpdateBuffs.o BI_EmergencyBuff.o BI_BlacsErr.o BI_BlacsWarn.o BI_BlacsAbort.o BI_BuffIsFree.o BI_imvcopy.o BI_smvcopy.o BI_dmvcopy.o BI_ivmcopy.o BI_svmcopy.o BI_dvmcopy.o BI_Pack.o BI_Unpack.o BI_GetMpiGeType.o BI_GetMpiTrType.o BI_ivvsum.o BI_svvsum.o BI_dvvsum.o BI_cvvsum.o BI_zvvsum.o BI_ivvamx.o BI_svvamx.o BI_dvvamx.o BI_cvvamx.o BI_zvvamx.o BI_ivvamx2.o BI_svvamx2.o BI_dvvamx2.o BI_cvvamx2.o BI_zvvamx2.o BI_ivvamn.o BI_svvamn.o BI_dvvamn.o BI_cvvamn.o BI_zvvamn.o BI_ivvamn2.o BI_svvamn2.o BI_dvvamn2.o BI_cvvamn2.o BI_zvvamn2.o BI_iMPI_amx.o BI_sMPI_amx.o BI_dMPI_amx.o BI_cMPI_amx.o BI_zMPI_amx.o BI_iMPI_amx2.o BI_sMPI_amx2.o B
I_dMPI_amx2.o BI_cMPI_amx2.o BI_zMPI_amx2.o BI_iMPI_amn.o BI_sMPI_amn.o BI_dMPI_amn.o BI_cMPI_amn.o BI_zMPI_amn.o BI_iMPI_amn2.o BI_sMPI_amn2.o BI_dMPI_amn2.o BI_cMPI_amn2.o BI_zMPI_amn2.o BI_cMPI_sum.o BI_zMPI_sum.o BI_ContxtNum.o BI_GlobalVars.o BI_MPI_F77_to_c_trans_comm.o BI_MPI_C_to_f77_trans_comm.o BI_TransUserComm.o bi_f77_mpi_attr_get.o bi_f77_mpi_op_create.o bi_f77_mpi_initialized.o bi_f77_mpi_test.o bi_f77_mpi_testall.o bi_f77_get_constants.o bi_f77_init.o
i386:No such file or directory
*** Error code 1
Stop in /usr/ports/math/blacs/work/BLACS/SRC/MPI/INTERNAL.
*** Error code 1
Stop in /usr/ports/math/blacs/work/BLACS/SRC/MPI.
*** Error code 1
Stop in /usr/ports/math/blacs/work/BLACS.
*** Error code 1
Stop in /usr/ports/math/blacs.
>Fix:
Please apply the following patch:
--- blacs.diff begins here ---
diff -urN math/blacs.orig/Makefile math/blacs/Makefile
--- math/blacs.orig/Makefile Fri May 7 18:45:41 2004
+++ math/blacs/Makefile Sat Oct 2 17:43:10 2004
@@ -26,6 +26,8 @@
atlas:${PORTSDIR}/math/atlas
BUILD_DEPENDS= ${LOCALBASE}/mpich/lib/libmpich.a:${PORTSDIR}/net/mpich
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
.include <bsd.port.pre.mk>
pre-fetch:
@@ -42,7 +44,8 @@
pre-patch:
(${CP} ${WRKSRC}/BMAKES/Bmake.MPI-LINUX ${WRKSRC}/Bmake.inc)
post-patch:
- (${REINPLACE_CMD} -e 's, at WRKSRC@,${WRKSRC},g ; s, at DEBUG_LEVEL@,${DEBUG_LEVEL},g ; s, at PREFIX@,${PREFIX},g ; s, at CC@,${CC},g ; s, at CFLAGS@,${CFLAGS},g ; s, at F77@,${F77},g ; s, at FFLAGS@,${FFLAGS},g ; s, at F77EXTRAFLAGS@,${F77EXTRAFLAGS},g' ${WRKSRC}/Bmake.inc)
+ (${REINPLACE_CMD} -e 's, at WRKSRC@,${WRKSRC},g ; s, at DEBUG_LEVEL@,${DEBUG_LEVEL},g ; s, at PREFIX@,${PREFIX},g ; s, at CC@,${CC},g ; s, at CFLAGS@,${CFLAGS},g ; s, at F77@,${F77},g ; s, at FFLAGS@,${FFLAGS},g ; s, at F77EXTRAFLAGS@,${F77EXTRAFLAGS},g ; s, ARCH *.= ar, ARCMD = ar,' ${WRKSRC}/Bmake.inc)
+ ${REINPLACE_CMD} -e 's|\$$(ARCH)|$$(ARCMD)|' ${WRKSRC}/SRC/MPI/Makefile
do-build:
(cd ${WRKSRC}; make mpi; make tester)
@@ -70,6 +73,8 @@
.endif
post-install:
- @${SED} -e 's,/usr/local,${PREFIX},g' ${PKGMESSAGE}
+ @${SED} -e 's,/usr/local,${PREFIX},g' ${FILESDIR}/pkg-message.in \
+ > ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff -urN math/blacs.orig/files/pkg-message.in math/blacs/files/pkg-message.in
--- math/blacs.orig/files/pkg-message.in Thu Jan 1 01:00:00 1970
+++ math/blacs/files/pkg-message.in Sat Oct 2 17:48:13 2004
@@ -0,0 +1,12 @@
+*********************************************************************
+ Please test your blacs installation
+ Test programs are located at /usr/local/share/BLACS/TESTING
+
+ Example:
+ % cd /usr/local/share/BLACS/TESTING
+ % /usr/local/mpich/bin/mpirun -np 4 xCbtest_MPI-FreeBSD
+ % /usr/local/mpich/bin/mpirun -np 4 xFbtest_MPI-FreeBSD
+
+You can change -np 4 to any number to meet your local environment.
+See files at /usr/local/share/doc/blacs for detail.
+*********************************************************************
diff -urN math/blacs.orig/pkg-message math/blacs/pkg-message
--- math/blacs.orig/pkg-message Mon May 5 04:06:21 2003
+++ math/blacs/pkg-message Thu Jan 1 01:00:00 1970
@@ -1,12 +0,0 @@
-*********************************************************************
- Please test your blacs installation
- Test programs are located at /usr/local/share/BLACS/TESTING
-
- Example:
- % cd /usr/local/share/BLACS/TESTING
- % mpirun -np 4 xCbtest_MPI-FreeBSD
- % mpirun -np 4 xFbtest_MPI-FreeBSD
-
-You can change -np 4 to any number to meet your local environment.
-See files at /usr/local/share/doc/blacs for detail.
-*********************************************************************
diff -urN math/blacs.orig/pkg-plist math/blacs/pkg-plist
--- math/blacs.orig/pkg-plist Mon May 5 04:06:21 2003
+++ math/blacs/pkg-plist Sat Oct 2 17:15:17 2004
@@ -9,10 +9,10 @@
share/BLACS/TESTING/sdrv.dat
@dirrm share/BLACS/TESTING
@dirrm share/BLACS
-%%PORTDOCS%%share/doc/blacs/blacs_install.ps.gz
-%%PORTDOCS%%share/doc/blacs/f77blacsqref.ps.gz
-%%PORTDOCS%%share/doc/blacs/mpi_prop.ps.gz
-%%PORTDOCS%%share/doc/blacs/cblacsqref.ps.gz
-%%PORTDOCS%%share/doc/blacs/lawn94.ps.gz
-%%PORTDOCS%%share/doc/blacs/mpiblacs_issues.ps.gz
-%%PORTDOCS%%@dirrm share/doc/blacs
+%%PORTDOCS%%%%DOCSDIR%%/blacs_install.ps.gz
+%%PORTDOCS%%%%DOCSDIR%%/f77blacsqref.ps.gz
+%%PORTDOCS%%%%DOCSDIR%%/mpi_prop.ps.gz
+%%PORTDOCS%%%%DOCSDIR%%/cblacsqref.ps.gz
+%%PORTDOCS%%%%DOCSDIR%%/lawn94.ps.gz
+%%PORTDOCS%%%%DOCSDIR%%/mpiblacs_issues.ps.gz
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
--- blacs.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list