[Bug 206061] ports-mgmt/portlint: Doesn't parse ${VARIABLES} in right half of *_DEPENDS (WARN False Positive)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jan 9 09:45:58 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206061

            Bug ID: 206061
           Summary: ports-mgmt/portlint: Doesn't parse ${VARIABLES} in
                    right half of *_DEPENDS (WARN False Positive)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: dogfood, needs-qa
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: marcus at FreeBSD.org
          Reporter: koobs at FreeBSD.org
             Flags: maintainer-feedback?(marcus at FreeBSD.org)
          Assignee: marcus at FreeBSD.org

portlint doesn't parse ${VARIABLES} in *_DEPENDS lines, resulting in a warning:

WARN: Makefile: no port directory
/usr/ports/devel/py-setuptools${PYTHON_SUFFIX} found, even though it is listed
in BUILD_DEPENDS.

devel/py-mock/Makefile:

BUILD_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}pbr>=1.3:${PORTSDIR}/devel/py-pbr \
               
${PYTHON_PKGNAMEPREFIX}setuptools${PYTHON_SUFFIX}>0:${PORTSDIR}/devel/py-setuptools${PYTHON_SUFFIX}

make build-depends-list:
/usr/home/koobs/repos/freebsd/ports/devel/py-pbr
/usr/home/koobs/repos/freebsd/ports/devel/py-setuptools27
/usr/home/koobs/repos/freebsd/ports/lang/python27
/usr/home/koobs/repos/freebsd/ports/ports-mgmt/pkg

A number of ports use similar constructs, in both left-hand and right-hand
sides of the *_DEPENDS tuple. My regex foo isn't fantastic, but this found
quite a few:

find /usr/ports -name Makefile -exec grep -E ':\$\{PORTSDIR\}\/.*\$\{.*\}' {} +

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


More information about the freebsd-ports-bugs mailing list