* [PR PATCH] build-style/go: use XBPS_MAKEJOBS to control parallelism
@ 2019-06-19 2:37 voidlinux-github
2019-06-19 3:14 ` voidlinux-github
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: voidlinux-github @ 2019-06-19 2:37 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 352 bytes --]
There is a new pull request by CameronNemo against master on the void-packages repository
https://github.com/CameronNemo/void-packages gojobs
https://github.com/void-linux/void-packages/pull/12538
build-style/go: use XBPS_MAKEJOBS to control parallelism
None
A patch file from https://github.com/void-linux/void-packages/pull/12538.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gojobs-12538.patch --]
[-- Type: application/text/x-diff, Size: 2112 bytes --]
From 01acf3798c41c632c733f9972ed245b0ff000a6a Mon Sep 17 00:00:00 2001
From: Cameron Nemo <cnemo@tutanota.com>
Date: Tue, 18 Jun 2019 19:37:27 -0700
Subject: [PATCH] build-style/go: use XBPS_MAKEJOBS to control parallelism
---
Manual.md | 7 ++++++-
common/build-style/go.sh | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/Manual.md b/Manual.md
index ec5206bba58..7f6f23de59e 100644
--- a/Manual.md
+++ b/Manual.md
@@ -1460,7 +1460,7 @@ Go packages should be built with the `go` build style, if possible.
The `go` build style takes care of downloading Go dependencies and
setting up cross compilation.
-The following variables influence how Go packages are built:
+The following template variables influence how Go packages are built:
- `go_import_path`: The import path of the package included in the
distfile, as it would be used with `go get`. For example, GitHub's
@@ -1479,6 +1479,11 @@ The following variables influence how Go packages are built:
accepted by `go build -mod MODE`. Defaults to `vendor` if there's
a vendor directory, otherwise `default`.
+The following environment variables influence how Go packages are built:
+
+- `XBPS_MAKEJOBS`: Value passed to the `-p` flag of `go install`, to
+ control the parallelism of the Go compiler.
+
Occasionally it is necessary to perform operations from within the Go
source tree. This is usually needed by programs using go-bindata or
otherwise preping some assets. If possible do this in pre_build().
diff --git a/common/build-style/go.sh b/common/build-style/go.sh
index 98f95bea2e5..5242a446a15 100644
--- a/common/build-style/go.sh
+++ b/common/build-style/go.sh
@@ -33,7 +33,7 @@ do_build() {
# default behavior.
go_mod_mode=
fi
- go install -mod="${go_mod_mode}" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
+ go install -p "$XBPS_MAKEJOBS" -mod="${go_mod_mode}" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
else
# Otherwise, build using GOPATH
go get -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: build-style/go: use XBPS_MAKEJOBS to control parallelism
2019-06-19 2:37 [PR PATCH] build-style/go: use XBPS_MAKEJOBS to control parallelism voidlinux-github
@ 2019-06-19 3:14 ` voidlinux-github
2019-06-19 3:16 ` voidlinux-github
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: voidlinux-github @ 2019-06-19 3:14 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 203 bytes --]
New comment by CameronNemo on void-packages repository
https://github.com/void-linux/void-packages/pull/12538#issuecomment-503389233
Comment:
@the-maldridge not sure if you want to gosmoke this or what
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: build-style/go: use XBPS_MAKEJOBS to control parallelism
2019-06-19 2:37 [PR PATCH] build-style/go: use XBPS_MAKEJOBS to control parallelism voidlinux-github
2019-06-19 3:14 ` voidlinux-github
@ 2019-06-19 3:16 ` voidlinux-github
2019-06-25 20:04 ` [PR PATCH] [Merged]: " voidlinux-github
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: voidlinux-github @ 2019-06-19 3:16 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 346 bytes --]
New comment by the-maldridge on void-packages repository
https://github.com/void-linux/void-packages/pull/12538#issuecomment-503389626
Comment:
This looks okay, I'd rather merge this though with a change that also fixes everywhere that we've hacked in a parallelism disable. I don't think we need to gosmoke this, it should be reasonably safe.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PR PATCH] [Merged]: build-style/go: use XBPS_MAKEJOBS to control parallelism
2019-06-19 2:37 [PR PATCH] build-style/go: use XBPS_MAKEJOBS to control parallelism voidlinux-github
2019-06-19 3:14 ` voidlinux-github
2019-06-19 3:16 ` voidlinux-github
@ 2019-06-25 20:04 ` voidlinux-github
2019-06-25 20:05 ` voidlinux-github
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: voidlinux-github @ 2019-06-25 20:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 193 bytes --]
There's a merged pull request on the void-packages repository
build-style/go: use XBPS_MAKEJOBS to control parallelism
https://github.com/void-linux/void-packages/pull/12538
Description: None
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: build-style/go: use XBPS_MAKEJOBS to control parallelism
2019-06-19 2:37 [PR PATCH] build-style/go: use XBPS_MAKEJOBS to control parallelism voidlinux-github
` (2 preceding siblings ...)
2019-06-25 20:04 ` [PR PATCH] [Merged]: " voidlinux-github
@ 2019-06-25 20:05 ` voidlinux-github
2019-06-25 20:24 ` voidlinux-github
2019-06-25 21:07 ` voidlinux-github
5 siblings, 0 replies; 7+ messages in thread
From: voidlinux-github @ 2019-06-25 20:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 216 bytes --]
New comment by the-maldridge on void-packages repository
https://github.com/void-linux/void-packages/pull/12538#issuecomment-505601792
Comment:
@xtraeme please do not merge changes that still have open discussions.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: build-style/go: use XBPS_MAKEJOBS to control parallelism
2019-06-19 2:37 [PR PATCH] build-style/go: use XBPS_MAKEJOBS to control parallelism voidlinux-github
` (3 preceding siblings ...)
2019-06-25 20:05 ` voidlinux-github
@ 2019-06-25 20:24 ` voidlinux-github
2019-06-25 21:07 ` voidlinux-github
5 siblings, 0 replies; 7+ messages in thread
From: voidlinux-github @ 2019-06-25 20:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 194 bytes --]
New comment by CameronNemo on void-packages repository
https://github.com/void-linux/void-packages/pull/12538#issuecomment-505608389
Comment:
what packages could take advantage of / test this?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: build-style/go: use XBPS_MAKEJOBS to control parallelism
2019-06-19 2:37 [PR PATCH] build-style/go: use XBPS_MAKEJOBS to control parallelism voidlinux-github
` (4 preceding siblings ...)
2019-06-25 20:24 ` voidlinux-github
@ 2019-06-25 21:07 ` voidlinux-github
5 siblings, 0 replies; 7+ messages in thread
From: voidlinux-github @ 2019-06-25 21:07 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 204 bytes --]
New comment by xtraeme on void-packages repository
https://github.com/void-linux/void-packages/pull/12538#issuecomment-505623295
Comment:
This has been reverted. I thought the conversation was resolved.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-06-25 21:07 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-19 2:37 [PR PATCH] build-style/go: use XBPS_MAKEJOBS to control parallelism voidlinux-github
2019-06-19 3:14 ` voidlinux-github
2019-06-19 3:16 ` voidlinux-github
2019-06-25 20:04 ` [PR PATCH] [Merged]: " voidlinux-github
2019-06-25 20:05 ` voidlinux-github
2019-06-25 20:24 ` voidlinux-github
2019-06-25 21:07 ` voidlinux-github
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).