Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Jan 2016 09:45:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 206061] ports-mgmt/portlint: Doesn't parse ${VARIABLES} in right half of *_DEPENDS (WARN False Positive)
Message-ID:  <bug-206061-13@https.bugs.freebsd.org/bugzilla/>

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

            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@FreeBSD.org
          Reporter: koobs@FreeBSD.org
             Flags: maintainer-feedback?(marcus@FreeBSD.org)
          Assignee: marcus@FreeBSD.org

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

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

devel/py-mock/Makefile:

BUILD_DEPENDS=3D  ${PYTHON_PKGNAMEPREFIX}pbr>=3D1.3:${PORTSDIR}/devel/py-pb=
r \
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
${PYTHON_PKGNAMEPREFIX}setuptools${PYTHON_SUFFIX}>0:${PORTSDIR}/devel/py-se=
tuptools${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\}\/.*\$\{.*\}' =
{} +

--=20
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-206061-13>