pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Make sysutils/tuios report proper version and build origin



Module Name:	pkgsrc-wip
Committed By:	ci4ic4 <ci4ic4%gmail.com@localhost>
Pushed By:	ci4ic4
Date:		Tue Oct 6 10:40:17 2026 +0100
Changeset:	96ca68758d0774e4b7a2b054c4bf9589c28cd2c0

Modified Files:
	tuios/Makefile

Log Message:
Make sysutils/tuios report proper version and build origin

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=96ca68758d0774e4b7a2b054c4bf9589c28cd2c0

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 tuios/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diffs:
diff --git a/tuios/Makefile b/tuios/Makefile
index e0b7a51bb5..1d735c9e09 100644
--- a/tuios/Makefile
+++ b/tuios/Makefile
@@ -15,6 +15,10 @@ WRKSRC=	${WRKDIR}/${DISTNAME}
 # Pure-Go backend only; the optional ghostty backend needs cgo + libghostty-vt.
 GO_BUILD_PATTERN=	./cmd/tuios
 
+# Report the real release version instead of "dev", and stop Go from
+# stamping the pkgsrc-wip git revision into the binary as the VCS commit.
+GOFLAGS=	-buildvcs=false -ldflags "-X main.version=${PKGVERSION_NOREV} -X main.builtBy=pkgsrc"
+
 .include "go-modules.mk"
 
 .include "../../lang/go/go-module.mk"


Home | Main Index | Thread Index | Old Index