[Bug 289273] devel/py-setuptools-scm: avoid stripping GIT_CEILING_DIRECTORIES
Date: Wed, 03 Sep 2025 14:14:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289273
--- Comment #8 from commit-hook@FreeBSD.org ---
A commit in branch 2025Q3 references this bug:
URL:
https://cgit.FreeBSD.org/ports/commit/?id=17cf32c577055899a1827b3aea248c6d71a949b4
commit 17cf32c577055899a1827b3aea248c6d71a949b4
Author: Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2025-09-03 13:09:23 +0000
Commit: Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2025-09-03 14:07:10 +0000
devel/py-setuptools-scm: Heed GIT_CEILING_DIRECTORIES
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283098
introduced GIT_CEILING_DIRECTORIES=${WRKDIR} so that Python port builds
do not ascend up and start looking at our entire ports tree, which is
usually unrelated.
The upstream setuptools-scm package as of 8.0.4 deliberately breaks this
and strips all GIT_* environment variables except three, and
this will lead to "git archive" that it calls when looking up extra
requisites for building a wheel in the entire ports tree again.
Note the bug will not be observed if either WRKDIR is outside
of PORTSDIR's hierarchy (in poudriere, say), or for builds of
ports if py-setuptools-scm aren't installed.
Add GIT_CEILING_DIRECTORIES to the list of variables to keep so
that
https://cgit.freebsd.org/ports/commit/?id=deb79782a9b87c64d06441e4bf67e46bf19c45c3
continues to work even if setuptools-scm is installed and WRKDIR
is a subdirectory of PORTSDIR.
This is an interim fix until we receive the upstream fix,
which requires a new release:
https://github.com/pypa/setuptools-scm/commit/98b70785ab99ee32b6863c32d0fc844cd2c3dd95
PR: 289273
Fixes: deb79782a9b87c64d06441e4bf67e46bf19c45c3
Approved by: python@ (maintainer, vishwin@)
MFH: 2025Q3
(cherry picked from commit 9ed2f48707ea779576bca72418b8c4f7cdc01df8)
devel/py-setuptools-scm/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--
You are receiving this mail because:
You are on the CC list for the bug.