Index | Thread | Search

From:
Marco van Hulten <marco@hulten.org>
Subject:
Re: remove or update devel/git-lfs
To:
Stuart Henderson <stu@spacehopper.org>
Cc:
ports@openbsd.org
Date:
Tue, 21 Oct 2025 16:15:35 +0200

Download raw body.

Thread
Looping avoided.  I'll later foo on the distribution's Makefile to get a
list of directories that is allowed to change between versions.

But first this problem:

mvanhult@detekti:.../devel/git-lfs$ make -j1
===>  Building for git-lfs-3.7.0
mkdir -p /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3
ln -sfh ../../../../../t /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
ln -sfh ../../../../../tools /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
ln -sfh ../../../../../ssh /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
ln -sfh ../../../../../creds /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
ln -sfh ../../../../../tq /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
ln -sfh ../../../../../tasklog /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
ln -sfh ../../../../../subprocess /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
ln -sfh ../../../../../locking /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
ln -sfh ../../../../../lfshttp /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
ln -sfh ../../../../../lfsapi /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
ln -sfh ../../../../../lfs /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
ln -sfh ../../../../../git /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
ln -sfh ../../../../../fs /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
ln -sfh ../../../../../filepathfilter /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
ln -sfh ../../../../../errors /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
ln -sfh ../../../../../config /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
ln -sfh ../../../../../tr /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
ln -sfh ../../../../../commands /usr/ports/pobj/git-lfs-3.7.0/go/src/all/vendor/github.com/git-lfs/git-lfs/v3/
cd /usr/ports/pobj/git-lfs-3.7.0/go/src/all &&  /usr/bin/env -i GO386=softfloat GOCACHE="/usr/ports/pobj/git-lfs-3.7.0/go-cache" GOTOOLCHAIN=local TMPDIR="/usr/ports/pobj/git-lfs-3.7.0/build-amd64" GOPROXY=invalid://ports.should.not.fetch.at.buildtime/ GO111MODULE=off GOPATH="/usr/ports/pobj/git-lfs-3.7.0/go:/usr/local/go-pkg" PORTSDIR="/usr/ports" LIBTOOL="/usr/bin/libtool"  CCACHE_DIR=/usr/ports/pobj/.ccache  PATH='/usr/ports/pobj/git-lfs-3.7.0/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11R6/bin' PREFIX='/usr/local'  LOCALBASE='/usr/local' X11BASE='/usr/X11R6'  CFLAGS='-O2 -pipe'  TRUEPREFIX='/usr/local' DESTDIR=''  HOME='/git-lfs-3.7.0_writes_to_HOME' PICFLAG="-fpic"  BINGRP=bin BINOWN=root BINMODE=755 NONBINMODE=644  DIRMODE=755  INSTALL_COPY=-c INSTALL_STRIP=  MANGRP=bin MANOWN=root MANMODE=644 BSD_INSTALL_PROGRAM="/usr/ports/pobj/git-lfs-3.7.0/bin/install -c  -m 755"  BSD_INSTALL_SCRIPT="/usr/ports/pobj/git-lfs-3.7.0/bin/install -c -m 755"  BSD_INSTALL_DATA="/usr/ports/pobj/git-lfs-3.7.0/bin/install -c -m 644"  BSD_INSTALL_MAN="/usr/ports/pobj/git-lfs-3.7.0/bin/install -c -m 644"  BSD_INSTALL_PROGRAM_DIR="/usr/ports/pobj/git-lfs-3.7.0/bin/install -d -m 755"  BSD_INSTALL_SCRIPT_DIR="/usr/ports/pobj/git-lfs-3.7.0/bin/install -d -m 755"  BSD_INSTALL_DATA_DIR="/usr/ports/pobj/git-lfs-3.7.0/bin/install -d -m 755"  BSD_INSTALL_MAN_DIR="/usr/ports/pobj/git-lfs-3.7.0/bin/install -d -m 755" go install -v -buildvcs=false -p=1 -ldflags="-s -w" all
cmd/go: go install cmd/go: copying /usr/ports/pobj/git-lfs-3.7.0/build-amd64/go-build3819846726/b527/exe/a.out: open /usr/local/go/bin/go: text file busy
cmd/gofmt: go install cmd/gofmt: copying /usr/ports/pobj/git-lfs-3.7.0/build-amd64/go-build3819846726/b673/exe/a.out: open /usr/local/go/bin/gofmt: permission denied
*** Error 1 in . (/usr/ports/lang/go/go.port.mk:169 'do-build')
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:3065 '/usr/ports/pobj/git-lfs-3.7.0/build-amd64/.build_done': @cd /usr/ports/myst...)
*** Error 2 in /usr/ports/mystuff/devel/git-lfs (/usr/ports/infrastructure/mk/bsd.port.mk:2712 'all': @lock=git-lfs-3.7.0;  export _LOCKS_HE...)


I think it should not touch the go binary or anything whatsoever below
/usr/.  If it wants to 'go install', it should prefix with
/usr/ports/pobj/git-lfs-3.7.0/build-amd64/.

How do I avoid that the content of that directory is removed?

Thanks,

 Marco