ports/52019: enhancement to math/spooles

Pedro F. Giffuni giffunip at yahoo.com
Sat May 10 06:00:31 UTC 2003


>Number:         52019
>Category:       ports
>Synopsis:       enhancement to math/spooles
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 09 23:00:25 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Pedro F. Giffuni
>Release:        FreeBSD 5.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD giffuni.org 5.0-RELEASE FreeBSD 5.0-RELEASE #3: Wed Apr 16
22:20:49 COT 2003 pedro at giffuni.org:/usr/src/sys/i386/compile/CPQ i386


	
>Description:
By default spooles build the optional multithreaded support in the same
library. As thecomentation suggests it would be better make it as different
library called libspoolesMT.a. 
For now we just ifdef out the threading support as the only port that uses it
(CalculiX) doesn't use it and can give problems.
	
>How-To-Repeat:
	
>Fix:
diff -ruN spooles.orig/Makefile spooles/Makefile
--- spooles.orig/Makefile	Fri May  9 16:14:07 2003
+++ spooles/Makefile	Fri May  9 16:14:30 2003
@@ -33,17 +33,23 @@
 .else
 PLIST_SUB+=     MPI=""
 .endif
+.if !defined(USE_MT)
+PLIST_SUB+=     MT="@comment "
+.else
+PLIST_SUB+=     MT=""
+.endif
 
 post-patch:
 
-.if defined(USE_MPI)
+.if defined(USE_MPI) || defined(USE_MT)
 	@${REINPLACE_CMD} -e 's+%%LOCALBASE%%+${LOCALBASE}+g;' ${WRKSRC}/Make.inc
 .endif
 
 post-build:
 .if defined(USE_MPI)
 	@(cd ${WRKSRC}/MPI/src; $(MAKE) -f makeGlobalLib)
-.else
+.endif
+.if defined(USE_MT)
 	@(cd ${WRKSRC}/MT/src; $(MAKE) -f makeGlobalLib)
 .endif
 
@@ -54,6 +60,10 @@
 	${MKDIR} ${PREFIX}/include/spooles/MPI
 	${INSTALL_DATA} ${WRKSRC}/MPI/*.h ${PREFIX}/include/spooles/MPI
 .endif
+.if defined(USE_MT)
+	${MKDIR} ${PREFIX}/include/spooles/MT
+	${INSTALL_DATA} ${WRKSRC}/MT/*.h ${PREFIX}/include/spooles/MT
+.endif
 	${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/spooles/
 	${MKDIR} ${PREFIX}/include/spooles/A2
 	${INSTALL_DATA} ${WRKSRC}/A2/*.h ${PREFIX}/include/spooles/A2
@@ -99,8 +109,6 @@
 	${INSTALL_DATA} ${WRKSRC}/Lock/*.h ${PREFIX}/include/spooles/Lock
 	${MKDIR} ${PREFIX}/include/spooles/MSMD
 	${INSTALL_DATA} ${WRKSRC}/MSMD/*.h ${PREFIX}/include/spooles/MSMD
-	${MKDIR} ${PREFIX}/include/spooles/MT
-	${INSTALL_DATA} ${WRKSRC}/MT/*.h ${PREFIX}/include/spooles/MT
 	${MKDIR} ${PREFIX}/include/spooles/PatchAndGoInfo
 	${INSTALL_DATA} ${WRKSRC}/PatchAndGoInfo/*.h
${PREFIX}/include/spooles/PatchAndGoInfo
 	${MKDIR} ${PREFIX}/include/spooles/Pencil
diff -ruN spooles.orig/pkg-plist spooles/pkg-plist
--- spooles.orig/pkg-plist	Fri May  9 16:14:07 2003
+++ spooles/pkg-plist	Fri May  9 16:14:43 2003
@@ -48,7 +48,6 @@
 include/spooles/MSMD.h
 include/spooles/MSMD/MSMD.h
 include/spooles/MT.h
-include/spooles/MT/spoolesMT.h
 include/spooles/Network.h
 include/spooles/PatchAndGoInfo/PatchAndGoInfo.h
 include/spooles/PatchAndGoInfo.h
@@ -102,6 +101,8 @@
 lib/libspooles.a
 %%MPI%%include/spooles/MPI/spoolesMPI.h
 %%MPI%%@dirrm include/spooles/MPI
+%%MT%%include/spooles/MT/spoolesMT.h
+%%MT%%@dirrm include/spooles/MT
 @dirrm include/spooles/A2
 @dirrm include/spooles/BPG
 @dirrm include/spooles/Chv
@@ -124,7 +125,6 @@
 @dirrm include/spooles/InpMtx
 @dirrm include/spooles/Lock
 @dirrm include/spooles/MSMD
- at dirrm include/spooles/MT
 @dirrm include/spooles/PatchAndGoInfo
 @dirrm include/spooles/Pencil
 @dirrm include/spooles/SolveMap


__________________________________________________
Yahoo! Plus
For a better Internet experience
http://www.yahoo.co.uk/btoffer
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list