Update Go to 1.9.
The latest Go release, version 1.9, arrives six months after Go 1.8 and
is the tenth release in the Go 1.x series. There are two changes to the
language: adding support for type aliases and defining when
implementations may fuse floating point operations. Most of the changes
are in the implementation of the toolchain, runtime, and libraries. As
always, the release maintains the Go 1 promise of compatibility. We
expect almost all Go programs to continue to compile and run as before.
The release adds transparent monotonic time support, parallelizes
compilation of functions within a package, better supports test helper
functions, includes a new bit manipulation package, and has a new
concurrent map type.
There are some instabilities on FreeBSD that are known but not
understood. These can lead to program crashes in rare cases. See issue
15658. Any help in solving this FreeBSD-specific issue would be
appreciated.
Go stopped running NetBSD builders during the Go 1.9 development cycle
due to NetBSD kernel crashes, up to and including NetBSD 7.1. As Go 1.9
is being released, NetBSD 7.1.1 is being released with a fix. However,
at this time we have no NetBSD builders passing our test suite. Any help
investigating the various NetBSD issues would be appreciated.
2017-09-03 09:12:07 +02:00
|
|
|
# $NetBSD: Makefile,v 1.54 2017/09/03 07:12:07 bsiegert Exp $
|
2013-07-07 10:10:14 +02:00
|
|
|
|
2014-11-18 21:39:11 +01:00
|
|
|
.include "version.mk"
|
|
|
|
|
|
|
|
DISTNAME= go${GO_VERSION}.src
|
|
|
|
PKGNAME= go-${GO_VERSION}
|
2013-07-07 10:10:14 +02:00
|
|
|
CATEGORIES= lang
|
2014-05-27 20:56:53 +02:00
|
|
|
MASTER_SITES= https://storage.googleapis.com/golang/
|
2013-07-07 10:10:14 +02:00
|
|
|
|
|
|
|
MAINTAINER= bsiegert@NetBSD.org
|
|
|
|
HOMEPAGE= http://golang.org/
|
|
|
|
COMMENT= The Go programming language
|
|
|
|
LICENSE= modified-bsd
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/go
|
|
|
|
USE_TOOLS+= bash:run perl:run pax
|
|
|
|
|
|
|
|
# uses ulimit -T
|
2016-01-16 10:43:44 +01:00
|
|
|
# BUILD_DEPENDS+= bash>=4.2nb3:../../shells/bash
|
2013-07-07 10:10:14 +02:00
|
|
|
|
|
|
|
# cgo compiles under TMPDIR
|
|
|
|
TMPDIR?= /tmp
|
|
|
|
BUILDLINK_PASSTHRU_DIRS+= ${TMPDIR}
|
|
|
|
|
|
|
|
GOROOT_FINAL= ${PREFIX}/go
|
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
|
|
|
REPLACE_BASH+= doc/articles/wiki/test.bash
|
2013-12-15 22:50:34 +01:00
|
|
|
REPLACE_BASH+= doc/codewalk/run
|
Update to 1.4, ok bsiegert:
Today we announce Go 1.4, the fifth major stable release of Go,
arriving six months after our previous major release Go 1.3. It
contains a small language change, support for more operating systems
and processor architectures, and improvements to the tool chain
and libraries. As always, Go 1.4 keeps the promise of compatibility,
and almost everything will continue to compile and run without
change when moved to 1.4. For the full details, see the Go 1.4
release notes.
The most notable new feature in this release is official support
for Android. Using the support in the core and the libraries in
the golang.org/x/mobile repository, it is now possible to write
simple Android apps using only Go code. At this stage, the support
libraries are still nascent and under heavy development. Early
adopters should expect a bumpy ride, but we welcome the community
to get involved.
The language change is a tweak to the syntax of for-range loops.
You may now write "for range s {" to loop over each item from s,
without having to assign the value, loop index, or map key. See
the release notes for details.
The go command has a new subcommand, go generate, to automate the
running of tools to generate source code before compilation. For
example, it can be used to automate the generation of String methods
for typed constants using the new stringer tool. For more information,
see the design document.
Most programs will run about the same speed or slightly faster in
1.4 than in 1.3; some will be slightly slower. There are many
changes, making it hard to be precise about what to expect. See
the release notes for more discussion.
And, of course, there are many more improvements and bug fixes.
In case you missed it, a few weeks ago the sub-repositories were
moved to new locations. For example, the go.tools packages are now
imported from "golang.org/x/tools". See the announcement post for
details.
This release also coincides with the project's move from Mercurial
to Git (for source control), Rietveld to Gerrit (for code review),
and Google Code to Github (for issue tracking and wiki). The move
affects the core Go repository and its sub-repositories. You can
find the canonical Git repositories at go.googlesource.com, and
the issue tracker and wiki at the golang/go GitHub repo.
2014-12-12 10:41:40 +01:00
|
|
|
REPLACE_BASH+= lib/time/update.bash
|
2013-07-07 10:10:14 +02:00
|
|
|
REPLACE_BASH+= misc/arm/a
|
2014-06-22 16:50:47 +02:00
|
|
|
REPLACE_BASH+= misc/benchcmp
|
Update to 1.4, ok bsiegert:
Today we announce Go 1.4, the fifth major stable release of Go,
arriving six months after our previous major release Go 1.3. It
contains a small language change, support for more operating systems
and processor architectures, and improvements to the tool chain
and libraries. As always, Go 1.4 keeps the promise of compatibility,
and almost everything will continue to compile and run without
change when moved to 1.4. For the full details, see the Go 1.4
release notes.
The most notable new feature in this release is official support
for Android. Using the support in the core and the libraries in
the golang.org/x/mobile repository, it is now possible to write
simple Android apps using only Go code. At this stage, the support
libraries are still nascent and under heavy development. Early
adopters should expect a bumpy ride, but we welcome the community
to get involved.
The language change is a tweak to the syntax of for-range loops.
You may now write "for range s {" to loop over each item from s,
without having to assign the value, loop index, or map key. See
the release notes for details.
The go command has a new subcommand, go generate, to automate the
running of tools to generate source code before compilation. For
example, it can be used to automate the generation of String methods
for typed constants using the new stringer tool. For more information,
see the design document.
Most programs will run about the same speed or slightly faster in
1.4 than in 1.3; some will be slightly slower. There are many
changes, making it hard to be precise about what to expect. See
the release notes for more discussion.
And, of course, there are many more improvements and bug fixes.
In case you missed it, a few weeks ago the sub-repositories were
moved to new locations. For example, the go.tools packages are now
imported from "golang.org/x/tools". See the announcement post for
details.
This release also coincides with the project's move from Mercurial
to Git (for source control), Rietveld to Gerrit (for code review),
and Google Code to Github (for issue tracking and wiki). The move
affects the core Go repository and its sub-repositories. You can
find the canonical Git repositories at go.googlesource.com, and
the issue tracker and wiki at the golang/go GitHub repo.
2014-12-12 10:41:40 +01:00
|
|
|
REPLACE_BASH+= misc/cgo/errors/test.bash
|
2016-08-19 11:38:06 +02:00
|
|
|
REPLACE_BASH+= misc/cgo/fortran/test.bash
|
Update Go to 1.9.
The latest Go release, version 1.9, arrives six months after Go 1.8 and
is the tenth release in the Go 1.x series. There are two changes to the
language: adding support for type aliases and defining when
implementations may fuse floating point operations. Most of the changes
are in the implementation of the toolchain, runtime, and libraries. As
always, the release maintains the Go 1 promise of compatibility. We
expect almost all Go programs to continue to compile and run as before.
The release adds transparent monotonic time support, parallelizes
compilation of functions within a package, better supports test helper
functions, includes a new bit manipulation package, and has a new
concurrent map type.
There are some instabilities on FreeBSD that are known but not
understood. These can lead to program crashes in rare cases. See issue
15658. Any help in solving this FreeBSD-specific issue would be
appreciated.
Go stopped running NetBSD builders during the Go 1.9 development cycle
due to NetBSD kernel crashes, up to and including NetBSD 7.1. As Go 1.9
is being released, NetBSD 7.1.1 is being released with a fix. However,
at this time we have no NetBSD builders passing our test suite. Any help
investigating the various NetBSD issues would be appreciated.
2017-09-03 09:12:07 +02:00
|
|
|
REPLACE_BASH+= misc/cgo/testcarchive/test.bash
|
2015-08-23 01:49:13 +02:00
|
|
|
REPLACE_BASH+= misc/cgo/testcshared/test.bash
|
Update to 1.4, ok bsiegert:
Today we announce Go 1.4, the fifth major stable release of Go,
arriving six months after our previous major release Go 1.3. It
contains a small language change, support for more operating systems
and processor architectures, and improvements to the tool chain
and libraries. As always, Go 1.4 keeps the promise of compatibility,
and almost everything will continue to compile and run without
change when moved to 1.4. For the full details, see the Go 1.4
release notes.
The most notable new feature in this release is official support
for Android. Using the support in the core and the libraries in
the golang.org/x/mobile repository, it is now possible to write
simple Android apps using only Go code. At this stage, the support
libraries are still nascent and under heavy development. Early
adopters should expect a bumpy ride, but we welcome the community
to get involved.
The language change is a tweak to the syntax of for-range loops.
You may now write "for range s {" to loop over each item from s,
without having to assign the value, loop index, or map key. See
the release notes for details.
The go command has a new subcommand, go generate, to automate the
running of tools to generate source code before compilation. For
example, it can be used to automate the generation of String methods
for typed constants using the new stringer tool. For more information,
see the design document.
Most programs will run about the same speed or slightly faster in
1.4 than in 1.3; some will be slightly slower. There are many
changes, making it hard to be precise about what to expect. See
the release notes for more discussion.
And, of course, there are many more improvements and bug fixes.
In case you missed it, a few weeks ago the sub-repositories were
moved to new locations. For example, the go.tools packages are now
imported from "golang.org/x/tools". See the announcement post for
details.
This release also coincides with the project's move from Mercurial
to Git (for source control), Rietveld to Gerrit (for code review),
and Google Code to Github (for issue tracking and wiki). The move
affects the core Go repository and its sub-repositories. You can
find the canonical Git repositories at go.googlesource.com, and
the issue tracker and wiki at the golang/go GitHub repo.
2014-12-12 10:41:40 +01:00
|
|
|
REPLACE_BASH+= misc/cgo/testgodefs/test.bash
|
Update Go to 1.8.
The compiler back end introduced in Go 1.7 for 64-bit x86 is now used on all
architectures, and those architectures should see significant performance
improvements. For instance, the CPU time required by our benchmark programs was
reduced by 20-30% on 32-bit ARM systems. There are also some modest performance
improvements in this release for 64-bit x86 systems. The compiler and linker
have been made faster. Compile times should be improved by about 15% over Go
1.7. There is still more work to be done in this area: expect faster
compilation speeds in future releases.
Garbage collection pauses should be significantly shorter, usually under 100
microseconds and often as low as 10 microseconds.
The HTTP server adds support for HTTP/2 Push, allowing servers to preemptively
send responses to a client. This is useful for minimizing network latency by
eliminating roundtrips. The HTTP server also adds support for graceful
shutdown, allowing servers to minimize downtime by shutting down only after
serving all requests that are in flight.
Contexts (added to the standard library in Go 1.7) provide a cancelation and
timeout mechanism. Go 1.8 adds support for contexts in more parts of the
standard library, including the database/sql and net packages and
Server.Shutdown in the net/http package.
Go 1.8 includes many more additions, improvements, and fixes. Find the complete
set of changes, and more information about the improvements listed above, in
the Go 1.8 release notes: https://golang.org/doc/go1.8
2017-03-15 20:38:09 +01:00
|
|
|
REPLACE_BASH+= misc/cgo/testplugin/test.bash
|
2016-02-23 21:12:25 +01:00
|
|
|
REPLACE_BASH+= misc/cgo/testsanitizers/test.bash
|
2014-06-22 16:50:47 +02:00
|
|
|
REPLACE_BASH+= misc/nacl/go_nacl_386_exec
|
|
|
|
REPLACE_BASH+= misc/nacl/go_nacl_amd64p32_exec
|
Update to 1.4, ok bsiegert:
Today we announce Go 1.4, the fifth major stable release of Go,
arriving six months after our previous major release Go 1.3. It
contains a small language change, support for more operating systems
and processor architectures, and improvements to the tool chain
and libraries. As always, Go 1.4 keeps the promise of compatibility,
and almost everything will continue to compile and run without
change when moved to 1.4. For the full details, see the Go 1.4
release notes.
The most notable new feature in this release is official support
for Android. Using the support in the core and the libraries in
the golang.org/x/mobile repository, it is now possible to write
simple Android apps using only Go code. At this stage, the support
libraries are still nascent and under heavy development. Early
adopters should expect a bumpy ride, but we welcome the community
to get involved.
The language change is a tweak to the syntax of for-range loops.
You may now write "for range s {" to loop over each item from s,
without having to assign the value, loop index, or map key. See
the release notes for details.
The go command has a new subcommand, go generate, to automate the
running of tools to generate source code before compilation. For
example, it can be used to automate the generation of String methods
for typed constants using the new stringer tool. For more information,
see the design document.
Most programs will run about the same speed or slightly faster in
1.4 than in 1.3; some will be slightly slower. There are many
changes, making it hard to be precise about what to expect. See
the release notes for more discussion.
And, of course, there are many more improvements and bug fixes.
In case you missed it, a few weeks ago the sub-repositories were
moved to new locations. For example, the go.tools packages are now
imported from "golang.org/x/tools". See the announcement post for
details.
This release also coincides with the project's move from Mercurial
to Git (for source control), Rietveld to Gerrit (for code review),
and Google Code to Github (for issue tracking and wiki). The move
affects the core Go repository and its sub-repositories. You can
find the canonical Git repositories at go.googlesource.com, and
the issue tracker and wiki at the golang/go GitHub repo.
2014-12-12 10:41:40 +01:00
|
|
|
REPLACE_BASH+= misc/nacl/go_nacl_arm_exec
|
2013-07-07 10:10:14 +02:00
|
|
|
REPLACE_BASH+= src/all.bash
|
Update to 1.4, ok bsiegert:
Today we announce Go 1.4, the fifth major stable release of Go,
arriving six months after our previous major release Go 1.3. It
contains a small language change, support for more operating systems
and processor architectures, and improvements to the tool chain
and libraries. As always, Go 1.4 keeps the promise of compatibility,
and almost everything will continue to compile and run without
change when moved to 1.4. For the full details, see the Go 1.4
release notes.
The most notable new feature in this release is official support
for Android. Using the support in the core and the libraries in
the golang.org/x/mobile repository, it is now possible to write
simple Android apps using only Go code. At this stage, the support
libraries are still nascent and under heavy development. Early
adopters should expect a bumpy ride, but we welcome the community
to get involved.
The language change is a tweak to the syntax of for-range loops.
You may now write "for range s {" to loop over each item from s,
without having to assign the value, loop index, or map key. See
the release notes for details.
The go command has a new subcommand, go generate, to automate the
running of tools to generate source code before compilation. For
example, it can be used to automate the generation of String methods
for typed constants using the new stringer tool. For more information,
see the design document.
Most programs will run about the same speed or slightly faster in
1.4 than in 1.3; some will be slightly slower. There are many
changes, making it hard to be precise about what to expect. See
the release notes for more discussion.
And, of course, there are many more improvements and bug fixes.
In case you missed it, a few weeks ago the sub-repositories were
moved to new locations. For example, the go.tools packages are now
imported from "golang.org/x/tools". See the announcement post for
details.
This release also coincides with the project's move from Mercurial
to Git (for source control), Rietveld to Gerrit (for code review),
and Google Code to Github (for issue tracking and wiki). The move
affects the core Go repository and its sub-repositories. You can
find the canonical Git repositories at go.googlesource.com, and
the issue tracker and wiki at the golang/go GitHub repo.
2014-12-12 10:41:40 +01:00
|
|
|
REPLACE_BASH+= src/androidtest.bash
|
2015-08-23 01:49:13 +02:00
|
|
|
REPLACE_BASH+= src/bootstrap.bash
|
|
|
|
REPLACE_BASH+= src/buildall.bash
|
2013-07-07 10:10:14 +02:00
|
|
|
REPLACE_BASH+= src/clean.bash
|
Update Go to 1.9.
The latest Go release, version 1.9, arrives six months after Go 1.8 and
is the tenth release in the Go 1.x series. There are two changes to the
language: adding support for type aliases and defining when
implementations may fuse floating point operations. Most of the changes
are in the implementation of the toolchain, runtime, and libraries. As
always, the release maintains the Go 1 promise of compatibility. We
expect almost all Go programs to continue to compile and run as before.
The release adds transparent monotonic time support, parallelizes
compilation of functions within a package, better supports test helper
functions, includes a new bit manipulation package, and has a new
concurrent map type.
There are some instabilities on FreeBSD that are known but not
understood. These can lead to program crashes in rare cases. See issue
15658. Any help in solving this FreeBSD-specific issue would be
appreciated.
Go stopped running NetBSD builders during the Go 1.9 development cycle
due to NetBSD kernel crashes, up to and including NetBSD 7.1. As Go 1.9
is being released, NetBSD 7.1.1 is being released with a fix. However,
at this time we have no NetBSD builders passing our test suite. Any help
investigating the various NetBSD issues would be appreciated.
2017-09-03 09:12:07 +02:00
|
|
|
REPLACE_BASH+= src/cmd/compile/internal/big/vendor.bash
|
2016-02-23 21:12:25 +01:00
|
|
|
REPLACE_BASH+= src/cmd/dist/mkdeps.bash
|
2015-08-23 01:49:13 +02:00
|
|
|
REPLACE_BASH+= src/cmd/go/mkalldocs.sh
|
Update Go to 1.8.
The compiler back end introduced in Go 1.7 for 64-bit x86 is now used on all
architectures, and those architectures should see significant performance
improvements. For instance, the CPU time required by our benchmark programs was
reduced by 20-30% on 32-bit ARM systems. There are also some modest performance
improvements in this release for 64-bit x86 systems. The compiler and linker
have been made faster. Compile times should be improved by about 15% over Go
1.7. There is still more work to be done in this area: expect faster
compilation speeds in future releases.
Garbage collection pauses should be significantly shorter, usually under 100
microseconds and often as low as 10 microseconds.
The HTTP server adds support for HTTP/2 Push, allowing servers to preemptively
send responses to a client. This is useful for minimizing network latency by
eliminating roundtrips. The HTTP server also adds support for graceful
shutdown, allowing servers to minimize downtime by shutting down only after
serving all requests that are in flight.
Contexts (added to the standard library in Go 1.7) provide a cancelation and
timeout mechanism. Go 1.8 adds support for contexts in more parts of the
standard library, including the database/sql and net packages and
Server.Shutdown in the net/http package.
Go 1.8 includes many more additions, improvements, and fixes. Find the complete
set of changes, and more information about the improvements listed above, in
the Go 1.8 release notes: https://golang.org/doc/go1.8
2017-03-15 20:38:09 +01:00
|
|
|
REPLACE_BASH+= src/internal/trace/mkcanned.bash
|
2015-08-23 01:49:13 +02:00
|
|
|
REPLACE_BASH+= src/iostest.bash
|
2013-07-07 10:10:14 +02:00
|
|
|
REPLACE_BASH+= src/make.bash
|
2016-08-20 08:22:38 +02:00
|
|
|
REPLACE_BASH+= src/naclmake.bash
|
2014-06-22 16:50:47 +02:00
|
|
|
REPLACE_BASH+= src/nacltest.bash
|
2013-07-07 10:10:14 +02:00
|
|
|
REPLACE_BASH+= src/race.bash
|
|
|
|
REPLACE_BASH+= src/run.bash
|
Update to 1.4, ok bsiegert:
Today we announce Go 1.4, the fifth major stable release of Go,
arriving six months after our previous major release Go 1.3. It
contains a small language change, support for more operating systems
and processor architectures, and improvements to the tool chain
and libraries. As always, Go 1.4 keeps the promise of compatibility,
and almost everything will continue to compile and run without
change when moved to 1.4. For the full details, see the Go 1.4
release notes.
The most notable new feature in this release is official support
for Android. Using the support in the core and the libraries in
the golang.org/x/mobile repository, it is now possible to write
simple Android apps using only Go code. At this stage, the support
libraries are still nascent and under heavy development. Early
adopters should expect a bumpy ride, but we welcome the community
to get involved.
The language change is a tweak to the syntax of for-range loops.
You may now write "for range s {" to loop over each item from s,
without having to assign the value, loop index, or map key. See
the release notes for details.
The go command has a new subcommand, go generate, to automate the
running of tools to generate source code before compilation. For
example, it can be used to automate the generation of String methods
for typed constants using the new stringer tool. For more information,
see the design document.
Most programs will run about the same speed or slightly faster in
1.4 than in 1.3; some will be slightly slower. There are many
changes, making it hard to be precise about what to expect. See
the release notes for more discussion.
And, of course, there are many more improvements and bug fixes.
In case you missed it, a few weeks ago the sub-repositories were
moved to new locations. For example, the go.tools packages are now
imported from "golang.org/x/tools". See the announcement post for
details.
This release also coincides with the project's move from Mercurial
to Git (for source control), Rietveld to Gerrit (for code review),
and Google Code to Github (for issue tracking and wiki). The move
affects the core Go repository and its sub-repositories. You can
find the canonical Git repositories at go.googlesource.com, and
the issue tracker and wiki at the golang/go GitHub repo.
2014-12-12 10:41:40 +01:00
|
|
|
REPLACE_BASH+= src/runtime/mknacl.sh
|
|
|
|
REPLACE_BASH+= src/syscall/mkall.sh
|
|
|
|
REPLACE_BASH+= src/syscall/mkerrors.sh
|
|
|
|
REPLACE_BASH+= src/syscall/mksysnum_plan9.sh
|
2013-07-07 10:10:14 +02:00
|
|
|
|
Update to 1.4, ok bsiegert:
Today we announce Go 1.4, the fifth major stable release of Go,
arriving six months after our previous major release Go 1.3. It
contains a small language change, support for more operating systems
and processor architectures, and improvements to the tool chain
and libraries. As always, Go 1.4 keeps the promise of compatibility,
and almost everything will continue to compile and run without
change when moved to 1.4. For the full details, see the Go 1.4
release notes.
The most notable new feature in this release is official support
for Android. Using the support in the core and the libraries in
the golang.org/x/mobile repository, it is now possible to write
simple Android apps using only Go code. At this stage, the support
libraries are still nascent and under heavy development. Early
adopters should expect a bumpy ride, but we welcome the community
to get involved.
The language change is a tweak to the syntax of for-range loops.
You may now write "for range s {" to loop over each item from s,
without having to assign the value, loop index, or map key. See
the release notes for details.
The go command has a new subcommand, go generate, to automate the
running of tools to generate source code before compilation. For
example, it can be used to automate the generation of String methods
for typed constants using the new stringer tool. For more information,
see the design document.
Most programs will run about the same speed or slightly faster in
1.4 than in 1.3; some will be slightly slower. There are many
changes, making it hard to be precise about what to expect. See
the release notes for more discussion.
And, of course, there are many more improvements and bug fixes.
In case you missed it, a few weeks ago the sub-repositories were
moved to new locations. For example, the go.tools packages are now
imported from "golang.org/x/tools". See the announcement post for
details.
This release also coincides with the project's move from Mercurial
to Git (for source control), Rietveld to Gerrit (for code review),
and Google Code to Github (for issue tracking and wiki). The move
affects the core Go repository and its sub-repositories. You can
find the canonical Git repositories at go.googlesource.com, and
the issue tracker and wiki at the golang/go GitHub repo.
2014-12-12 10:41:40 +01:00
|
|
|
REPLACE_PERL+= src/net/http/cgi/testdata/test.cgi
|
|
|
|
REPLACE_PERL+= src/regexp/syntax/make_perl_groups.pl
|
|
|
|
REPLACE_PERL+= src/syscall/*.pl
|
2013-07-07 10:10:14 +02:00
|
|
|
REPLACE_PERL+= test/errchk
|
|
|
|
|
2017-07-22 21:32:40 +02:00
|
|
|
# uses own linker, which does not support relro on NetBSD
|
|
|
|
CHECK_RELRO_SKIP+= go/bin/go
|
|
|
|
CHECK_RELRO_SKIP+= go/bin/gofmt
|
|
|
|
CHECK_RELRO_SKIP+= go/pkg/bootstrap/bin/asm
|
|
|
|
CHECK_RELRO_SKIP+= go/pkg/bootstrap/bin/compile
|
|
|
|
CHECK_RELRO_SKIP+= go/pkg/bootstrap/bin/link
|
|
|
|
|
2013-07-07 10:10:14 +02:00
|
|
|
# uses /bin/rc (for Plan 9)
|
2014-06-22 16:50:47 +02:00
|
|
|
CHECK_INTERPRETER_SKIP+= go/include/plan9/mklibc.rc
|
2013-07-07 10:10:14 +02:00
|
|
|
CHECK_INTERPRETER_SKIP+= go/src/all.rc
|
|
|
|
CHECK_INTERPRETER_SKIP+= go/src/clean.rc
|
|
|
|
CHECK_INTERPRETER_SKIP+= go/src/make.rc
|
|
|
|
CHECK_INTERPRETER_SKIP+= go/src/run.rc
|
|
|
|
|
2015-08-22 12:51:20 +02:00
|
|
|
BUILD_DEPENDS+= go14-1.4*:../../lang/go14
|
|
|
|
GOROOT_BOOTSTRAP= ${PREFIX}/go14
|
|
|
|
|
2016-08-31 16:15:33 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
PLIST_VARS+= route
|
|
|
|
|
|
|
|
.if ${OPSYS} != "Linux" && ${OPSYS} != "SunOS"
|
|
|
|
PLIST.route= yes
|
|
|
|
.endif
|
|
|
|
|
2013-07-07 10:10:14 +02:00
|
|
|
do-build:
|
2015-08-22 12:51:20 +02:00
|
|
|
cd ${WRKSRC}/src && env GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP:Q} GOROOT_FINAL=${GOROOT_FINAL:Q} ${BASH} ./make.bash
|
2017-07-22 21:32:40 +02:00
|
|
|
# for RELRO build:
|
|
|
|
# cd ${WRKSRC}/src && env GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP:Q} GOROOT_FINAL=${GOROOT_FINAL:Q} GO_LDFLAGS="-buildmode=pie" ${BASH} ./make.bash
|
2013-07-07 10:10:14 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-05-31 15:06:47 +02:00
|
|
|
cd ${WRKSRC} && rm -rf .hgignore .hgtags pkg/obj
|
2013-07-07 10:10:14 +02:00
|
|
|
cd ${WRKDIR} && pax -rw go ${DESTDIR}${PREFIX}
|
2015-03-10 14:11:36 +01:00
|
|
|
find ${DESTDIR}${PREFIX}/go -name \*.orig -exec rm {} \;
|
2013-12-15 22:50:34 +01:00
|
|
|
.for cmd in go gofmt
|
2013-07-07 10:10:14 +02:00
|
|
|
cd ${DESTDIR}${PREFIX}/bin && ln -sf ../go/bin/${cmd} ${cmd}
|
|
|
|
.endfor
|
|
|
|
|
2015-08-26 01:07:23 +02:00
|
|
|
do-test:
|
|
|
|
cd ${WRKSRC}/src && GOROOT=${WRKSRC} PATH=${WRKSRC}/bin:${PATH} ${BASH} run.bash --no-rebuild --banner ""
|
|
|
|
|
2013-07-07 10:10:14 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|