Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Mar 2013 14:39:14 GMT
From:      Vladimir Chukharev <Vladimir.Chukharev@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/176993: math/py-matplotlib/work does not see installed numpy
Message-ID:  <201303151439.r2FEdEtE099891@red.freebsd.org>
Resent-Message-ID: <201303151440.r2FEe0Hq053576@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176993
>Category:       ports
>Synopsis:       math/py-matplotlib/work does not see installed numpy
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 15 14:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Vladimir Chukharev
>Release:        8.3-STABLE
>Organization:
>Environment:
FreeBSD vovavaio 8.3-STABLE FreeBSD 8.3-STABLE #62 r247016: Wed Feb 20 11:35:37 EET 2013     root@vovavaio:/usr/obj/usr/src/sys/VOVA  i386
>Description:
I try and fail to update py-matplotlib .

The ports system correctly detects that a numpy port is installed by looking at the file numeric.py, then during port build a configure program complains that there is no numpy. See attached logs of the update.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

 $ sudo DISABLE_VULNERABILITIES=y nice portmaster  -H  -D -G --no-confirm py27-matplotlib
===>>> Currently installed version: py27-matplotlib-1.2.0
===>>> Port directory: /usr/ports/math/py-matplotlib

===>>> Launching 'make checksum' for math/py-matplotlib in background
===>>> Gathering dependency list for math/py-matplotlib from ports
===>>> Initial dependency check complete for math/py-matplotlib


===>>> Starting build for math/py-matplotlib <<<===

===>>> All dependencies are up to date

===>  Cleaning for py27-matplotlib-1.2.0_1
===>>> Logging build to /tmp/port_log-20903-py-matplotlib.TgfFYEd3

===>>> make failed for math/py-matplotlib
===>>> Aborting update


===>>> Build/Install logs available:
	/tmp/port_log-20903-py-matplotlib.TgfFYEd3

Terminated

===>>> You can restart from the point of failure with this command line:
       portmaster <flags> math/py-matplotlib 

 $ sudo cat /tmp/port_log-20903-py-matplotlib.TgfFYEd3
===>  Found saved configuration for py27-matplotlib-1.2.0_1
===>  Extracting for py27-matplotlib-1.2.0_1
=> SHA256 Checksum OK for matplotlib-1.2.0.tar.gz.
/bin/chmod -R ga+r /usr/ports/math/py-matplotlib/work
===>  Patching for py27-matplotlib-1.2.0_1
===>  Applying FreeBSD patches for py27-matplotlib-1.2.0_1
/usr/bin/sed -i.bak -e 's|/usr/local|/usr/local|g'  -e 's|%%TCL_INCLUDEDIR%%|/usr/local/include/tcl8.5|g'  -e 's|%%TK_INCLUDEDIR%%|/usr/local/include/tk8.5|g'  -e 's|%%TCL_LIBDIR%%|/usr/local/lib/tcl8.5|g'  -e 's|%%TK_LIBDIR%%|/usr/local/lib/tk8.5|g'  -e 's|%%TCL_VER%%|85|g'  -e 's|%%TK_VER%%|85|g'  /usr/ports/math/py-matplotlib/work/matplotlib-1.2.0/setupext.py
/usr/bin/sed -i.bak -e 's|%%GTK_BACKEND%%|True|g'  -e 's|%%GTKAGG_BACKEND%%|True|g'  -e 's|%%TKAGG_BACKEND%%|True|g'  -e 's|%%WXAGG_BACKEND%%|False|g'  /usr/ports/math/py-matplotlib/work/matplotlib-1.2.0/setup.cfg
===>   py27-matplotlib-1.2.0_1 depends on file: /usr/local/lib/python2.7/site-packages/numpy/core/numeric.py - found
===>   py27-matplotlib-1.2.0_1 depends on package: py27-dateutil>=1.4 - found
===>   py27-matplotlib-1.2.0_1 depends on package: py27-pytz>=0 - found
===>   py27-matplotlib-1.2.0_1 depends on package: py27-tkinter>0 - found
===>   py27-matplotlib-1.2.0_1 depends on file: /usr/local/bin/python2.7 - found
===>   py27-matplotlib-1.2.0_1 depends on executable: pkgconf - found
===>   py27-matplotlib-1.2.0_1 depends on file: /usr/local/bin/intltool-extract - found
===>   py27-matplotlib-1.2.0_1 depends on executable: pygobject-codegen-2.0 - found
===>   py27-matplotlib-1.2.0_1 depends on file: /usr/local/libdata/pkgconfig/pygtk-2.0.pc - found
===>   py27-matplotlib-1.2.0_1 depends on shared library: freetype - found
===>   py27-matplotlib-1.2.0_1 depends on shared library: png15 - found
===>   py27-matplotlib-1.2.0_1 depends on shared library: glib-2.0 - found
===>   py27-matplotlib-1.2.0_1 depends on shared library: pcre - found
===>   py27-matplotlib-1.2.0_1 depends on shared library: atk-1.0.0 - found
===>   py27-matplotlib-1.2.0_1 depends on shared library: gtk-x11-2.0.0 - found
===>   py27-matplotlib-1.2.0_1 depends on shared library: glade-2.0.0 - found
===>   py27-matplotlib-1.2.0_1 depends on shared library: xml2.5 - found
===>   py27-matplotlib-1.2.0_1 depends on shared library: pango-1.0.0 - found
===>  Configuring for py27-matplotlib-1.2.0_1
basedirlist is: ['/usr/local', '/usr']
============================================================================
BUILDING MATPLOTLIB
            matplotlib: 1.2.0
                python: 2.7.3 (default, Mar 14 2013, 11:27:23)  [GCC 4.2.1
                        20070831 patched [FreeBSD]]
              platform: freebsd8

REQUIRED DEPENDENCIES
                 numpy: no
                        * You must install numpy 1.4 or later to build
                        * matplotlib.
*** Error code 1

Stop in /usr/ports/math/py-matplotlib.

 $ pkg_info -W /usr/local/lib/python2.7/site-packages/numpy/core/numeric.py
/usr/local/lib/python2.7/site-packages/numpy/core/numeric.py was installed by package py27-numpy-1.6.2_1,1


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303151439.r2FEdEtE099891>