[Bug 277194] shells/elvish: Update build flags for enhancing version information.
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 277194] shells/elvish: Update build flags for enhancing version information."
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 277194] shells/elvish: Update build flags for enhancing version information."
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 277194] shells/elvish: Update build flags for enhancing version information."
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Feb 2024 15:35:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277194 Bug ID: 277194 Summary: shells/elvish: Update build flags for enhancing version information. Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: xiaqqaix@gmail.com CC: vendion@gmail.com CC: vendion@gmail.com Flags: maintainer-feedback?(vendion@gmail.com) The instructions for how to enhance Elvish's version information has changed. See https://github.com/elves/elvish/blob/master/PACKAGING.md and https://pkg.go.dev/src.elv.sh@master/pkg/buildinfo for the latest instruction. Ideally the package revision should also be set, but I'm not sure how to do that, so I'm leaving that out for now. Elvish's Go package name has also changed to src.elv.sh from github.com/elves/elvish, but since this doesn't seem to impact the usability of the port I'm also keeping that unchanged for now. Feel free to update that too. diff --git a/shells/elvish/Makefile b/shells/elvish/Makefile index 5ab1f4d25033..0fbf9b722e62 100644 --- a/shells/elvish/Makefile +++ b/shells/elvish/Makefile @@ -27,7 +27,7 @@ GH_TUPLE= \ GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} GO_TARGET= ./cmd/elvish -GO_BUILDFLAGS= -ldflags="-s -w -X src.elv.sh/pkg/buildinfo.Version=${DISTVERSIONPREFIX}${DISTVERSION} -X src.elv.sh/pkg/buildinfo.Reproducible=true" \ +GO_BUILDFLAGS= -ldflags="-s -w -X src.elv.sh/pkg/buildinfo.BuildVariant=freebsd" \ -buildmode=pie GO_TESTFLAGS= -race CGO_ENABLED= 0 -- You are receiving this mail because: You are the assignee for the bug.