The NetBSD Project

CVS log for pkgsrc/lang/go/bootstrap.mk

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / lang / go

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Feb 6 00:24:36 2025 UTC (21 months, 1 week ago) by riastradh
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2, pkgsrc-2025Q1-base, pkgsrc-2025Q1, HEAD
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2 lines
lang/go: Add cross-build support.

This adds cross-build support for lang/go123 and for the Go-related
infrastructure in pkgsrc.  (We could do older versions of Go too with
a little more work.)

Noteworthy changes that are not conditional on USE_CROSS_COMPILE:

1. lang/go/version.mk is rearranged to be more data-driven than
   conditional-driven.  Making it data-driven makes it easier to
   define both GOARCH and GOHOSTARCH from the same tables when
   MACHINE_ARCH and NATIVE_MACHINE_ARCH are not the same.

   This is a likely source of broken edge cases.  I went through the
   old conditional logic and hand-checked all the conditions but I
   could have made a mistake.

2. go-module.mk and go-package.mk define GOPATH_BIN to be `bin' for
   native builds, and `bin/${GO_PLATFORM}' for cross builds -- this
   is the subdirectory of GOPATH where the Go toolchain puts binaries
   so that packages with custom do-install targets can avoid any need
   for USE_CROSS_COMPILE conditionals.

   The default do-install targets use pax slightly differently now to
   avoid the need for USE_CROSS_COMPILE conditionals.  I think the
   logic is equivalent for native builds but this is worth reviewing.

3. lang/go123 no longer depends on bash and Perl at runtime.  As far
   as I can tell, this was just a kludge to pacify check-interpreter
   complaints in the copy of the source code that Go ships under
   ${PREFIX}/go123/src.  We don't need to replace the interpreter at
   build-time -- most of these scripts are not run at all during the
   build, and the handful that remain (make.bash, run.bash) are run
   with ${BASH}.  Instead, we CHECK_INTERPRETER_SKIP them in the
   installed copy of the source code.

Proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2025/01/19/msg030395.html

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Jan 19 19:27:37 2025 UTC (21 months, 3 weeks ago) by riastradh
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -4 lines
lang/go/bootstrap.mk: Use ${TOOLBASE}, not ${PREFIX}.

Preparation for cross-compiling golang packages.  No change for
native builds because in that case TOOLBASE and PREFIX are the same.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Aug 3 19:28:29 2024 UTC (2 years, 3 months ago) by bsiegert
Branches: MAIN
CVS tags: pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -1 lines
go-bin: add FreeBSD binaries

go14 does not build on FreeBSD 14, so the bootstrap from source does not
work. Thus, use go-bin for bootstrapping on FreeBSD 14.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Jun 6 12:41:44 2023 UTC (3 years, 5 months ago) by riastradh
Branches: MAIN
CVS tags: pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4 lines
Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/.

Almost all uses, if not all of them, are wrong, according to the
semantics of BUILD_DEPENDS (packages built for target available for
use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for
host available for use _as_ tools at build-time).

No change to BUILD_DEPENDS as used correctly inside buildlink3.

As proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Feb 6 20:53:02 2023 UTC (3 years, 9 months ago) by ryoon
Branches: MAIN
CVS tags: pkgsrc-2023Q1-base, pkgsrc-2023Q1
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
go: Fix path for bootstrap kit

* Fix lang/go120 build.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Feb 2 09:23:41 2023 UTC (3 years, 9 months ago) by tnn
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -1 lines
go/bootstrap.mk: support setting GO_BOOTSTRAP_REQD=118

for wip/go120

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Jan 28 12:34:30 2023 UTC (3 years, 9 months ago) by jperkin
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -2 lines
go: Switch illumos platforms to native GOOS=illumos.

Ensures that native interfaces such as flock(3C) that aren't available on
Solaris can be used.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Mar 9 15:15:59 2022 UTC (4 years, 8 months ago) by bacon
Branches: MAIN
CVS tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
lang/go: Fix bootstrap on macOS Monterrey

Darwin 12 eliminated a kernel feature needed by go 1.10 and earlier.
This patch makes Darwin 12 boostrap using go-bin rather than go14.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Jul 14 14:32:04 2021 UTC (5 years, 4 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -8 lines
go: Remove previous change, fixed in go-bin instead.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Jul 14 10:18:28 2021 UTC (5 years, 4 months ago) by jperkin
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +8 -1 lines
go: Remove go-bin code signatures on Darwin/aarch64.

Fixes the build of go116 when inside a chroot as the signatures cannot be
verified for some reason.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Dec 12 11:08:26 2020 UTC (5 years, 11 months ago) by maya
Branches: MAIN
CVS tags: pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -3 lines
go: clarify that go14 had no aarch64 support on all OSes, so we need go-bin
there.

Hopefully clarifies the acceptable solution for people running into this
problem for darwin/arm64.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat May 2 20:12:34 2020 UTC (6 years, 6 months ago) by tnn
Branches: MAIN
CVS tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +6 -13 lines
go/bootstrap.mk: depend on lang/go-bin on {Linux,NetBSD}-*-aarch64

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri May 1 16:55:28 2020 UTC (6 years, 6 months ago) by tnn
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +14 -1 lines
go/bootstrap.mk: add manual user instructions for aarch64 bootstrap

In lieu of something better, like lang/go14 aarch64 support ...

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri May 1 14:39:37 2020 UTC (6 years, 6 months ago) by tnn
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -1 lines
go/bootstrap.mk: allow user to set GOROOT_BOOTSTRAP in mk.conf

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri May 1 14:09:14 2020 UTC (6 years, 6 months ago) by tnn
Branches: MAIN
go*: move definition of GOROOT_BOOTSTRAP to go/bootstrap.mk.

NFC. But will later need to do something else when MACHINE_ARCH == aarch64.
Also drop dup include of bsd.prefs.mk. go/version.mk does this already.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>