Github messages for voidlinux
 help / color / mirror / Atom feed
* Re: go: add build_style=go to avoid code duplication
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20435@inbox.vuxu.org>
  2020-03-29  5:58 ` go: add build_style=go to avoid code duplication ericonr
@ 2020-03-29 22:23 ` Johnnynator
  2020-03-30  2:14 ` ericonr
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: Johnnynator @ 2020-03-29 22:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 242 bytes --]

New comment by Johnnynator on void-packages repository

https://github.com/void-linux/void-packages/pull/20435#issuecomment-605711092

Comment:
This adds go to hostmakedepends and therefore results in a build loop for noncross architectures.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: go: add build_style=go to avoid code duplication
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20435@inbox.vuxu.org>
  2020-03-29  5:58 ` go: add build_style=go to avoid code duplication ericonr
  2020-03-29 22:23 ` Johnnynator
@ 2020-03-30  2:14 ` ericonr
  2020-03-30  3:13 ` q66
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: ericonr @ 2020-03-30  2:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 633 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/20435#issuecomment-605745797

Comment:
> This adds go to hostmakedepends and therefore results in a build loop for noncross architectures.

Yeah, I was messing with it and noticed this issue when building for a second time. Do you know if I could just source the c/e/build_style/go.sh file? From what I read of the manual, there isn't any variable that points to the directory where xbps-src is located and I don't know if it's possible for the script to be run from anywhere or if it's always supposed to be run as `./xbps-src`.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: go: add build_style=go to avoid code duplication
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20435@inbox.vuxu.org>
                   ` (2 preceding siblings ...)
  2020-03-30  2:14 ` ericonr
@ 2020-03-30  3:13 ` q66
  2020-03-30  3:14 ` q66
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: q66 @ 2020-03-30  3:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 196 bytes --]

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/20435#issuecomment-605759382

Comment:
`broken` does not work in environment, it's not a variable.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: go: add build_style=go to avoid code duplication
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20435@inbox.vuxu.org>
                   ` (3 preceding siblings ...)
  2020-03-30  3:13 ` q66
@ 2020-03-30  3:14 ` q66
  2020-03-30  3:36 ` q66
  2020-03-30  3:36 ` [PR PATCH] [Closed]: " q66
  6 siblings, 0 replies; 7+ messages in thread
From: q66 @ 2020-03-30  3:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/20435#issuecomment-605759382

Comment:
`broken` does not work in environment, it's not a variable

this PR doesn't really make sense

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: go: add build_style=go to avoid code duplication
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20435@inbox.vuxu.org>
                   ` (4 preceding siblings ...)
  2020-03-30  3:14 ` q66
@ 2020-03-30  3:36 ` q66
  2020-03-30  3:36 ` [PR PATCH] [Closed]: " q66
  6 siblings, 0 replies; 7+ messages in thread
From: q66 @ 2020-03-30  3:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 436 bytes --]

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/20435#issuecomment-605764728

Comment:
ec937e4d293c642dc45c20deef479dc79d80751a and 927e7904637a29650019668ee193d13efb2afda0 addressed the functional concerns of this, other than that it doesn't really make sense to set `build-style` here as there is too much of a mismatch and attempting to merge them would create more code than remove.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PR PATCH] [Closed]: go: add build_style=go to avoid code duplication
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20435@inbox.vuxu.org>
                   ` (5 preceding siblings ...)
  2020-03-30  3:36 ` q66
@ 2020-03-30  3:36 ` q66
  6 siblings, 0 replies; 7+ messages in thread
From: q66 @ 2020-03-30  3:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 533 bytes --]

There's a closed pull request on the void-packages repository

go: add build_style=go to avoid code duplication
https://github.com/void-linux/void-packages/pull/20435

Description:
The GOARCH selection snippet was duplicated in the go build_style script
for environment variables and in the go template itself. Furthermore,
there were discrepancies between the two snippets, which have been
fixed.

This makes the go template leaner, and makes both cases more robust (changes to GOARCH selection can be done in a single place).

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: go: add build_style=go to avoid code duplication
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20435@inbox.vuxu.org>
@ 2020-03-29  5:58 ` ericonr
  2020-03-29 22:23 ` Johnnynator
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: ericonr @ 2020-03-29  5:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/20435#issuecomment-605586929

Comment:
Seems some builds failed with timeouts, with others the issue was memory consumption during the bootstrap process:

> cc1plus: out of memory allocating 262144 bytes after a total of 3915776 bytes

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-03-30  3:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20435@inbox.vuxu.org>
2020-03-29  5:58 ` go: add build_style=go to avoid code duplication ericonr
2020-03-29 22:23 ` Johnnynator
2020-03-30  2:14 ` ericonr
2020-03-30  3:13 ` q66
2020-03-30  3:14 ` q66
2020-03-30  3:36 ` q66
2020-03-30  3:36 ` [PR PATCH] [Closed]: " q66

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).