Opened 3 years ago

Last modified 11 months ago

#64044 assigned enhancement

git-lfs: allow using system git

Reported by: chrstphrchvz (Christopher Chavez) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: cooljeanius (Eric Gallager)
Port: git-lfs

Description

For my own uses, the git included with Xcode 12.4 command line tools has been sufficient. I encountered a repository that requires git-lfs. But MacPorts’ git-lfs currently depends on MacPorts’ git, which is not distributable. I think it would be desirable to not have to build git locally just to use MacPorts’ git-lfs, and it appears to work fine with system git (e.g. no broken links to MacPorts git). Can the git-lfs port specify the git dependency using bin:git:git, at least on systems with sufficiently recent git?

Change History (6)

comment:1 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

Type: defectenhancement

comment:2 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

According to https://github.com/git-lfs/git-lfs/blob/main/README.md, git ≥ 1.8.5 is required on macOS. From browsing https://opensource.apple.com/, Xcode 5.1 is the earliest version meeting this requirement (contains git 1.8.5.2). Based on wiki:XcodeVersionInfo and https://en.wikipedia.org/wiki/Xcode#Xcode_5.0_-_6.x_(since_arm64_support), a compatible git version may be present on macOS 10.8 and 10.9, but may only be guaranteed to be present on 10.10 and later.

Last edited 3 years ago by chrstphrchvz (Christopher Chavez) (previous) (diff)

comment:3 Changed 11 months ago by raimue (Rainer Müller)

In the meantime, git became distributable. But the port also requires at least macOS 10.12, which ensures that the macOS release always ships a git version that is new enough.

No objections to make it depends_run bin:git:git as far as I can see.

comment:4 Changed 11 months ago by chrstphrchvz (Christopher Chavez)

Rainer, thanks for commenting. I believe I have since encountered enough objections elsewhere to the possibility of non-MacPorts dependencies being used, such that I should withdraw this request. I have not needed git-lfs since opening this ticket.

comment:5 Changed 11 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:6 in reply to:  4 Changed 11 months ago by cooljeanius (Eric Gallager)

Replying to chrstphrchvz:

Rainer, thanks for commenting. I believe I have since encountered enough objections elsewhere to the possibility of non-MacPorts dependencies being used, such that I should withdraw this request.

I think it's still worth doing.

Note: See TracTickets for help on using tickets.