[Bug 233676] sysutils/node_exporter: build has no version

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Dec 20 23:35:51 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233676

--- Comment #1 from Volodymyr Kostyrko <arcade at b1t.name> ---
I know how to fix:

BUILD_USER?=   ${USER}
LD_FLAG_X_PREFIX=      -X ${GO_PKGNAME}/vendor/${GO_PKGNAME:H}/common/version
LD_FLAG_STRING=                -s \
               ${LD_FLAG_X_PREFIX}.Version=${PORTVERSION} \
               ${LD_FLAG_X_PREFIX}.Revision=${PORTREVISION} \
               ${LD_FLAG_X_PREFIX}.Branch=release-${PORTVERSION:R} \
               ${LD_FLAG_X_PREFIX}.BuildUser=${BUILD_USER}
GO_BUILDFLAGS= -v -ldflags "${LD_FLAG_STRING}"

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list