From nobody Sat Oct 09 20:03:28 2021 X-Original-To: python@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1504517E37DA for ; Sat, 9 Oct 2021 20:03:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HRbbN00TGz4YtC for ; Sat, 9 Oct 2021 20:03:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D42B0205E9 for ; Sat, 9 Oct 2021 20:03:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 199K3RjC036916 for ; Sat, 9 Oct 2021 20:03:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 199K3Rpp036915 for python@FreeBSD.org; Sat, 9 Oct 2021 20:03:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Sat, 09 Oct 2021 20:03:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kai@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kai@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258891 --- Comment #5 from Kai Knoblich --- Created attachment 228549 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D228549&action= =3Dedit DRAFT-workaround-for-py-setuptools_scm-v1.patch (In reply to Robert Clausecker from comment #4) I was able to verify the issue, thanks for the pointers. As you already mentioned in comment #1 and comment #2, a broader workaround is required.=20 This is because ports, that have devel/py-setuptools_scm as a dependency, m= ake use of its entrypoints during build which triggers then "file_finder_git" i= f a ".git" directory is found. Tampering with the entrypoints of devel/py-setuptools_scm (e.g. to patch out "file_finder_git") seems not be a good idea so the workaround with the GIT_CEILING_DIRECTORIES environment might be a good workaround. Attached is a preliminary patch that sets GIT_CEILING_DIRECTORIES if "USE_PYTHON=3Ddistutils" is set. First tests were ok, but I've to test it in more detail in the next few day= s. I'll also soon create a review so that others from python@ can also look at= it. --=20 You are receiving this mail because: You are on the CC list for the bug.=