[Bug 259981] devel/py-setuptools_scm: Fix incorrect *_DEPENDS, causing devel/py-pyparsing (and others) Fails to configure: The 'packaging>=20.0' distribution was not found
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Dec 2021 18:58:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259981 --- Comment #11 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=ad7f115cddd949d6ffd41bd9889328c06f8906e4 commit ad7f115cddd949d6ffd41bd9889328c06f8906e4 Author: Kai Knoblich <kai@FreeBSD.org> AuthorDate: 2021-12-09 18:49:49 +0000 Commit: Kai Knoblich <kai@FreeBSD.org> CommitDate: 2021-12-09 18:49:49 +0000 devel/py-setuptools_scm: Turn py-packaging into a soft dependency * Since the 6.3.0 release, devel/py-packaging has been defined in the "setup.cfg" as an unconditional dependency. However this leads to problems if py-packaging is uninstalled but py-setuptools_scm persists, then the missing port can no longer be built. [1] Although py-setuptools_scm has a fallback to devel/py-setuptools when py-packaging is absent this fallback code is not executed. This is because py-setuptools, which checks the dependencies of py-setuptools_scm upon invocation and terminates as soon as these are not met. Fix this issue by converting py-packaging into an optional dependency for py-setuptools_scm so that the fallback code is really used if py-packaging is absent. But keep the latter one in the RUN_DEPENDS in order to continue to reflect the actual dependencies. * Also add py-packaging to BUILD_DEPENDS as defined in "pyproject.toml" although it's not strictly required to build the port. [2] * Bump PORTREVISION due package change. PR: 259981 Reported by: many [1], koobs [2] Tested by: se, myself devel/py-setuptools_scm/Makefile | 4 +++- devel/py-setuptools_scm/files/patch-setup.cfg (new) | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) -- You are receiving this mail because: You are on the CC list for the bug.