notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
This referral link gives you 10% off a Fastmail.com account and gives me a discount on my Fastmail account.

Get notified when packages are built

A new feature has been added. FreshPorts already tracks package built by the FreeBSD project. This information is displayed on each port page. You can now get an email when FreshPorts notices a new package is available for something on one of your watch lists. However, you must opt into that. Click on Report Subscriptions on the right, and New Package Notification box, and click on Update.

Finally, under Watch Lists, click on ABI Package Subscriptions to select your ABI (e.g. FreeBSD:14:amd64) & package set (latest/quarterly) combination for a given watch list. This is what FreshPorts will look for.

non port: Mk/Uses/go.mk

Number of commits found: 64

Thursday, 18 Apr 2024
19:03 Rene Ladan (rene) search for other commits by this committer
Mk: unregister expired Go 1.19

Simplify a tautology in USES=go while here.
commit hash: 01dfb9b5dc65cd1db8e319fbaaa1c50ac13853b0 commit hash: 01dfb9b5dc65cd1db8e319fbaaa1c50ac13853b0 commit hash: 01dfb9b5dc65cd1db8e319fbaaa1c50ac13853b0 commit hash: 01dfb9b5dc65cd1db8e319fbaaa1c50ac13853b0 01dfb9b
Thursday, 11 Apr 2024
19:40 Mathieu Arnold (mat) search for other commits by this committer
Revert "Mk/Uses: Fix feature checks after my previous {WITH,WITHOUT}_*_PORTS
change"

This reverts commit 665b0219e541019b849fd5a1efdf032081dcf610.
commit hash: 06601466e70b8fab19fa28958e791afe0acfe124 commit hash: 06601466e70b8fab19fa28958e791afe0acfe124 commit hash: 06601466e70b8fab19fa28958e791afe0acfe124 commit hash: 06601466e70b8fab19fa28958e791afe0acfe124 0660146
17:53 Gleb Popov (arrowd) search for other commits by this committer
Mk/Uses: Fix feature checks after my previous {WITH,WITHOUT}_*_PORTS change

Test Plan:
Take cmake.mk for example. Choosing a port with USES=cmake and running
`make -V CMAKE_BUILD_TYPE` gives "Release" and
`make -V CMAKE_BUILD_TYPE WITH_DEBUG=yes` gives "Debug". However,
`make -V CMAKE_BUILD_TYPE WITH_DEBUG_PORTS=this/port` still gives "Release"
unless this change is applied.

Differential Revision: https://reviews.freebsd.org/D44748

Fixes:	d697653cffd19ddaf3cdee2589a830c72ab39777

Approved by:	bapt
commit hash: 665b0219e541019b849fd5a1efdf032081dcf610 commit hash: 665b0219e541019b849fd5a1efdf032081dcf610 commit hash: 665b0219e541019b849fd5a1efdf032081dcf610 commit hash: 665b0219e541019b849fd5a1efdf032081dcf610 665b021
Friday, 1 Mar 2024
14:45 Tijl Coosemans (tijl) search for other commits by this committer
Uses/go.mk: Support proxy servers

Pass on Go proxy server environment variables during make fetch.

