Go is an open source programming environment that makes it easy to build
simple, reliable, and efficient software.
This is a meta port for the default version of Go. It provides symbolic
links for go and gofmt that point toward the respective binaries
installed by whichever version of Go you have selected as your default.
*/*: Use C.UTF-8 locale
Ports 02f27a83b44d fixed the ports tree to the C locale so it would work
correctly in environments where users use a locale that isn't compatible
with the C locale, e.g. xx_YY.UTF-8 where [A-Z] includes more than just
upper case letters. USE_LOCALE was introduced to let ports use another
locale if they needed it. The C.UTF-8 locale was created later on to be
mostly compatible with the C locale.
Switch the ports tree locale to C.UTF-8 and remove USE_LOCALE. The
world has moved to Unicode so all ports either require it or know how to
build correctly in a Unicode environment.
PR: 295945
Exp-run by: antoine
lang/go: Add bsd.go.mk and use it for go124 and go125
Previously, we used lang/go-devel as a MASTERDIR, but go-devel itself
was really old (essentially 3 years old), and Go doesn't have the
concept of a public "development" version anymore.
Rather than tying modern Go ports to a vestigial version that nobody
should actually use, this commit adds a bsd.go.mk that Go ports can
include. This allows us to get lang/go* Makefiles down to 3 lines.
While here, extend the pkg-descr for both lang/go and the lang/go1*
ports to help users understand what's installing what.
This "new" framework (gently modified from go-devel/Makefile, so all
credit goes to everyone involved in creating that file) provides for
a default pkg-descr, but keeps each port responsible for its own
patches.
No functional changes are intended other than a slightly extended
pkg-descr (not even important enough to bump PORTREVISIONs here). Any
change in behaviour is a bug.
lang/go: Add LICENSE (taken from USES=metaport)
/!\ go-1.24_10,2: Makefile warnings, please consider fixing /!\
Please set LICENSE for this port
PR: 290599
Approved by: adamw
go: Bump go124-dependent ports
Earlier I bumped the default Go to 1.24. Ports that specify a lower
version will still build with those lower version (for now), so they
don't need a bumping. Instead I'm bumping anything that (now) has go124
as a dependency.
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
*/*: Introduce versioned Go ports
- Mk/Uses/go.mk: add support for selecting Go port version in USES=go;
- Mk/bsd.default-versions.mk: add GO_DEFAULT;
- convert lang/go-devel to the master and lang/go{117,118} to slave
ports;
- add lang/go meta-port that provides go and gofmt symlinks to the
current default version.
PR: 264336
Reviewed by: ygy jwb yuri mikael drtr0jan@yandex.ru decke mat
Differential Revision: https://reviews.freebsd.org/D35346
lang/go: correct patch size mismatch
Github seems to be undecided whether
782aa42255163559c5e1c4c2d98c8f28da8cf96b.patch size should be 1111 or
1113 bytes. Give them some time to contemplate and commit this patch to
the repo for now.
PR: 258253
Reported by: Alex <marcarianalexandru@gmail.com>
Reported by: Marc Flambard <marc-pub@alluem.fr> (by email)
lang/go-devel: Convert to a slave of lang/go, apply D24122
- Convert lang/go-devel to a slave port of lang/go
- Apply D24122 (similar to r530387 for lang/go) to relax module consistency
checks in go1.14 mode
Reviewed by: mikael tobik
Differential Revision: https://reviews.freebsd.org/D24397
Reset maintainer for ports maintaned by jlaffaye@.
As per policy, based on timeouts on
* www/py-scgi: bug#244982
* textproc/discount: bug#244981
* devel/py-python-gflags: bug#244965
* lang/go: bug#244783, https://reviews.freebsd.org/D24122
* news/py-yenc: bug#239309
* irc/libircclient: bug#221567
lang/go: relax module consistency checks if vendor/modules.txt is missing
Starting from go1.14, go verifies that vendor/modules.txt matches the
requirements and replacements listed in the main module go.mod file, and it is
a hard failure if vendor/modules.txt is missing.
Relax module consistency checks and switch back to pre go1.14 behaviour if
vendor/modules.txt is missing and GO_NO_VENDOR_CHECKS=1 is set in the
environment regardless of go version requirement in go.mod.
Upstream PR: https://github.com/golang/go/issues/37948
PR: 244783
Reported by: Christopher Hall <hsw@bitmark.com>
Reviewed by: mikael swills yuri
Approved by: jlaffaye (maintainer timeout, 2 weeks)
MFH: 2020Q2
Differential Revision: https://reviews.freebsd.org/D24122
lang/go: Switch to the new bootstrap, add aarch64 support
PR: 244494
Reviewed by: tobik, mikael
Approved by: jlaffaye (maintainer timeout, >1 month)
Exp-run by: antoine
Differential Revision: https://reviews.freebsd.org/D23151
New port: lang/go-devel
A development snapshot of lang/go. This port is intended to be
used by port maintainers for testing with future Go versions.
PR: 238374
Submitted by: dg@syrec.org
- Update to 1.12.4
- Various ARM improvements [1]
- Disable building in qemu-user-static [1]
- Fix test target [1]
PR: 221297
Submitted by: Dmitri Goutnik <dg@syrec.org> [1]