Page MenuHomeFreeBSD

Mk/Uses/python.mk: Flag unknown USE_PYTHON features
AbandonedPublic

Authored by tobik on Mar 13 2019, 10:04 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 14, 11:52 AM
Unknown Object (File)
Fri, Nov 29, 8:21 PM
Unknown Object (File)
Nov 29 2024, 3:42 AM
Unknown Object (File)
Nov 27 2024, 1:03 AM
Unknown Object (File)
Nov 26 2024, 3:54 AM
Unknown Object (File)
Nov 16 2024, 11:12 AM
Unknown Object (File)
Oct 27 2024, 7:37 AM
Unknown Object (File)
Oct 17 2024, 10:47 PM
Subscribers

Details

Summary
Test Plan

Ran make -V DEV_ERROR over the tree. The following ports currently have problems:

# Port				unknown features
databases/py-asyncpg		setuptools
graphics/py-cairocffi		cffi
graphics/sk1			noflavor
science/dvc			noflavor

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 23062
Build 22130: arc lint + arc unit

Event Timeline

All the USES that validate their arguments set IGNORE so that the mistake is found out early. I think this should also be setting IGNORE. Also, could you check that the arguments to USES=python:xxx are also validated?

  • Check USES=python arguments too

New failures:

# Port				bogus args
games/ski			3.2+:run
net-mgmt/librenms-agent		2.7:run
sysutils/py-python-consul	2.7-3.6+
sysutils/xen-guest-tools	configure
  • Simplify and use :N instead of :C
# Port				bogus args
games/ski			3.2+:run
net-mgmt/librenms-agent		2.7:run
sysutils/py-python-consul	2.7-3.6+
sysutils/xen-guest-tools	configure

Mmmm, nice, I "fixed" all four.

I don't see anything wrong with the code, I'll let the other portmgr ponder this for a bit.

sunpoet added inline comments.
Mk/Uses/python.mk
254–258

I would suggest merging _PYTHON_FEATURE_<FEATURENAME> setting (line 263-266) as follows:

.for var in ${USE_PYTHON}
.  if !empty(_VALID_PYTHON_FEATURES:M${var})
_PYTHON_FEATURE_${var:C/=.*$//:tu}=        ${var:C/.*=//:S/,/ /g}
.  else
_INVALID_PYTHON_FEATURES+=        ${var}
.  endif
.endfor
Mk/Uses/python.mk
254–258

Why? What is wrong with looping twice?

Mk/Uses/python.mk
254–258

I'm not saying it's wrong. It's just a suggestion.

Thanks. Committed in rP499257. I probably should have reclaimed this before committing for Phabricator to update this post-commit.