On 2025/10/15 18:18, Marco van Hulten wrote:
> The version in ports is very outdated and breaks with more recent
> installations (for instance, as part of GitLab 18.3).
> 
> $ git-lfs fetch file.dat
> batch request: bash: line 1: git-lfs-authenticate: command not found: exit 
> status 127
> 
> Simple update of version (patch below) does not work.  'make build'
> wants to download many packages from github.com and golang.org.
> 
> If someone wants to fix this or can tell me how to do that with minimal
> effort, I'd very happy.  Removing the port is second best.

not a very satisfying diff, but try this

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/git-lfs/Makefile,v
diff -u -p -r1.20 Makefile
--- Makefile    11 Mar 2022 18:50:06 -0000      1.20
+++ Makefile    17 Oct 2025 09:44:39 -0000
@@ -1,26 +1,36 @@
 COMMENT =              Git extension for versioning large files
 
-GH_PROJECT =           git-lfs
-GH_ACCOUNT =           git-lfs
-GH_TAGNAME =           v2.13.2
+V =                    3.7.0
+DISTNAME =             git-lfs-$V
+DISTFILES =            git-lfs-v$V.tar.gz
+PKGNAME =              git-lfs-$V
 
 CATEGORIES =           devel
 
 HOMEPAGE =             https://git-lfs.github.com/
+SITES =                        
https://github.com/git-lfs/git-lfs/releases/download/v$V/
+
+# generated from "go mod tidy + go mod vendor", tar contains git-lfs-$V/vendor
+SITES.v =              https://spacehopper.org/mirrors/
+DISTFILES.v =          git-lfs-$V-vendor.tar.gz
 
 # MIT
 PERMIT_PACKAGE =       Yes
 
 WANTLIB +=             c pthread
 
-MODULES =              lang/go \
-                       lang/ruby
+MODULES =              lang/ruby \
+                       lang/go
 MODRUBY_BUILDDEP =     No
 MODRUBY_RUNDEP =       No
 
 BUILD_DEPENDS =                textproc/groff \
                        textproc/ruby-ronn
 RUN_DEPENDS =          devel/git
+
+pre-build:
+       mkdir -p ${WRKDIR}/go/src/all/vendor/github.com/git-lfs/git-lfs
+       ln -s ../../../.. 
${WRKDIR}/go/src/all/vendor/github.com/git-lfs/git-lfs/v3
 
 # Convert the manpages with ronn instead of mangen.go
 post-build:
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/git-lfs/distinfo,v
diff -u -p -r1.16 distinfo
--- distinfo    5 Jun 2021 13:08:03 -0000       1.16
+++ distinfo    17 Oct 2025 09:44:39 -0000
@@ -1,2 +1,4 @@
-SHA256 (git-lfs-2.13.2.tar.gz) = eC5idd+co3BzCUURLhaguMZLmBnwth+uUroeu8jc4tU=
-SIZE (git-lfs-2.13.2.tar.gz) = 2527736
+SHA256 (git-lfs-3.7.0-vendor.tar.gz) = 
hzwJMh7Om1qBYI85WWcL40C26YG33NlkVQEtC6wiO4o=
+SHA256 (git-lfs-v3.7.0.tar.gz) = 0Hi4OTUUxlxIXRYo5hBEm6BIr3RnSZEr0ILYGLJFQ0g=
+SIZE (git-lfs-3.7.0-vendor.tar.gz) = 3135300
+SIZE (git-lfs-v3.7.0.tar.gz) = 700986

Reply via email to