Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2018 23:35:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 233676] sysutils/node_exporter: build has no version
Message-ID:  <bug-233676-7788-XA67K80xLp@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-233676-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-233676-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233676

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

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233676-7788-XA67K80xLp>