Reported by:	Кирилл Варнаков <kirill@varnakov.com>
Fixes:		572f23616926 Mk/*: Build with a clean environment
commit hash: 73ce9db43191db2b2f34eaa9a03e12f80c292d72 commit hash: 73ce9db43191db2b2f34eaa9a03e12f80c292d72 commit hash: 73ce9db43191db2b2f34eaa9a03e12f80c292d72 commit hash: 73ce9db43191db2b2f34eaa9a03e12f80c292d72 73ce9db
Thursday, 29 Feb 2024
20:21 Tijl Coosemans (tijl) search for other commits by this committer
Mk/*: Build with a clean environment

Both our make and gmake use the MAKEFLAGS environment variable but the
values aren't compatible and the latest version of gmake complains about
that.  To rule out that any environment variable can cause problems like
this, add a new command SETENVI=/usr/bin/env -i that clears the
environment, and use it to run upstream build systems with a clean
environment.

Introduce a new variable WRK_ENV that contains the environment to use
with SETENVI in all targets that run upstream build commands.  Variables
that are common between CONFIGURE_ENV and MAKE_ENV could be moved to
WRK_ENV but for now it just contains a minimal environment:

HOME=${WRKDIR}: Fixes USES=elixir ports that were using the user's HOME.
OSVERSION: For cross building; determines the output of uname -K and
getosreldate(3); affects net/freebsd-telnetd for example.
PATH: Fixes USES=gem ports that were using the user's PATH.
PWD=$${PWD}: Preserve current working directory; affects USES=go ports.
TERM: To preserve colored output to terminals.
TMPDIR: For users who define that.
UNAME_*: For cross building; determines the output of uname(1); affects
lang/python* for example.

This commit deals with everything under Mk/.  Ports that have their own
targets running upstream build commands can switch to SETENVI later.

The ports tree adds its definition of ARCH to the MAKEFLAGS environment
variable, which is interpreted by sub-makes as command line arguments,
which means that any definition of ARCH in upstream makefiles was
overridden.  The following ports required fixes now that this is no
longer the case.

games/iortcw, games/q3cellshading, games/tremulous:
These use Quake 3 engine code.  Fix use of ARCH.  Reduce diff between
FreeBSD code and Linux code.

games/legesmotus:
Remove ARCH related patches.

lang/ocaml:
Patch configure script so it detects amd64 correctly.  Also make the
powerpc case consistent with the other architectures.  This also affects
other ocaml ports like devel/ocaml-ocamlbuild and math/ocaml-num that
include a Makefile.config installed by lang/ocaml.  While here, use
SETENVI in check-test target.

net/libnatpmp:
Use of upstream definition of ARCH triggers installation in PREFIX/lib64
on amd64.  Disable this.

PR:		276478
Approved by:	portmgr (antoine)
Exp-run by:	antoine
commit hash: 572f2361692640bc27729191b1267aa3fcc354a7 commit hash: 572f2361692640bc27729191b1267aa3fcc354a7 commit hash: 572f2361692640bc27729191b1267aa3fcc354a7 commit hash: 572f2361692640bc27729191b1267aa3fcc354a7 572f236
Tuesday, 20 Feb 2024
21:08 Ashish SHUKLA (ashish) search for other commits by this committer
lang/go122: New port: Go release, version 1.22

- Update Mk/* for Go 1.22

PR:		277091
commit hash: 62772751bed611b591c4500dc41ec4a323203307 commit hash: 62772751bed611b591c4500dc41ec4a323203307 commit hash: 62772751bed611b591c4500dc41ec4a323203307 commit hash: 62772751bed611b591c4500dc41ec4a323203307 6277275
Tuesday, 22 Aug 2023
18:51 Jason E. Hale (jhale) search for other commits by this committer
Mk/Uses/go.mk: Fix indentations

[pre-commit] ERROR: go.mk is not properly indented -- please use
/tmp/check_indentations-go.mk.KpLlFV8WBv/go.mk which was created using
Tools/scripts/indent_make_if.pl

Reported by:	'check_mk_indentations' pre-commit hook
commit hash: f12e09a8b7248bfd24a8d63fdddc7a3722c45a02 commit hash: f12e09a8b7248bfd24a8d63fdddc7a3722c45a02 commit hash: f12e09a8b7248bfd24a8d63fdddc7a3722c45a02 commit hash: f12e09a8b7248bfd24a8d63fdddc7a3722c45a02 f12e09a
Saturday, 12 Aug 2023
11:39 Dmitri Goutnik (dmgk) search for other commits by this committer
Mk/Uses/go.mk: Add go1.21 and go1.22-devel
commit hash: ade4a023b8d413dd4797d1ac8c0324d8ef46956f commit hash: ade4a023b8d413dd4797d1ac8c0324d8ef46956f commit hash: ade4a023b8d413dd4797d1ac8c0324d8ef46956f commit hash: ade4a023b8d413dd4797d1ac8c0324d8ef46956f ade4a023b
Friday, 4 Aug 2023
15:22 Dmitri Goutnik (dmgk) search for other commits by this committer
lang/go118: Remove outdated port

go118 is unsupported by upstream since 2023-02-14.
commit hash: fedeb2272ac06eddf4ce3f6c757c278d2e2147c3 commit hash: fedeb2272ac06eddf4ce3f6c757c278d2e2147c3 commit hash: fedeb2272ac06eddf4ce3f6c757c278d2e2147c3 commit hash: fedeb2272ac06eddf4ce3f6c757c278d2e2147c3 fedeb22
Friday, 3 Mar 2023
16:53 Dmitri Goutnik (dmgk) search for other commits by this committer
Mk/Uses/go.mk: Respect MAKE_JOBS_NUMBER

Limit GOMAXPROCS to MAKE_JOBS_NUMBER during build.

Reported by:	fuz
commit hash: 04adf6779b409e1147ba05a5dfd47e7769436b45 commit hash: 04adf6779b409e1147ba05a5dfd47e7769436b45 commit hash: 04adf6779b409e1147ba05a5dfd47e7769436b45 commit hash: 04adf6779b409e1147ba05a5dfd47e7769436b45 04adf67
Thursday, 2 Feb 2023
13:47 Dmitri Goutnik (dmgk) search for other commits by this committer
Mk/Uses/go.mk: Add go1.20 and go1.21-devel
commit hash: 7b8262c4a1e20bd6a03f4a641d652b32de6b86cd commit hash: 7b8262c4a1e20bd6a03f4a641d652b32de6b86cd commit hash: 7b8262c4a1e20bd6a03f4a641d652b32de6b86cd commit hash: 7b8262c4a1e20bd6a03f4a641d652b32de6b86cd 7b8262c
Wednesday, 14 Dec 2022
11:20 Dmitri Goutnik (dmgk) search for other commits by this committer Author: Boris Lytochkin
Mk/Uses/go.mk: Use WRKDIR as GOTMPDIR

TMPDIR could be noexec or have low quota, use WRKDIR for Go build artefacts.

Reviewed by:		dmgk
Differential revision:	https://reviews.freebsd.org/D37567
commit hash: 8cf45548259cbf8d41bfd67ae7a4e0c196829df5 commit hash: 8cf45548259cbf8d41bfd67ae7a4e0c196829df5 commit hash: 8cf45548259cbf8d41bfd67ae7a4e0c196829df5 commit hash: 8cf45548259cbf8d41bfd67ae7a4e0c196829df5 8cf4554
Monday, 31 Oct 2022
22:34 Gleb Smirnoff (glebius) search for other commits by this committer
go.mk: enable PIE build for amd64 only

So far it has been tested for amd64 only and is known to fail
to build at least for arm64.

Approved by:	bapt
commit hash: 85afc194241b73a9cdf2bf99ede41be39d6a1205 commit hash: 85afc194241b73a9cdf2bf99ede41be39d6a1205 commit hash: 85afc194241b73a9cdf2bf99ede41be39d6a1205 commit hash: 85afc194241b73a9cdf2bf99ede41be39d6a1205 85afc19
Wednesday, 26 Oct 2022
12:26 Baptiste Daroussin (bapt) search for other commits by this committer
go.mk: make sure elf generated by go respects the PIE feature

Reported by:	dmgk
commit hash: c8406c3884081be59edaca457e2533464b157175 commit hash: c8406c3884081be59edaca457e2533464b157175 commit hash: c8406c3884081be59edaca457e2533464b157175 commit hash: c8406c3884081be59edaca457e2533464b157175 c8406c3
08:22 Baptiste Daroussin (bapt) search for other commits by this committer Author: Jatin Kataria
features: Add support to build ports as PIE executables.

This will allow utilization of ASLR provided by the kernel.

Sponsored by:	Netflix
commit hash: c6e7c894c6657af42a49dfdffee5de8b8c69e422 commit hash: c6e7c894c6657af42a49dfdffee5de8b8c69e422 commit hash: c6e7c894c6657af42a49dfdffee5de8b8c69e422 commit hash: c6e7c894c6657af42a49dfdffee5de8b8c69e422 c6e7c89
Thursday, 4 Aug 2022
13:11 Dmitri Goutnik (dmgk) search for other commits by this committer
Mk/Uses/go.mk: Pass MAKE_ENV to `go mod tidy` and `go mod vendor`

With go1.19, these subsommands need to know GOCACHE location, which is
derived from XDG_CACHE_HOME. Missing XDG_CACHE_HOME breaks poudriere
user build of Go ports.

PR:		265613
Reported by:	otis, ohauer
commit hash: 998a548dca0d9a4655c9426e0306299f86a0b37a commit hash: 998a548dca0d9a4655c9426e0306299f86a0b37a commit hash: 998a548dca0d9a4655c9426e0306299f86a0b37a commit hash: 998a548dca0d9a4655c9426e0306299f86a0b37a 998a548
Wednesday, 3 Aug 2022
21:35 Dmitri Goutnik (dmgk) search for other commits by this committer
Mk/Uses/go.mk: Fix go-post-extract for legacy mode builds

USES=go may set Go version for legacy (pre-module) builds too.
commit hash: b42522214dcc52b9a932af5661d38d426a5b8adb commit hash: b42522214dcc52b9a932af5661d38d426a5b8adb commit hash: b42522214dcc52b9a932af5661d38d426a5b8adb commit hash: b42522214dcc52b9a932af5661d38d426a5b8adb b425222
Tuesday, 2 Aug 2022
18:19 Dmitri Goutnik (dmgk) search for other commits by this committer
Mk/Uses/go.mk: Update GO_VALID_VERSIONS

1.17 is out, 1.19 and 1.20-devel are in.
commit hash: 99897316ae00e8f7a69e3fee17dc8ad10733f49d commit hash: 99897316ae00e8f7a69e3fee17dc8ad10733f49d commit hash: 99897316ae00e8f7a69e3fee17dc8ad10733f49d commit hash: 99897316ae00e8f7a69e3fee17dc8ad10733f49d 9989731
Saturday, 9 Jul 2022
18:04 Dmitri Goutnik (dmgk) search for other commits by this committer
Mk/Uses/go.mk: Add GOAMD64 to the GO_ENV

This passes GOAMD64 to the build and test targets.
commit hash: 42fd268cb590ab1d7668d5a51b7533067664c699 commit hash: 42fd268cb590ab1d7668d5a51b7533067664c699 commit hash: 42fd268cb590ab1d7668d5a51b7533067664c699 commit hash: 42fd268cb590ab1d7668d5a51b7533067664c699 42fd268
Wednesday, 22 Jun 2022
23:12 Dmitri Goutnik (dmgk) search for other commits by this committer
Mk/Uses/go.mk: Do not append to EXTRACT_ONLY

Appending to EXTRACT_ONLY may re-add files that were already excluded by
the port. Instead, set EXTRACT_ONLY only if it was not already defined
and let the port handle it otherwise.
commit hash: ba923ff9e3a65d9aa6c711a65d6469d1791c9452 commit hash: ba923ff9e3a65d9aa6c711a65d6469d1791c9452 commit hash: ba923ff9e3a65d9aa6c711a65d6469d1791c9452 commit hash: ba923ff9e3a65d9aa6c711a65d6469d1791c9452 ba923ff
Monday, 6 Jun 2022
18:27 Dmitri Goutnik (dmgk) search for other commits by this committer
*/*: Pass lang/go* and Mk/Uses/go.mk maintainership

