From owner-svn-ports-head@FreeBSD.ORG Tue Mar 19 03:01:29 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 42D739C3; Tue, 19 Mar 2013 03:01:29 +0000 (UTC) (envelope-from stephen@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 35533D23; Tue, 19 Mar 2013 03:01:29 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2J31T9k006451; Tue, 19 Mar 2013 03:01:29 GMT (envelope-from stephen@svn.freebsd.org) Received: (from stephen@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2J31SFI006447; Tue, 19 Mar 2013 03:01:28 GMT (envelope-from stephen@svn.freebsd.org) Message-Id: <201303190301.r2J31SFI006447@svn.freebsd.org> From: Stephen Montgomery-Smith Date: Tue, 19 Mar 2013 03:01:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r314614 - in head/math/sage: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Mar 2013 03:01:29 -0000 Author: stephen Date: Tue Mar 19 03:01:28 2013 New Revision: 314614 URL: http://svnweb.freebsd.org/changeset/ports/314614 Log: - Update to 5.8. - Patch because threaded document building fails under FreeBSD. Added: head/math/sage/files/spkg-patch-sage_-_doc_common_builder.py (contents, props changed) Modified: head/math/sage/Makefile head/math/sage/distinfo head/math/sage/files/spkg-patch-sage_-_sage_misc_getusage.py Modified: head/math/sage/Makefile ============================================================================== --- head/math/sage/Makefile Tue Mar 19 00:39:45 2013 (r314613) +++ head/math/sage/Makefile Tue Mar 19 03:01:28 2013 (r314614) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= sage -PORTVERSION= 5.7 +PORTVERSION= 5.8 CATEGORIES= math MASTER_SITES= http://boxen.math.washington.edu/home/sagemath/sage-mirror/src/ \ http://mirrors.xmission.com/sage/src/ \ Modified: head/math/sage/distinfo ============================================================================== --- head/math/sage/distinfo Tue Mar 19 00:39:45 2013 (r314613) +++ head/math/sage/distinfo Tue Mar 19 03:01:28 2013 (r314614) @@ -1,2 +1,2 @@ -SHA256 (sage-5.7.tar) = 325709fdde8836dea82d4b553a6ce0596403e5ace1e3a598988f081e389cc4d0 -SIZE (sage-5.7.tar) = 322447360 +SHA256 (sage-5.8.tar) = 4c34f4533a518e0ef8b34b2ed51443beae57e00d2f9ef31fa2811338610619ba +SIZE (sage-5.8.tar) = 329318400 Added: head/math/sage/files/spkg-patch-sage_-_doc_common_builder.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sage/files/spkg-patch-sage_-_doc_common_builder.py Tue Mar 19 03:01:28 2013 (r314614) @@ -0,0 +1,46 @@ +--- sage-5.8.rc0/doc/common/builder.py-orig 2013-03-17 20:50:38.000000000 +0000 ++++ sage-5.8/doc/common/builder.py 2013-03-17 20:56:42.000000000 +0000 +@@ -272,13 +272,16 @@ + + # build the other documents in parallel + from multiprocessing import Pool +- pool = Pool(NUM_THREADS, maxtasksperchild=1) ++ # pool = Pool(NUM_THREADS, maxtasksperchild=1) + L = [(doc, name, kwds) + args for doc in others] +- # map_async handles KeyboardInterrupt correctly. Plain map and +- # apply_async does not, so don't use it. +- pool.map_async(build_other_doc, L, 1).get(99999) +- pool.close() +- pool.join() ++ # Pool doesn't work properly in FreeBSD. Instead: ++ for iii in L: ++ build_other_doc(iii) ++ # # map_async handles KeyboardInterrupt correctly. Plain map and ++ # # apply_async does not, so don't use it. ++ # pool.map_async(build_other_doc, L, 1).get(99999) ++ # pool.close() ++ # pool.join() + logger.warning("Elapsed time: %.1f seconds."%(time.time()-start)) + logger.warning("Done building the documentation!") + +@@ -464,12 +467,15 @@ + continue + output_dir = self._output_dir(format, lang) + from multiprocessing import Pool +- pool = Pool(NUM_THREADS, maxtasksperchild=1) ++ # pool = Pool(NUM_THREADS, maxtasksperchild=1) + L = [(doc, lang, format, kwds) + args for doc in self.get_all_documents(refdir)] +- # (See comment in AllBuilder._wrapper about using map instead of apply.) +- pool.map_async(build_ref_doc, L, 1).get(99999) +- pool.close() +- pool.join() ++ # Pool doesn't work properly in FreeBSD. Instead: ++ for iii in L: ++ build_ref_doc(iii) ++ # # (See comment in AllBuilder._wrapper about using map instead of apply.) ++ # pool.map_async(build_ref_doc, L, 1).get(99999) ++ # pool.close() ++ # pool.join() + # The html refman must be build at the end to ensure correct + # merging of indexes and inventories. + # Sphinx is run here in the current process (not in a Modified: head/math/sage/files/spkg-patch-sage_-_sage_misc_getusage.py ============================================================================== --- head/math/sage/files/spkg-patch-sage_-_sage_misc_getusage.py Tue Mar 19 00:39:45 2013 (r314613) +++ head/math/sage/files/spkg-patch-sage_-_sage_misc_getusage.py Tue Mar 19 03:01:28 2013 (r314614) @@ -1,5 +1,5 @@ --- sage-5.7.beta4/sage/misc/getusage.py-old 2013-02-09 23:05:24.000000000 +0000 -+++ sage-5.7/sage/misc/getusage.py 2013-02-09 23:09:50.000000000 +0000 ++++ sage-5.8/sage/misc/getusage.py 2013-02-09 23:09:50.000000000 +0000 @@ -20,6 +20,8 @@ """ Return the 'top' or 'prstat' line that contains this running Sage