From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Dec 21 15:30:18 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1446216A412 for ; Thu, 21 Dec 2006 15:30:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 7A8D413C460 for ; Thu, 21 Dec 2006 15:30:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kBLFUH7b086365 for ; Thu, 21 Dec 2006 15:30:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kBLFUHEe086364; Thu, 21 Dec 2006 15:30:17 GMT (envelope-from gnats) Resent-Date: Thu, 21 Dec 2006 15:30:17 GMT Resent-Message-Id: <200612211530.kBLFUHEe086364@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, "Aho K.F.Li" Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D472016A403 for ; Thu, 21 Dec 2006 15:25:50 +0000 (UTC) (envelope-from thinker@heaven.branda.to) Received: from heaven.branda.to (219-84-62-131-adsl-tpe.dynamic.so-net.net.tw [219.84.62.131]) by mx1.freebsd.org (Postfix) with SMTP id A1D8D13C458 for ; Thu, 21 Dec 2006 15:25:49 +0000 (UTC) (envelope-from thinker@heaven.branda.to) Received: (qmail 25307 invoked by uid 1000); 21 Dec 2006 14:59:05 -0000 Message-Id: <20061221145905.25306.qmail@heaven.branda.to> Date: 21 Dec 2006 14:59:05 -0000 From: "Aho K.F.Li" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/107022: py-num is broken with default installation X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Aho K.F.Li" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Dec 2006 15:30:18 -0000 >Number: 107022 >Category: ports >Synopsis: py-num is broken with default installation >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 21 15:30:16 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Aho K.F. Li >Release: FreeBSD 7.0-CURRENT i386 >Organization: Thinker >Environment: System: FreeBSD cowboy.branda.to 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Nov 4 >Description: Py-numpy is not work with default installation. It causes by inconsistent between site.cfg, generated by port, and package auto-discovery of system_info.py. The inconsistent is happen when alapack is installed before installing py-numpy. >How-To-Repeat: install alapack install port of py-numpy run python & import numpy python yell a run-time error >Fix: Copy following file into files/ . --- patch-numpy-distutils-system_info.py begins here --- --- numpy/distutils/system_info.py.orig Mon Jul 31 00:08:48 2006 +++ numpy/distutils/system_info.py Sun Dec 17 23:24:50 2006 @@ -855,6 +855,8 @@ atlas_1 = None for d in lib_dirs: atlas = self.check_libs2(d,atlas_libs,[]) + if atlas is not None: + atlas['libraries'].extend(['g2c', 'm', 'pthread']) lapack_atlas = self.check_libs2(d,['lapack_atlas'],[]) if atlas is not None: lib_dirs2 = [d] + self.combine_paths(d,['atlas*','ATLAS*']) @@ -1183,8 +1185,9 @@ atlas_version = None need_lapack = 0 need_blas = 0 + lapack_type = self.cp.get(self.section, 'lapack_type').strip() info = {} - if atlas_info: + if lapack_type == 'atlas' and atlas_info: version_info = atlas_info.copy() atlas_version = get_atlas_version(**version_info) if not atlas_info.has_key('define_macros'): --- patch-numpy-distutils-system_info.py ends here --- --- patch-site.cfg begins here --- --- site.cfg.orig Wed Aug 23 03:01:25 2006 +++ site.cfg Sun Dec 17 23:25:51 2006 @@ -1,3 +1,6 @@ +[DEFAULT] +lapack_type = blas + [atlas] library_dirs = /usr/lib/atlas/3dnow/ atlas_libs = lapack, blas --- patch-site.cfg ends here --- --- site.cfg begins here --- [DEFAULT] lapack_type = atlas [atlas] library_dirs = /usr/local/lib atlas_libs = alapack_r, f77blas_r, cblas_r, atlas_r --- site.cfg ends here --- >Release-Note: >Audit-Trail: >Unformatted: