Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Mar 2015 19:18:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 198989] math/py-numpy: Fails to register dependency on devel/py-nose with non-default python version
Message-ID:  <bug-198989-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198989

            Bug ID: 198989
           Summary: math/py-numpy: Fails to register dependency on
                    devel/py-nose with non-default python version
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: john@saltant.com
                CC: koobs@FreeBSD.org, python@FreeBSD.org
                CC: koobs@FreeBSD.org

Created attachment 154930
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=154930&action=edit
Depend on nose module instead of executable

devel/py-nose allows concurrent installation, but tailors its plist based on
whether it is being built against the default version of python. For example,
with

    DEFAULT_VERSIONS=python=2.7 python2=2.7 python3=3.4
    PYTHON_VERSION=python3.4

we see that

    % pkg info -l -F py27-nose-1.3.4.txz | grep bin
            /usr/local/bin/nosetests-2.7
            /usr/local/bin/nosetests
    % pkg info -l -F py34-nose-1.3.4.txz | grep bin
            /usr/local/bin/nosetests-3.4

math/py-numpy depends on devel/py-nose like this:

    RUN_DEPENDS=nosetests:${PORTSDIR}/devel/py-nose

So it cannot detect that the dependency is satisfied when
/usr/local/bin/nosetests is not installed.

Without the attached patch:

    % pkg info -d -F py34-numpy-1.9.2,1.txz
    py34-numpy-1.9.2,1:
            blas-3.5.0_3
            gcc-4.8.4_1
            lapack-3.5.0
            py34-setuptools34-5.5.1_1
            python34-3.4.3
            suitesparse-4.0.2_4

With the attached patch:

    % pkg info -d -F py34-numpy-1.9.2_1,1.txz
    py34-numpy-1.9.2_1,1:
            blas-3.5.0_3
            gcc-4.8.4_1
            lapack-3.5.0
            py34-nose-1.3.4
            py34-setuptools34-5.5.1_1
            python34-3.4.3
            suitesparse-4.0.2_4

This may affect other ports too, though some may actually require a "nosetests"
executable without the version-specific suffix.

-- 
You are receiving this mail because:
You are the assignee for the bug.



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