FreeBSD Bugzilla – Attachment 175116 Details for
Bug 212956
[PATCH] Uses/go.mk, add GO_EXTRA_PACKAGES for multi-package applications
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
svn(1) diff of Mk/Uses/go.mk to add GO_EXTRA_PACKAGES
go.patch (text/plain), 1.08 KB, created by
Kyle Evans
on 2016-09-24 05:42:59 UTC
(
hide
)
Description:
svn(1) diff of Mk/Uses/go.mk to add GO_EXTRA_PACKAGES
Filename:
MIME Type:
Creator:
Kyle Evans
Created:
2016-09-24 05:42:59 UTC
Size:
1.08 KB
patch
obsolete
>Index: Mk/Uses/go.mk >=================================================================== >--- Mk/Uses/go.mk (revision 422699) >+++ Mk/Uses/go.mk (working copy) >@@ -16,6 +16,10 @@ > # GO_TARGET > # The names of the package(s) to build > # >+# GO_EXTRA_PACKAGES >+# Name of any additional packages that are included with the package >+# to be built. Creates additional directories in GOPATH/src as needed >+# > # CGO_CFLAGS > # Addional CFLAGS variables to be passed to the C compiler by the `go` > # command >@@ -62,11 +66,24 @@ > GO_SRCDIR=${GO_SRCDIR} \ > GO_PKGNAME=${GO_PKGNAME} > >+.if !empty(GO_EXTRA_PACKAGES) && empty(GO_EXTRA_PACKAGES:M${GO_PKGNAME}) >+GO_EXTRA_PACKAGES+= ${GO_PKGNAME} >+.endif >+ > .if !target(post-extract) > post-extract: >+.if empty(GO_EXTRA_PACKAGES) > @${MKDIR} ${GO_WRKSRC:H} > @${LN} -sf ${WRKSRC} ${GO_WRKSRC} >+.else >+.for _PACKAGE in ${GO_EXTRA_PACKAGES} >+ @if [ -e "${WRKSRC}/src/${_PACKAGE}" ]; then \ >+ ${MKDIR} ${GO_WRKDIR_SRC}/${_PACKAGE:H}; \ >+ ${LN} -sf ${WRKSRC}/src/${_PACKAGE} ${GO_WRKDIR_SRC}/${_PACKAGE}; \ >+ fi; >+.endfor > .endif >+.endif > > .if !target(do-build) > do-build:
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
Actions:
View
|
Diff
Attachments on
bug 212956
: 175116