FreeBSD Bugzilla – Attachment 219813 Details for
Bug 251256
net/concourse-fly: switch to USES=go:modules, cleanup
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch file
concourse-fly-5.7.2.patch (text/plain), 1.31 KB, created by
Dmitri Goutnik
on 2020-11-19 15:48:36 UTC
(
hide
)
Description:
patch file
Filename:
MIME Type:
Creator:
Dmitri Goutnik
Created:
2020-11-19 15:48:36 UTC
Size:
1.31 KB
patch
obsolete
>Index: net/concourse-fly/Makefile >=================================================================== >--- net/concourse-fly/Makefile (revision 555637) >+++ net/concourse-fly/Makefile (working copy) >@@ -11,11 +11,11 @@ > > LICENSE= APACHE20 > >-GO_PKGNAME= github.com/concourse/fly >-GO_BUILDFLAGS+= -mod=vendor \ >- -ldflags="-X github.com/concourse/concourse.Version=${PORTVERSION}" >+USES= go:modules tar:xz > >-USES= go tar:xz >+GO_TARGET= ./cmd/concourse:fly >+GO_BUILDFLAGS= -ldflags="-s -w -X github.com/concourse/concourse.Version=${PORTVERSION}" >+CGO_CFLAGS= -I. > > CONFLICTS_INSTALL= fly > >@@ -42,23 +42,10 @@ > # > # make create-src-archive > # >-# Because it doesn't match the project layout USES=go expects, we >-# override the post-extract and do-build targets to adapt the commands. >-# >-# In particular, we must pass `-mod=vendor` to go-install to be able to >-# use the third-party dependencies fetched with `go mod vendor`. >- > # `fly` version is set by default to "0.0.0-dev" in version/Version.go. > # Instead of patching the file, we use a linker flag to set the variable > # to the port's version. > >-post-extract: >- @: >- >-do-build: >- (cd ${WRKSRC}/fly; \ >- ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} 'install' ${GO_BUILDFLAGS}) >- > .PHONY: create-src-archive > ARCHIVE_DIR= ${DISTDIR}/concourse-${PORTVERSION} > create-src-archive:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dmgk
:
maintainer-approval?
Actions:
View
|
Diff
Attachments on
bug 251256
: 219813