Pass maintainership to the new Go team.

Approved by:	ygy (maintainer, by email)
commit hash: a3ead318049980643a3ffe91fccf119a5c0a8da3 commit hash: a3ead318049980643a3ffe91fccf119a5c0a8da3 commit hash: a3ead318049980643a3ffe91fccf119a5c0a8da3 commit hash: a3ead318049980643a3ffe91fccf119a5c0a8da3 a3ead31
18:19 Dmitri Goutnik (dmgk) search for other commits by this committer
*/*: 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
commit hash: 3012ca2179ceb0e389fbeb30a66f9fe60a3cf5a1 commit hash: 3012ca2179ceb0e389fbeb30a66f9fe60a3cf5a1 commit hash: 3012ca2179ceb0e389fbeb30a66f9fe60a3cf5a1 commit hash: 3012ca2179ceb0e389fbeb30a66f9fe60a3cf5a1 3012ca2
Friday, 13 May 2022
18:38 Dmitri Goutnik (dmgk) search for other commits by this committer
Mk/Uses/go.mk: Block modules download when CLEAN_FETCH_ENV is defined

Additionally, stop overriding post-fetch and post-extract targets.

PR:		258474
Differential Revision:	https://reviews.freebsd.org/D35145
commit hash: d71b4ca7752864918dea9b92e7f65c15deb3d290 commit hash: d71b4ca7752864918dea9b92e7f65c15deb3d290 commit hash: d71b4ca7752864918dea9b92e7f65c15deb3d290 commit hash: d71b4ca7752864918dea9b92e7f65c15deb3d290 d71b4ca
Monday, 9 May 2022
11:15 Dmitri Goutnik (dmgk) search for other commits by this committer
Mk/Uses/go.mk: Try to tidy up go.sum after fetch, fix EXTRACT_ONLY

Make a best effort attempt (without network access) to add missing
go.sum entries using local module cache prepared by the fetch stage.

Set EXTRACT_ONLY dynamically from DISTFILES, repair
USE_{GITHUB,GITLAB}.

PR:		258210
PR:		262981
PR:		263866
commit hash: 6e236e18965327f6100473770e4edb78c94fb1d4 commit hash: 6e236e18965327f6100473770e4edb78c94fb1d4 commit hash: 6e236e18965327f6100473770e4edb78c94fb1d4 commit hash: 6e236e18965327f6100473770e4edb78c94fb1d4 6e236e1
Saturday, 7 May 2022
18:43 Dmitri Goutnik (dmgk) search for other commits by this committer
Mk/Uses/go.mk: Revert part of 4e2913317

Revert module cache revalidation in post-fetch (`go mod verify`), it
breaks non-root poudriere builds.

`go mod verify` needs read/write access to the GOMODCACHE and because
extract stage runs fetch stage again but under a restricted user, `go
mod verify` fails with a "permission denied" error.
commit hash: ef7fee403f7f9ac3a73be03891bb61413c18ca1c commit hash: ef7fee403f7f9ac3a73be03891bb61413c18ca1c commit hash: ef7fee403f7f9ac3a73be03891bb61413c18ca1c commit hash: ef7fee403f7f9ac3a73be03891bb61413c18ca1c ef7fee4
11:37 Dmitri Goutnik (dmgk) search for other commits by this committer
Mk/Uses/go.mk: Omit version control information

Disable embedding of version control information [1] in binaries built
by go1.18 and later.

[1] https://tip.golang.org/doc/go1.18#go-version

PR:		263390
commit hash: f26bf85ff91bc418bf332b23420e4fa87dfb9a53 commit hash: f26bf85ff91bc418bf332b23420e4fa87dfb9a53 commit hash: f26bf85ff91bc418bf332b23420e4fa87dfb9a53 commit hash: f26bf85ff91bc418bf332b23420e4fa87dfb9a53 f26bf85
Thursday, 5 May 2022
11:39 Dmitri Goutnik (dmgk) search for other commits by this committer
Mk/Uses/go.mk: Be more lenient about vendoring

Add flag to `go mod vendor` instructing it to proceed despite errors
encountered while loading packages. This will allow build to continue
(with warnings) when e.g. upstream ships outdated go.sum with missing
checksums for some packages. Invalid checksums are still security
errors [1].

While here, add additional module cache revalidation after fetching
dependencies.

[1] https://go.dev/ref/mod#authenticating
commit hash: 4e29133174dbb05c197b8398edd3831da9e5994f commit hash: 4e29133174dbb05c197b8398edd3831da9e5994f commit hash: 4e29133174dbb05c197b8398edd3831da9e5994f commit hash: 4e29133174dbb05c197b8398edd3831da9e5994f 4e29133
Wednesday, 4 May 2022
12:30 Dmitri Goutnik (dmgk) search for other commits by this committer
Mk/Uses/go.mk: Do not insist on always pulling go.mod and distfile from GOPROXY

Some Go packages are not listed on pkg.go.dev (usually because their
versioning scheme does not satisfy Go requirements) and, as a
consequence, are not accessible through proxy.golang.org.

Instead of resorting to hacks with pseudo-versions and/or enumerating
dependencies manually with modules2tuple, support fetching go.mod and
distfile from the usual places using DISTFILES mechanism. This will
allow bypassing GOPROXY for go.mod and the distribution archive, but
will still use it for fetching dependencies (with GO_MODULE).
commit hash: d592a0f851d5e09f08eb62f0e7342b3cc69d9ad1 commit hash: d592a0f851d5e09f08eb62f0e7342b3cc69d9ad1 commit hash: d592a0f851d5e09f08eb62f0e7342b3cc69d9ad1 commit hash: d592a0f851d5e09f08eb62f0e7342b3cc69d9ad1 d592a0f
Sunday, 24 Apr 2022
10:00 Tobias C. Berner (tcberner) search for other commits by this committer
framework: cleanup conditional-indentations in Mk/

Run Tools/scripts/indent_make_if.pl on all of Mk.

These white space changes contribute greatly to the readability of those files.
As we have a version control system, finding out the reasons for the changes
prior to these white space changes is still easily possible

Differential Revision:	https://reviews.freebsd.org/D35024
Reviewed by:		portmgr (rene, bapt)
commit hash: aa2539679084872cd84112e9df6bfee571570623 commit hash: aa2539679084872cd84112e9df6bfee571570623 commit hash: aa2539679084872cd84112e9df6bfee571570623 commit hash: aa2539679084872cd84112e9df6bfee571570623 aa25396
Tuesday, 25 Jan 2022
19:51 Po-Chuan Hsieh (sunpoet) search for other commits by this committer
Mk/Uses/go.mk: Fix typo
commit hash: 43ab76a27c88670552714ef52f6bc74e5cc98fe2 commit hash: 43ab76a27c88670552714ef52f6bc74e5cc98fe2 commit hash: 43ab76a27c88670552714ef52f6bc74e5cc98fe2 commit hash: 43ab76a27c88670552714ef52f6bc74e5cc98fe2 43ab76a
Sunday, 7 Nov 2021
01:26 Guangyuan Yang (ygy) search for other commits by this committer
Mk/Uses/go.mk: fix gomod-clean target when lang/go is not installed

make distclean target will break when lang/go is not installed. This
provides an informational feedback and skips the gomod-clean target if
go executable is not available.

PR:		258359
MFH:		2021Q4
Submitted by:	Rin Morningstar <ports.maintainer@evilphi.com>
Reviewed by:	dmgk
Differential Revision:	https://reviews.freebsd.org/D32054
commit hash: f76516f11076cb293ce87bccfc37797d82844063 commit hash: f76516f11076cb293ce87bccfc37797d82844063 commit hash: f76516f11076cb293ce87bccfc37797d82844063 commit hash: f76516f11076cb293ce87bccfc37797d82844063 f76516f
Tuesday, 21 Sep 2021
15:57 Dmitri Goutnik (dmgk) search for other commits by this committer
Mk/Uses/go.mk: Resign maintainership
commit hash: e90c51255cc00fd87db85f52e0f447260a4d4e72 commit hash: e90c51255cc00fd87db85f52e0f447260a4d4e72 commit hash: e90c51255cc00fd87db85f52e0f447260a4d4e72 commit hash: e90c51255cc00fd87db85f52e0f447260a4d4e72 e90c512
Thursday, 20 May 2021
16:00 Dmitri Goutnik (dmgk) search for other commits by this committer Author: Serhii (Sergey) Kozlov
Mk/Uses/go.mk: Add -trimpath to GO_BUILDFLAGS

Differential Revision:	https://reviews.freebsd.org/D30321
commit hash: 475a23ad78aa18be05071e841fc82894711c085c commit hash: 475a23ad78aa18be05071e841fc82894711c085c commit hash: 475a23ad78aa18be05071e841fc82894711c085c commit hash: 475a23ad78aa18be05071e841fc82894711c085c 475a23a
Friday, 16 Apr 2021
21:19 Yuri Victorovich (yuri) search for other commits by this committer
Mk/Uses/go.mk: Allow ports to have additional distfiles

Some ports need to perform extra build steps for which they need additional
distfiles.

This commit makes go.mk to preserve MASTER_SITES,DISTFILES,EXTRACT_ONLY set by
port's Makefile.

PR:		255085
Approved by:	dmgk (maintainer)
commit hash: b77a05bb44c206268971d14beb92fb9cf1d28842 commit hash: b77a05bb44c206268971d14beb92fb9cf1d28842 commit hash: b77a05bb44c206268971d14beb92fb9cf1d28842 commit hash: b77a05bb44c206268971d14beb92fb9cf1d28842 b77a05b
Tuesday, 6 Apr 2021
14:27 Mathieu Arnold (mat) search for other commits by this committer
framework: Remove $FreeBSD$

Where appropriate fiddle with a few other things.
commit hash: 5d33e045968104ac678d8b4b4ec1e8956bbf68e0 commit hash: 5d33e045968104ac678d8b4b4ec1e8956bbf68e0 commit hash: 5d33e045968104ac678d8b4b4ec1e8956bbf68e0 commit hash: 5d33e045968104ac678d8b4b4ec1e8956bbf68e0 5d33e04
Wednesday, 24 Feb 2021
22:39 dmgk search for other commits by this committer
Mk/Uses/go.mk: Escape module names

Escape module names according to the GOPROXY protocol [1].

"To avoid ambiguity when serving from case-insensitive file systems,
the $module and $version elements are case-encoded by replacing every
uppercase letter with an exclamation mark followed by the corresponding
lower-case letter."

[1] https://golang.org/ref/mod#module-proxy

Reported by:	yuri
Original commitRevision:566511 
Monday, 22 Feb 2021
19:17 dmgk search for other commits by this committer
Mk/Uses/go.mk: Disable network access in extract and test targets.

Reported by:	Andrew Gierth <andrew at tao11.riddles.org.uk>
Original commitRevision:566324 
Saturday, 20 Feb 2021
23:30 dmgk search for other commits by this committer
Mk/Uses/go.mk: Work around symlink creation issue in Poudriere

PR:		253713
Reported by:	Dries Michiels <driesm.michiels@gmail.com>
Reviewed by:	otis
Original commitRevision:566197 
Friday, 19 Feb 2021
13:12 dmgk search for other commits by this committer
Mk/Uses/go.mk: Add support for using Go for dependency management

Add support for offloading dependency management to Go using `go mod download`.

Reviewed by:	swills
Differential Revision:	https://reviews.freebsd.org/D28184
Original commitRevision:566063 
Friday, 8 Jan 2021
14:21 dmgk search for other commits by this committer
Mk/Uses/go.mk: Explicitly set modules-aware mode depending on "modules" argument

Until now, go.mk relied on default Go behavior of switching to modules-aware
mode only in the presence of go.mod and building in legacy ("GOPATH") mode
otherwise. This changes with go1.16 [1] which flips defaults to always build in
modules-aware mode and needs an explicit GO111MODULE=off to turn modules off.

Stop relying on Go defaults and set build mode explicitly depending on
"modules" argument in USES=go.

[1] https://github.com/golang/go/issues/41330
Original commitRevision:560773 
Thursday, 12 Nov 2020
08:15 dch search for other commits by this committer
Ensure go modules cannot fetch missing modules via network

Notes from go help modules:

If GOPROXY is set to the string "direct", downloads use a direct connection to
source control servers. Setting GOPROXY to "off" disallows downloading modules
from any source. Otherwise, GOPROXY is expected to be list of module proxy URLs
separated by either comma (,) or pipe (|) characters, which control error
fallback behavior. For each request, the go command tries each proxy in
sequence. If there is an error, the go command will try the next proxy in the
list if the error is a 404 or 410 HTTP response or if the current proxy is
followed by a pipe character, indicating it is safe to fall back on any error.

The GOPRIVATE and GONOPROXY environment variables allow bypassing
the proxy for selected modules. See 'go help module-private' for details.

No matter the source of the modules, the go command checks downloads against
known checksums, to detect unexpected changes in the content of any specific
module version from one day to the next. This check first consults the current
module's go.sum file but falls back to the Go checksum database, controlled by
the GOSUMDB and GONOSUMDB environment variables. See 'go help module-auth'
for details.

Reviewed by:	dmgk
Sponsored by:	SkunkWerks, GmbH
Differential Revision:	https://reviews.freebsd.org/D26860
Original commitRevision:554936 
Tuesday, 14 Apr 2020
12:52 dmgk search for other commits by this committer
Mk/Uses/go.mk: Fix gomod-vendor-diff when there are 3 or fewer items in the
GH_TUPLE

'make gomod-vendor-diff' currently doesn't work properly when modules2tuple
doesn't return the first empty line, when 3 or fewer items are in the GH_TUPLE
list.

PR:		245617
Submitted by:	yuri
Original commitRevision:531678 
Thursday, 2 Apr 2020
17:39 dmgk search for other commits by this committer
Mk/Uses/go.mk: Set GO_NO_VENDOR_CHECKS=1

Set GO_NO_VENDOR_CHECKS=1 to signal lang/go to relax vendor checks during ports
build.

PR:		244783
Reported by:	Christopher Hall <hsw@bitmark.com>
Reviewed by:	mikael swills yuri
MFH:		2020Q2
Differential Revision:	https://reviews.freebsd.org/D24122
Original commitRevision:530388 
Sunday, 8 Mar 2020
13:30 dmgk search for other commits by this committer
Mk/Uses/go.mk: Add the gomod-vendor-diff target

Add the 'gomod-vendor-diff' target that tells the user what changes are needed
in GH_TUPLE. This is in addition to the existing 'gomod-vendor' target that
shows the user the whole new GH_TUPLE.

PR:		244660
Submitted by:	yuri
Original commitRevision:528031 
Monday, 2 Mar 2020
13:58 dmgk search for other commits by this committer
Mk/Uses/go.mk: Avoid pollution of Go module cache with modules downloaded by
gomod-vendor

Use module cache local to the WRKDIR and add the -modcacherw flag (available in
go1.14 [1, 2]) to instruct go mod vendor to leave directories in the module
cache read-write instead of making them unwritable.

[1] https://github.com/golang/go/issues/31481
[2] https://go-review.googlesource.com/c/go/+/202079/

Reviewed by:	swills
Differential Revision:	https://reviews.freebsd.org/D23063
Original commitRevision:527631 
13:47 dmgk search for other commits by this committer
Mk/Uses/go.mk: Revert r517706, switch GO_PORT to lang/go on aarch64

aarch64 support has landed in lang/go, switch default GO_PORT from
lang/go-devel to lang/go.
Original commitRevision:527629 
Thursday, 20 Feb 2020
12:15 dmgk search for other commits by this committer
Mk/Uses/go.mk: Add GO_TESTTARGET and provide default do-test

Add GO_TESTTARGET defaulting to `./...` (the current package and all
subpackages) and create do-test target unless already provided by port's
Makefile.

Also, while here

- remove GO_WRKDIR_SRC - it is not used by any port anymore
- sync GO_PKGNAME and GO_TARGET descriptions with Porter's Handbook

Reviewed by:	tobik
Differential Revision:	https://reviews.freebsd.org/D22412
Original commitRevision:526567 
Wednesday, 25 Dec 2019
18:10 dmgk search for other commits by this committer
Mk/Uses/go.mk: Warn if Go is not installed for gomod-vendor

PR:		242872
Reviewed by:	yuri
Differential Revision:	https://reviews.freebsd.org/D22923
Original commitRevision:520881 
Tuesday, 3 Dec 2019
11:16 antoine search for other commits by this committer
Revert r517831, FOO_TEST_TARGET is reserved for option helpers

With hat:	portmgr
Original commitRevision:518928 
Sunday, 17 Nov 2019
16:19 dmgk search for other commits by this committer
Mk/Uses/go.mk: Add GO_TEST_TARGET and provide default do-test

Add GO_TEST_TARGET defaulting to `./...` (the current package and all
subpackages) and create do-test target unless already provided by port's
Makefile.

In many cases this would allow us to remove explicit do-test and rely on
defaults provided by ports framework for testing.

Also, while here

- remove GO_WRKDIR_SRC - it is not used anywhere anymore
- sync GO_PKGNAME and GO_TARGET descriptions with Porter's Handbook

Reviewed by:	tobik
Approved by:	tz (mentor, implicit)
Differential Revision:	https://reviews.freebsd.org/D22412
Original commitRevision:517831 
Saturday, 16 Nov 2019
12:39 dmgk search for other commits by this committer
Mk/Uses/go.mk: Omit symbol table and debug information by default

PR:		233335
Reported by:	yuri
Reviewed by:	0mp, tobik
Approved by:	araujo (mentor)
Differential Revision:	https://reviews.freebsd.org/D21730
Original commitRevision:517743 
Friday, 15 Nov 2019
22:47 dmgk search for other commits by this committer
Mk/Uses/go.mk: Enable binary package building for Go ports on aarch64

Tentatively enable package building for Go ports on aarch64 to catch
regressions early.

Reviewed by:	tobik, Mikael Urankar <mikael.urankar@gmail.com>
Approved by:	tz (mentor, implicit)
Differential Revision:	https://reviews.freebsd.org/D22385
Original commitRevision:517706 
Monday, 16 Sep 2019
20:55 dmgk search for other commits by this committer
Change my maintainer email

Approved by:	tz (mentor), portmgr (adamw)
Differential Revision:	https://reviews.freebsd.org/D21677
Original commitRevision:512187 
Saturday, 14 Sep 2019
08:20 tobik search for other commits by this committer
Mk/Uses/go.mk: Allow naming output executable in GO_TARGET

- Allow GO_TARGET to be specified as a tuple in the form package:output
- Rework build/install targets

PR:		240535
Submitted by:	Dmitri Goutnik <dg@syrec.org>
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D21562
Original commitRevision:512001 
Tuesday, 13 Aug 2019
17:23 tobik search for other commits by this committer
Mk/Uses/go.mk: Add gomod-vendor helper target

For USES=go:modules ports it simplifies generating GH_TUPLE by
calling modules2tuple in the right directory etc.

Submitted by:	Dmitri Goutnik <dg@syrec.org> (maintainer)
Differential Revision:	https://reviews.freebsd.org/D21246
Original commitRevision:508838 
Thursday, 1 Aug 2019
06:25 tobik search for other commits by this committer
Mk/Uses/go.mk: Drop PLIST_SUB for GO_PKGNAME

GO_PKGNAME defaults to ${PORTNAME}.  As a result it is often too
general and can produce bad results with make makeplist.  For
example, in mail/aerc it produces bogus entries like

man/man5/%%GO_PKGNAME%%-sendmail.5.gz

since GO_PKGNAME=aerc there.

Having it in PLIST_SUB was only useful for Go libraries which we
no longer support.  Only 2 ports use it currently but do not really
need to and are easily fixed.

Approved by:	dg@syrec.org (maintainer)
Differential Revision:	https://reviews.freebsd.org/D21114
Original commitRevision:507751 
Friday, 26 Jul 2019
07:15 tobik search for other commits by this committer
Mk/Uses/go.mk: Default to "." instead of PORTNAME

If neither GO_PKGNAME or GO_TARGET are set explicitly, go install
tries to install a package named ${PORTNAME} which is almost always
wrong.  This forces Go ports to set GO_PKGNAME or GO_TARGET although
their value is often redundant.

Update do-build to default to the "." package instead ("the package
in the current directory") and teach do-install to install the "."
package.  In many cases, this removes the need to explicitly set
GO_PKGNAME and GO_TARGET making USES=go:modules alone sufficient
for simpler ports.

This is a backward compatible change.

- Assign maintainership to Dmitri

Submitted by:	Dmitri Goutnik <dg@syrec.org>
Approved by:	jlaffaye (maintainer timeout, ~3 weeks)
Differential Revision:	https://reviews.freebsd.org/D20813
Original commitRevision:507340 
Saturday, 29 Jun 2019
03:51 tobik search for other commits by this committer
Convert all Go ports to USES=go

This allows for port testing with lang/go-devel via GO_PORT, setting
up the Go build environment in a single place, and is step one in
simplifying Go ports that often define too complicated do-build
targets themselves.

USES=go gains new arguments 'run' to add lang/go to RUN_DEPENDS and
'no_targets' for ports with composite builds that call 'go' themselves
and do not need the do-build/do-install targets of USES=go.

PR:		238849
Submitted by:	dg@syrec.org (also D20745)
Reviewed by:	mat, tobik
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D20746
Original commitRevision:505321 
Sunday, 23 Jun 2019
11:50 tobik search for other commits by this committer
Mk/Uses/go.mk: Allow overriding the Go port

This is intended to be used for regression testing of USES=go ports
with lang/go-devel.

Submitted by:	dg@syrec.org
Differential Revision:	https://reviews.freebsd.org/D20570
Original commitRevision:504942 
Wednesday, 24 Apr 2019
16:25 jlaffaye search for other commits by this committer
Improve support for ARM in go.mk
- Set GOARM value according to current ARCH
- Set CGO_ENABLED

Submitted by:	Dmitri Goutnik <dg@syrec.org>
Differential Revision:	D19892
Original commitRevision:499862 
Monday, 8 Apr 2019
16:46 tobik search for other commits by this committer
Mk/Uses/go.mk: Remove support for installing Go libs and sources

All ports that depend on it have been removed in r497504.

- Restrict build to only main packages by adding -buildmode=exe to
  GO_BUILDFLAGS
- Add initial support for building in module-aware mode

PR:		236509
Submitted by:	Dmitri Goutnik <dg@syrec.org>
Reviewed by:	0mp, jlaffaye, tobik
Approved by:	jlaffaye (maintainer)
Differential Revision:	https://reviews.freebsd.org/D19570
Original commitRevision:498386 
Saturday, 25 Aug 2018
17:26 jlaffaye search for other commits by this committer
Add GO_BUILDFLAGS variable to Uses/go.mk

PR:		225812
Submitted by:	David O'Rourke <dor.bsd@xm0.uk>
Original commitRevision:478076 
Sunday, 11 Mar 2018
02:24 woodsb02 search for other commits by this committer
Allow USES=go ports to override make targets & include <bsd.port.pre.mk>

Prior to this change, if a port had:
- USES=go.mk,
- .include <bsd.port.pre.mk>, and
- overrode a make target (e.g. post-extract:)

then the following warnings were produced when invoking make on the port:
  make: "/usr/local/poudriere/ports/default/CATEGORY/PORT/Makefile" line XX:
warning: duplicate script for target "post-extract" ignored
  make: "/usr/local/poudriere/ports/default/Mk/Uses/go.mk" line 68: warning:
using previous script for "post-extract" defined here

This change fixes this issue by wrapping the definition of make targets
in a separate once-only !defined wrapper which is blocked until post.mk.
This concept was copied from Mk/Uses/python.mk.

PR:		224948
Submitted by:	woodsb02
Approved by:	jlaffaye (maintainer)
Original commitRevision:464138 
Friday, 22 Apr 2016
12:40 mat search for other commits by this committer
Move lang/go/files/bsd.go.mk to USES=go.

Reviewed by:	bapt
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D6057
Original commitRevision:413776 

Number of commits found: 64