Bug 225653 - USE_PYTHON=noflavors breaks index when the port has py-* dependencies ending with ${FLAVOR}
Summary: USE_PYTHON=noflavors breaks index when the port has py-* dependencies ending ...
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-03 21:51 UTC by Yuri Victorovich
Modified: 2018-02-03 22:06 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2018-02-03 21:51:24 UTC
Testcase: cad/py-pyfda

Adding USE_PYTHON=noflavors breaks index:
> make_index: /home/indexbuild/tindex/ports/cad/py-pyfda: no entry for /home/indexbuild/tindex/ports/math/py-matplotlib@

USE_PYTHON=noflavors doesn't mean that there is no flavor at all. It only means that one flavor should suffice.
Comment 1 Antoine Brodin freebsd_committer freebsd_triage 2018-02-03 21:58:24 UTC
THis is intended,  there is the ${PY_FLAVOR} for this.

Note that INDEX is broken, but also the port is broken if you use ${FLAVOR} for a port that doesn't have flavors.
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2018-02-03 21:59:41 UTC
(In reply to Antoine Brodin from comment #1)

Ok then, thanks.

I will add this item for portlint then.
Comment 3 Antoine Brodin freebsd_committer freebsd_triage 2018-02-03 22:03:39 UTC
poudriere already checks this
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2018-02-03 22:06:21 UTC
(In reply to Antoine Brodin from comment #3)

portlint doesn't: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225654