The pkg-plist and bsd.go.mk have been unnecessarily hardcoded to "freebsd". The attached patch enhances the PLIST_SUB variable so that it will build out of the box on DragonFly. I've been carrying an equivalent patch in DPorts, but every release of go completely breaks it, so it would be great to get this adjustment in. If approved, I can commit it. I'm also going to attach a poudriere log to prove the port still builds fine on FreeBSD.
Created attachment 160887 [details] Patch lang/go to enhance pkg-plist and bsd.go.mk to support DragonFly Strange, the patch didn't attach when I created the PR.
Created attachment 160888 [details] Poudriere build log Attaching poudriere log to show port still works on FreeBSD after patch applied.
A commit references this bug: Author: marino Date: Thu Sep 10 22:57:48 UTC 2015 New revision: 396626 URL: https://svnweb.freebsd.org/changeset/ports/396626 Log: lang/go: adjust PLIST_SUB and bsd.go.mk to support DragonFly Change hardcoded "freebsd" to variable (OPSYS:tl) to allow DragonFly to build without patches. PR: 203006 Approved by: maintainer Changes: head/lang/go/Makefile head/lang/go/files/bsd.go.mk head/lang/go/pkg-plist