"f.holop" writes: > hello, > > i don't have experience with go ports and i cannot seem to have > `make update-patches` work on this go project: > > ~/ports/sysutils/fzf$ make update-patches > WRKDIST=/home/g/src/ports/pobj/fzf-0.21.1/fzf-0.21.1 does not exist > *** Error 1 in /home/g/src/ports/sysutils/fzf > (/home/g/src/ports/infrastructure/mk/bsd.port.mk:2559 > 'update-patches': @toedit=`WRKDIST=/home...) > > ~/src/ports/sysutils/fzf$ make show=WRKSRC > /home/g/src/ports/pobj/fzf-0.21.1/go/src/github.com/junegunn/fzf
This is what I do for net/dnscrypt-proxy. $ make clean patch Go to /usr/ports/pobj/dnscrypt-proxy-2.0.42/dnscrypt-proxy-2.0.42 and make edits. $ make update-patches $ make clean configure $ make show=WRKSRC /usr/ports/pobj/dnscrypt-proxy-2.0.42/go/src/github.com/jedisct1/dnscrypt-proxy Refer to the lang/go section in port-modules(5) for a full explanation. > > ~/src/ports/sysutils/fzf$ make > ===> fzf-0.21.1 depends on: go-=1.13.9 -> go-1.13.9 > ===> Verifying specs: c pthread > ===> found c.96.0 pthread.26.1 > ===> Checking files for fzf-0.21.1 > `/home/g/src/ports/distfiles/fzf-0.21.1.tar.gz' is up to date. >>> (SHA256) fzf-0.21.1.tar.gz: OK > ===> Extracting for fzf-0.21.1 > ===> Patching for fzf-0.21.1 > ===> Compiler link: clang -> /usr/bin/clang > ===> Compiler link: clang++ -> /usr/bin/clang++ > ===> Compiler link: cc -> /usr/bin/cc > ===> Compiler link: c++ -> /usr/bin/c++ > ===> Generating configure for fzf-0.21.1 > ===> Configuring for fzf-0.21.1 > ===> Building for fzf-0.21.1 > /usr/bin/env -i GOCACHE="/home/g/src/ports/pobj/fzf-0.21.1/go-cache" > GOPATH="/home/g/src/ports/pobj/fzf-0.21.1/go:/usr/local/go-pkg" > GO111MODULE=off GO386=387 > GOPROXY=invalid://ports.should.not.fetch.at.buildtime/ > PORTSDIR="/home/g/src/ports" LIBTOOL="/usr/bin/libtool" > PATH='/home/g/src/ports/pobj/fzf-0.21.1/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='/fzf-0.21.1_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="/home/g/src/ports/pobj/fzf-0.21.1/bin/install -c > -m 755" > BSD_INSTALL_SCRIPT="/home/g/src/ports/pobj/fzf-0.21.1/bin/install -c > -m 755" > BSD_INSTALL_DATA="/home/g/src/ports/pobj/fzf-0.21.1/bin/install -c -m > 644" BSD_INSTALL_MAN="/home/g/src/ports/pobj/fzf-0.21.1/bin/install -c > -m 644" > BSD_INSTALL_PROGRAM_DIR="/home/g/src/ports/pobj/fzf-0.21.1/bin/install > -d -m 755" > BSD_INSTALL_SCRIPT_DIR="/home/g/src/ports/pobj/fzf-0.21.1/bin/install > -d -m 755" > BSD_INSTALL_DATA_DIR="/home/g/src/ports/pobj/fzf-0.21.1/bin/install -d > -m 755" > BSD_INSTALL_MAN_DIR="/home/g/src/ports/pobj/fzf-0.21.1/bin/install -d > -m 755" go install -v -p 1 github.com/junegunn/fzf > github.com/junegunn/fzf/vendor/golang.org/x/sys/unix > github.com/junegunn/fzf/vendor/github.com/mattn/go-isatty > github.com/junegunn/fzf/vendor/github.com/mattn/go-runewidth > github.com/junegunn/fzf/src/util > github.com/junegunn/fzf/src/algo > github.com/junegunn/fzf/vendor/golang.org/x/crypto/ssh/terminal > github.com/junegunn/fzf/src/tui > github.com/junegunn/fzf/vendor/github.com/mattn/go-shellwords > github.com/junegunn/fzf/vendor/golang.org/x/sync/errgroup > github.com/junegunn/fzf/vendor/github.com/saracen/walker > github.com/junegunn/fzf/src > github.com/junegunn/fzf/src/protector > github.com/junegunn/fzf > > -f