<feed xmlns='http://www.w3.org/2005/Atom'>
<title>algaos/algaos-ebuild-tree/eclass/go-env.eclass, branch next</title>
<subtitle>[no description]</subtitle>
<id>https://git.algaos.com/algaos/algaos-ebuild-tree/atom?h=next</id>
<link rel='self' href='https://git.algaos.com/algaos/algaos-ebuild-tree/atom?h=next'/>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/'/>
<updated>2026-04-28T14:21:23Z</updated>
<entry>
<title>go-env.eclass: Create named go run wrapper rather than using -exec</title>
<updated>2026-04-28T14:21:23Z</updated>
<author>
<name>James Le Cuirot</name>
<email>chewi@gentoo.org</email>
</author>
<published>2026-04-13T13:56:09Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=e234949a9292d102a034d07ec184f9e310137158'/>
<id>urn:sha1:e234949a9292d102a034d07ec184f9e310137158</id>
<content type='text'>
Some projects unset GOOS and GOARCH before running `go run` in order to
force the build host. Giving the wrapper using `GOFLAGS="-exec=..."`
breaks this because that expects the target host. `go run` can also find
the wrapper in the PATH as `go_${GOOS}_${GOARCH}_exec`, so take this
more targetted approach instead.

Signed-off-by: James Le Cuirot &lt;chewi@gentoo.org&gt;
</content>
</entry>
<entry>
<title>go-env.eclass: Set CGO_ENABLED to 1 by default for EAPI 9</title>
<updated>2026-04-28T14:21:22Z</updated>
<author>
<name>James Le Cuirot</name>
<email>chewi@gentoo.org</email>
</author>
<published>2026-04-20T11:27:49Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=9eabd853e76b3db48d9b041087be7fbd7144e19f'/>
<id>urn:sha1:9eabd853e76b3db48d9b041087be7fbd7144e19f</id>
<content type='text'>
Upstream Go enables this by default for native builds anyway, but it is
disabled by default for cross builds, and some projects may disable it
by default.

Signed-off-by: James Le Cuirot &lt;chewi@gentoo.org&gt;
</content>
</entry>
<entry>
<title>go-module.eclass: Support EAPI 9 with new src_configure phase function</title>
<updated>2026-04-28T14:21:21Z</updated>
<author>
<name>James Le Cuirot</name>
<email>chewi@gentoo.org</email>
</author>
<published>2026-03-11T17:01:13Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=936180ed9472413e6e031e7679c02ba0fa956380'/>
<id>urn:sha1:936180ed9472413e6e031e7679c02ba0fa956380</id>
<content type='text'>
src_configure now calls go-env_set_compile_environment(), which was
previously called during src_unpack. This was problematic because it
would set up flag variables before any flag filtering was typically done
in src_configure.

Closes: https://bugs.gentoo.org/963401
Signed-off-by: James Le Cuirot &lt;chewi@gentoo.org&gt;
</content>
</entry>
<entry>
<title>go-env.eclass: Support EAPI 9</title>
<updated>2026-04-28T14:21:20Z</updated>
<author>
<name>James Le Cuirot</name>
<email>chewi@gentoo.org</email>
</author>
<published>2026-03-11T16:59:43Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=18657b7663e3bc3d1bfe58b8bee51e25c213f6fe'/>
<id>urn:sha1:18657b7663e3bc3d1bfe58b8bee51e25c213f6fe</id>
<content type='text'>
Signed-off-by: James Le Cuirot &lt;chewi@gentoo.org&gt;
</content>
</entry>
<entry>
<title>go-env.eclass: support Hurd in GOOS</title>
<updated>2026-03-28T14:11:30Z</updated>
<author>
<name>Sam James</name>
<email>sam@gentoo.org</email>
</author>
<published>2026-03-28T10:58:29Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=b89eaab096700f3165c6f84088d8d28b1da75b35'/>
<id>urn:sha1:b89eaab096700f3165c6f84088d8d28b1da75b35</id>
<content type='text'>
Signed-off-by: Sam James &lt;sam@gentoo.org&gt;
</content>
</entry>
<entry>
<title>go-env.eclass: Update some documentation</title>
<updated>2026-03-21T09:29:50Z</updated>
<author>
<name>James Le Cuirot</name>
<email>chewi@gentoo.org</email>
</author>
<published>2026-03-13T22:46:16Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=e21808beac67291d67c948f949d3b26c3a8d9e82'/>
<id>urn:sha1:e21808beac67291d67c948f949d3b26c3a8d9e82</id>
<content type='text'>
Signed-off-by: James Le Cuirot &lt;chewi@gentoo.org&gt;
</content>
</entry>
<entry>
<title>go-env.eclass: Add -exec to GOFLAGS for `go run` when necessary</title>
<updated>2026-03-21T09:29:49Z</updated>
<author>
<name>James Le Cuirot</name>
<email>chewi@gentoo.org</email>
</author>
<published>2026-03-13T16:12:25Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=241a05824333089cda94cfe4cd7807f5ef8a858e'/>
<id>urn:sha1:241a05824333089cda94cfe4cd7807f5ef8a858e</id>
<content type='text'>
`go run` will build binaries for the target system and try to execute
them. This will fail when cross-compiling unless you provide a wrapper.

Signed-off-by: James Le Cuirot &lt;chewi@gentoo.org&gt;
</content>
</entry>
<entry>
<title>go-env.eclass: Add go-env_run() helper</title>
<updated>2026-03-21T09:29:46Z</updated>
<author>
<name>James Le Cuirot</name>
<email>chewi@gentoo.org</email>
</author>
<published>2026-03-11T16:44:01Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=728061fe36ea0ca02477e391b508b0b216aca0f9'/>
<id>urn:sha1:728061fe36ea0ca02477e391b508b0b216aca0f9</id>
<content type='text'>
This can run the given command with the Go environment for CBUILD.

Signed-off-by: James Le Cuirot &lt;chewi@gentoo.org&gt;
</content>
</entry>
<entry>
<title>go-env.eclass: Also set GOOS automatically alongside GOARCH and friends</title>
<updated>2026-03-21T09:29:45Z</updated>
<author>
<name>James Le Cuirot</name>
<email>chewi@gentoo.org</email>
</author>
<published>2026-03-13T09:20:52Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=8b45513fbf505e0e016c0cb3ba662bb45033619a'/>
<id>urn:sha1:8b45513fbf505e0e016c0cb3ba662bb45033619a</id>
<content type='text'>
We might be cross-compiling for another OS.

Signed-off-by: James Le Cuirot &lt;chewi@gentoo.org&gt;
</content>
</entry>
<entry>
<title>go-env.eclass: go-module.eclass: Move GOFLAGS handling between eclasses</title>
<updated>2026-03-21T09:29:44Z</updated>
<author>
<name>James Le Cuirot</name>
<email>chewi@gentoo.org</email>
</author>
<published>2026-03-12T10:37:03Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=5f81d6868139d32170c05377d2e9343c61bfb729'/>
<id>urn:sha1:5f81d6868139d32170c05377d2e9343c61bfb729</id>
<content type='text'>
We should set this together with the other environment variables,
especially as -buildmode=pie is arch-specific. We now set that based on
the tuple rather than USE flags.

Parallelism is now set via GOMAXPROCS instead of GOFLAGS. This allows
users to specify their own value, which they may want to do because Go
doesn't currently support the GNU Make jobserver.

Signed-off-by: James Le Cuirot &lt;chewi@gentoo.org&gt;
</content>
</entry>
</feed>
