[Bug 259266] [python] meaningless and careless 'git archive' execution on /usr/ports from git repo

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 19 Oct 2021 11:55:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259266

            Bug ID: 259266
           Summary: [python] meaningless and careless 'git archive'
                    execution on /usr/ports from git repo
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: nork@ninth-nine.com

Many python modules required py-setuptools_scm.
And setuptools_scm run 'git archive --prefix /usr/ports HEAD' on 'make stage'.
But it's too meaningless and careless, because they want its version,
not ports version.

SEE ALSO: https://github.com/pypa/setuptools_scm/issues/353

Sorry, I don't know how to fix, yet. I know some workaround:

- chmod 0000 /usr/local/libexec/git-core/git-archive
- pkg -y delete git
- mv /usr/ports/.git /usr/ports/.git.IGNORE and make install, then revert.
- etc, etc...

-- 
You are receiving this mail because:
You are the assignee for the bug.