Date: Sun, 24 Oct 2021 10:55:47 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 258891] devel/py-setuptools_scm: tries to git archive the entire ports tree on build Message-ID: <bug-258891-21822-34MXSOKSdS@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-258891-21822@https.bugs.freebsd.org/bugzilla/> References: <bug-258891-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258891 --- Comment #14 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3Dadc0cc3f69aeac37b9678c6d5b4d548= d9c60cfae commit adc0cc3f69aeac37b9678c6d5b4d548d9c60cfae Author: Kai Knoblich <kai@FreeBSD.org> AuthorDate: 2021-10-24 10:43:33 +0000 Commit: Kai Knoblich <kai@FreeBSD.org> CommitDate: 2021-10-24 10:54:58 +0000 devel/py-setuptools_scm: Do not run "git archive" on Ports tree * In build environments have git installed in conjunction with a git-based Ports tree and haven't WRKDIRPREFIX set, there will be significant delays when building devel/py-setuptools_scm or ports that depend on it. This is because the top-level directory of the git repository is determined during build via "git rev-parse --show-toplevel" which is issued inside the WRKSRC directory. Once the top-level directory (which is PORTSDIR) has been determined, an archive is created from this point using "git archive" which is then very time-consuming due the complexity of the Ports tree. In environments (e.g. poudriere) that have WRKDIRPREFIX set and also have git present during build, the issue doesn't appear because "git rev-parse --show-toplevel" fails silently with "not a git repo". Remedy the issue by returning only the actual path of WRKSRC, but only if it has "setup.py" in it (=3D devel/py-setuptools_scm is built) or a test session is performed. * Modernize the "do-test" target while I'm here and bump PORTREVISION due package change. PR: 258891 Reported by: Robert Clausecker <fuz@fuz.su> Obtained from: OpenIndiana MFH: 2021Q4 (after 1 week) devel/py-setuptools_scm/Makefile | 8 ++++++-- ...-src_setuptools__scm_file__finder__git.py (new) | 22 ++++++++++++++++++= ++++ ...h-src_setuptools__scm_file__finder__hg.py (new) | 22 ++++++++++++++++++= ++++ 3 files changed, 50 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258891-21822-34MXSOKSdS>