From owner-freebsd-ports-bugs@FreeBSD.ORG Fri May 9 23:00:30 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5445837B494 for ; Fri, 9 May 2003 23:00:30 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F2DE43FD7 for ; Fri, 9 May 2003 23:00:25 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4A60PUp082169 for ; Fri, 9 May 2003 23:00:25 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4A60Pev082168; Fri, 9 May 2003 23:00:25 -0700 (PDT) Resent-Date: Fri, 9 May 2003 23:00:25 -0700 (PDT) Resent-Message-Id: <200305100600.h4A60Pev082168@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "=?iso-8859-1?q?Pedro=20F.=20Giffuni?=" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B81E637B401 for ; Fri, 9 May 2003 22:55:53 -0700 (PDT) Received: from web13405.mail.yahoo.com (web13405.mail.yahoo.com [216.136.175.63]) by mx1.FreeBSD.org (Postfix) with SMTP id 5623D43FA3 for ; Fri, 9 May 2003 22:55:53 -0700 (PDT) (envelope-from giffunip@yahoo.com) Received: from [200.91.197.203] by web13405.mail.yahoo.com via HTTP; Sat, 10 May 2003 06:55:53 BST Message-Id: <20030510055553.38539.qmail@web13405.mail.yahoo.com> Date: Sat, 10 May 2003 06:55:53 +0100 (BST) From: "=?iso-8859-1?q?Pedro=20F.=20Giffuni?=" To: freebsd-gnats-submit@FreeBSD.org Subject: ports/52019: enhancement to math/spooles X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 May 2003 06:00:31 -0000 >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@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 -@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: