On Sun, 31 Jan 2021 at 09:27:30 +0000, Stuart Henderson wrote: > On 2021/01/30 08:21, Aaron Bieber wrote: > > On Sat, 30 Jan 2021 at 15:39:41 +0100, Thaison Nguyen wrote: > > > Hi, > > > > > > do you mean like this? > > > I have not seen any Makefile yet, where PORTS_PRIVSEP=Yes is set. > > > The only place where I have seen this is /etc/mk.conf. > > > > > > > Correct. It is a mk.conf option and without '-modcacherw' set 'make clean' > > breaks. > > That can't go in a port makefile. Do you mean FIX_EXTRACT_PERMISSIONS? >
FIX_EXTRACT_PERMISSIONS doesn't seem to work in this case. I meant the makefile for micro (though it can be set in a ports makefile as well if one defines a do-build): --------- $OpenBSD$ Index: Makefile --- Makefile.orig +++ Makefile @@ -28,7 +28,7 @@ build-all: runtime build # Builds micro without checking for dependencies build-quick: - go build -trimpath -ldflags "-s -w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro + go build -modcacherw -trimpath -ldflags "-s -w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro # Same as 'build' but installs to $GOBIN afterward install: ---------