Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153173917
D35346.id106455.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
24 KB
Referenced Files
None
Subscribers
None
D35346.id106455.diff
View Options
Index: Mk/Uses/go.mk
===================================================================
--- Mk/Uses/go.mk
+++ Mk/Uses/go.mk
@@ -3,9 +3,10 @@
#
# Feature: go
# Usage: USES=go
-# Valid ARGS: (none), modules, no_targets, run
+# Valid ARGS: (none), N.NN, devel, modules, no_targets, run
#
-# (none) Setup GOPATH and build in GOPATH mode.
+# (none) Setup GOPATH and build in GOPATH mode using default Go version.
+# N.NN | devel Specify Go version
# modules If the upstream uses Go modules, this can be set to build
# in modules-aware mode.
# no_targets Indicates that Go is needed at build time as a part of
@@ -52,25 +53,34 @@
# GO_TESTFLAGS
# Additional build arguments to be passed to the `go test` command
#
-# GO_PORT
-# The Go port to use. By default this is lang/go but can be set
-# to lang/go-devel in make.conf for testing with future Go versions.
-#
-# This variable must not be set by individual ports!
-#
# MAINTAINER: ports@FreeBSD.org
.if !defined(_INCLUDE_USES_GO_MK)
_INCLUDE_USES_GO_MK= yes
-. if !empty(go_ARGS:Nmodules:Nno_targets:Nrun)
-IGNORE= USES=go has invalid arguments: ${go_ARGS:Nmodules:Nno_targets:Nrun}
+# When adding a version, please keep the comment in
+# Mk/bsd.default-versions.mk in sync.
+GO_VALID_VERSIONS= 1.17 1.18 devel
+
+# Check arguments sanity
+. if !empty(go_ARGS:N[1-9].[0-9][0-9]:Ndevel:Nmodules:Nno_targets:Nrun)
+IGNORE= USES=go has invalid arguments: ${go_ARGS:N[1-9].[0-9][0-9]:Ndevel:Nmodules:Nno_targets:Nrun}
. endif
+# Parse Go version
+GO_VERSION= ${go_ARGS:Nmodules:Nno_targets:Nrun:C/^$/${GO_DEFAULT}/}
+. if empty(GO_VALID_VERSIONS:M${GO_VERSION})
+IGNORE?= USES=go has invalid version number
+. endif
+. if ${GO_VERSION} == devel
+GO_SUFFIX= -devel
+. else
+GO_SUFFIX= ${GO_VERSION:S/.//}
+. endif
+GO_PORT= lang/go${GO_SUFFIX}
+
# Settable variables
-GO_PORT?= lang/go
-
. if empty(GO_PKGNAME)
. if !empty(GH_SUBDIR)
GO_PKGNAME= ${GH_SUBDIR:S|^src/||}
@@ -89,7 +99,7 @@
GO_BUILDFLAGS+= -ldflags=-s
. endif
GO_TESTFLAGS+= -v
-. if ${GO_PORT} != lang/go117
+. if ${GO_VERSION} != 1.17
GO_BUILDFLAGS+= -buildvcs=false
GO_TESTFLAGS+= -buildvcs=false
. endif
@@ -107,7 +117,7 @@
# Read-only variables
-GO_CMD= ${LOCALBASE}/bin/go
+GO_CMD= ${LOCALBASE}/bin/go${GO_SUFFIX}
GO_WRKDIR_BIN= ${WRKDIR}/bin
GO_ENV+= CGO_ENABLED=${CGO_ENABLED} \
CGO_CFLAGS="${CGO_CFLAGS}" \
@@ -154,6 +164,7 @@
. endif
BUILD_DEPENDS+= ${GO_CMD}:${GO_PORT}
+BINARY_ALIAS+= go=go${GO_SUFFIX} gofmt=gofmt${GO_SUFFIX}
. if ${go_ARGS:Mrun}
RUN_DEPENDS+= ${GO_CMD}:${GO_PORT}
. endif
Index: Mk/bsd.default-versions.mk
===================================================================
--- Mk/bsd.default-versions.mk
+++ Mk/bsd.default-versions.mk
@@ -56,6 +56,8 @@
GL_DEFAULT?= mesa-libs
# Possible values: 7, 8, 9, agpl
GHOSTSCRIPT_DEFAULT?= agpl
+# Possible values: 1.17, 1.18, devel
+GO_DEFAULT?= 1.18
# Possible values: 6, 6-nox11, 7, 7-nox11
IMAGEMAGICK_DEFAULT?= 7
# Possible values: 7, 8, 11, 17, 18
Index: biology/ncbi-entrez-direct/Makefile
===================================================================
--- biology/ncbi-entrez-direct/Makefile
+++ biology/ncbi-entrez-direct/Makefile
@@ -75,7 +75,7 @@
do-build:
@${CP} ${FILESDIR}/modules.txt ${WRKSRC}/cmd/vendor
@${CP} -R ${WRKSRC}/eutils ${WRKSRC}/cmd/vendor
- @cd ${WRKSRC}/cmd && ${FILESDIR}/build-cmd
+ @cd ${WRKSRC}/cmd && ${SETENV} ${MAKE_ENV} ${FILESDIR}/build-cmd
do-install:
cd ${WRKSRC} && ${INSTALL_SCRIPT} ${SCRIPTS} ${STAGEDIR}${PREFIX}/bin
Index: devel/gocheese/Makefile
===================================================================
--- devel/gocheese/Makefile
+++ devel/gocheese/Makefile
@@ -18,7 +18,7 @@
bin/pyshop2packages.sh
do-build:
- @cd ${WRKSRC} ; ${ENV} GOPATH=${WRKSRC} GO111MODULE=off go build -ldflags="-s -w" -o gocheese go.cypherpunks.ru/gocheese/v2
+ @cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} GO111MODULE=off ${GO_CMD} build -ldflags="-s -w" -o gocheese go.cypherpunks.ru/gocheese/v2
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
Index: devel/please/Makefile
===================================================================
--- devel/please/Makefile
+++ devel/please/Makefile
@@ -11,8 +11,7 @@
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go \
- bash:shells/bash \
+BUILD_DEPENDS= bash:shells/bash \
ca_root_nss>0:security/ca_root_nss \
git:devel/git \
protoc:devel/protobuf
Index: lang/go-devel/Makefile
===================================================================
--- lang/go-devel/Makefile
+++ lang/go-devel/Makefile
@@ -1,30 +1,128 @@
# Created by: Devon H. O'Dell <devon.odell@gmail.com>
-PORTVERSION= g20220319
-# Always set PORTREVISION and PORTEPOCH explicitly as otherwise they are inherited from lang/go
-PORTREVISION= 0
-PORTEPOCH= 0
-MASTER_SITES= https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap \
+PORTNAME?= go-devel
+DISTVERSION?= g20220319
+PORTREVISION?= 0
+CATEGORIES= lang
+MASTER_SITES?= https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap \
LOCAL/dmgk:bootstrap
-PKGNAMESUFFIX= -devel
-DISTFILES= go-${OPSYS:tl}-${GOARCH_${ARCH}}${GOARM_${ARCH}}-${BOOTSTRAP_TAG}.tar.xz:bootstrap
+DISTFILES?= go-${OPSYS:tl}-${GOARCH_${ARCH}}${GOARM_${ARCH}}-${BOOTSTRAP_TAG}.tar.xz:bootstrap
-# Avoid conflicting patch files
-PATCHFILES=
+MAINTAINER= ygy@FreeBSD.org
+COMMENT?= Go programming language (development version)
-COMMENT= Go programming language (development version)
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+.ifdef QEMU_EMULATING
+IGNORE= fails to build with qemu-user-static
+.endif
+
+ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386
+
+RUN_DEPENDS= ${RUN_DEPENDS_${ARCH}}
+# ld.bfd from devel/binutils is needed for working cgo on aarch64
+RUN_DEPENDS_aarch64= binutils>0:devel/binutils
+
+TEST_DEPENDS= ${TEST_DEPENDS_${ARCH}}
+# ld.bfd from devel/binutils is needed for working cgo on aarch64
+TEST_DEPENDS_aarch64= binutils>0:devel/binutils
+
+USES= cpe shebangfix
+
+CPE_VENDOR= golang
+
+.ifndef MASTERDIR
USE_GITHUB= yes
GH_ACCOUNT= golang
+GH_PROJECT= go
GH_TAGNAME= 4aa1efed4853ea067d665a952eee77c52faac774
+.endif
-CONFLICTS_INSTALL= go
+SHEBANG_FILES= misc/wasm/go_js_wasm_exec \
+ src/net/http/cgi/testdata/test.cgi
+SHEBANG_GLOB= *.bash *.pl *.sh
-MASTERDIR= ${.CURDIR}/../go
-PATCHDIR= ${.CURDIR}/files
-DISTINFO_FILE= ${.CURDIR}/distinfo
+# Upstream archive contains files with UTF-8 names
+EXTRACT_CMD= ${SETENV} LC_ALL=en_US.UTF-8 ${TAR}
+
+.ifndef GH_TAGNAME
+.endif
+
+OPTIONS_DEFINE_i386= SOFTFLOAT
+SOFTFLOAT_DESC= Use soft float on non-SSE2 processors (Pentium 4 and older)
+SOFTFLOAT_VARS= GO386=softfloat
+
+BOOTSTRAP_TAG= go1.17.9
+GO_SUFFIX= ${PORTNAME:S/go//}
+
+GOARCH_aarch64= arm64
+GOARCH_amd64= amd64
+GOARCH_armv6= arm
+GOARCH_armv7= arm
+GOARCH_i386= 386
+GOARM_armv6= 6
+GOARM_armv7= 7
post-extract:
@[ -f ${WRKSRC}/VERSION ] || ${ECHO_CMD} "devel +${GH_TAGNAME}" > ${WRKSRC}/VERSION
-.include "${MASTERDIR}/Makefile"
+post-patch:
+ @${REINPLACE_CMD} -e 's|type -ap |type |' ${WRKSRC}/src/make.bash
+ @${REINPLACE_CMD} -e 's|^if ulimit -T|false \&\& &|' ${WRKSRC}/src/run.bash
+
+pre-build:
+ # Check that the running kernel has COMPAT_FREEBSD11 required by lang/go{,-devel} post-ino64
+ @${SETENV} CC="${CC}" OPSYS="${OPSYS}" OSVERSION="${OSVERSION}" WRKDIR="${WRKDIR}" \
+ ${SH} ${SCRIPTSDIR}/rust-compat11-canary.sh
+
+do-build:
+ cd ${WRKSRC}/src ; ${SETENV} \
+ XDG_CACHE_HOME=${WRKDIR} \
+ GOROOT_BOOTSTRAP=${WRKDIR}/go-${OPSYS:tl}-${GOARCH_${ARCH}}${GOARM_${ARCH}}-bootstrap \
+ GOROOT=${WRKSRC} \
+ GOROOT_FINAL=${PREFIX}/go${GO_SUFFIX} \
+ GOBIN= \
+ GOOS=${OPSYS:tl} \
+ GOARCH=${GOARCH_${ARCH}} \
+ GO386=${GO386} \
+ GOARM=${GOARM_${ARCH}} \
+ CC=${CC} \
+ ${SH} make.bash -v
+
+do-install:
+ @cd ${WRKSRC} ; \
+ ${RM} -r .gitattributes .gitignore .github favicon.ico robots.txt \
+ pkg/obj pkg/bootstrap pkg/${OPSYS:tl}_${GOARCH_${ARCH}}/cmd
+ @${MKDIR} ${STAGEDIR}${PREFIX}/go${GO_SUFFIX}
+ @${CP} -a ${WRKSRC}/* ${STAGEDIR}${PREFIX}/go${GO_SUFFIX}
+.for f in go gofmt
+ ${LN} -sf ../go${GO_SUFFIX}/bin/${f} ${STAGEDIR}${PREFIX}/bin/${f}${GO_SUFFIX}
+ @${ECHO_CMD} bin/${f}${GO_SUFFIX} >> ${TMPPLIST}
+.endfor
+ @cd ${STAGEDIR}${PREFIX} && ${FIND} go${GO_SUFFIX} -type f >> ${TMPPLIST}
+
+do-test:
+ cd ${WRKSRC}/src && ${SETENV} \
+ GOROOT=${WRKSRC} \
+ PATH=${WRKSRC}/bin:${PATH} \
+ GOOS=${OPSYS:tl} \
+ GOARCH=${GOARCH_${ARCH}} \
+ GO386=${GO386} \
+ GOARM=${GOARM_${ARCH}} \
+ CC=${CC} \
+ ${SH} run.bash -no-rebuild
+
+.if !defined(_GO_MAKESUM_GUARD)
+makesum:
+ ${MAKE} -D_GO_MAKESUM_GUARD makesum ARCH=${ONLY_FOR_ARCHS:O:[1]} DISTINFO_FILE=${DISTINFO_FILE}.tmp
+.for arch in ${ONLY_FOR_ARCHS:O:[2..-1]}
+ ${MAKE} -D_GO_MAKESUM_GUARD makesum ARCH=${arch} DISTINFO_FILE=${DISTINFO_FILE}.${arch}
+ ${SED} 1d ${DISTINFO_FILE}.${arch} >> ${DISTINFO_FILE}.tmp
+ ${RM} ${DISTINFO_FILE}.${arch}
+.endfor
+ ${AWK} '!seen[$$0]++' ${DISTINFO_FILE}.tmp > ${DISTINFO_FILE}
+ ${RM} ${DISTINFO_FILE}.tmp
+.endif
+
+.include <bsd.port.mk>
Index: lang/go-devel/distinfo
===================================================================
--- lang/go-devel/distinfo
+++ lang/go-devel/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1651499500
+TIMESTAMP = 1653843435
SHA256 (go-freebsd-arm64-go1.17.9.tar.xz) = d9e9180bdc5ad0eec1654679a50084ebb31ecbe9bef24f0bd8ba917db8d1830c
SIZE (go-freebsd-arm64-go1.17.9.tar.xz) = 38572776
SHA256 (golang-go-g20220319-4aa1efed4853ea067d665a952eee77c52faac774_GH0.tar.gz) = bd684cf4c64f62131754b0f44ad0ee57c0e2109eee41cd560b0d48346a859b60
Index: lang/go/Makefile
===================================================================
--- lang/go/Makefile
+++ lang/go/Makefile
@@ -1,125 +1,30 @@
-# Created by: Devon H. O'Dell <devon.odell@gmail.com>
-
PORTNAME= go
-PORTVERSION?= 1.18.2
-PORTREVISION?= 0
-PORTEPOCH?= 1
+DISTVERSION= ${GO_DEFAULT}
+PORTEPOCH= 2
CATEGORIES= lang
-MASTER_SITES?= https://golang.org/dl/ \
- https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap \
- LOCAL/dmgk:bootstrap
-DISTFILES?= go${PORTVERSION}.src.tar.gz \
- go-${OPSYS:tl}-${GOARCH_${ARCH}}${GOARM_${ARCH}}-${BOOTSTRAP_TAG}.tar.xz:bootstrap
+MASTER_SITES= # not applicable
+DISTFILES= # not applicable
-MAINTAINER= ygy@FreeBSD.org
-COMMENT?= Go programming language
+MAINTAINER= dmgk@FreeBSD.org
+COMMENT= Meta-port for the default version of the Go programming language
-LICENSE= BSD3CLAUSE
-LICENSE_FILE= ${WRKSRC}/LICENSE
+RUN_DEPENDS= go${GO_SUFFIX}:lang/go${GO_SUFFIX}
-.ifdef QEMU_EMULATING
-IGNORE= fails to build with qemu-user-static
-.endif
-
-ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386
-
-RUN_DEPENDS= ${RUN_DEPENDS_${ARCH}}
-# ld.bfd from devel/binutils is needed for working cgo on aarch64
-RUN_DEPENDS_aarch64= binutils>0:devel/binutils
-
-TEST_DEPENDS= ${TEST_DEPENDS_${ARCH}}
-TEST_DEPENDS_aarch64= binutils>0:devel/binutils
-
-USES= cpe shebangfix
+NO_ARCH= yes
+NO_BUILD= yes
-CPE_VENDOR= golang
+PLIST_FILES= bin/go bin/gofmt
-SHEBANG_FILES= misc/wasm/go_js_wasm_exec \
- src/net/http/cgi/testdata/test.cgi
-SHEBANG_GLOB= *.bash *.pl *.sh
-
-CONFLICTS_INSTALL?= go-devel
-
-# Upstream archive contains files with UTF-8 names
-EXTRACT_CMD= ${SETENV} LC_ALL=en_US.UTF-8 ${TAR}
-
-.ifndef MASTERDIR
-WRKSRC= ${WRKDIR}/go
+.include <bsd.port.pre.mk>
+.if ${GO_DEFAULT} == devel
+GO_SUFFIX= -devel
+.else
+GO_SUFFIX= ${GO_DEFAULT:S/.//}
.endif
-OPTIONS_DEFINE_i386= SOFTFLOAT
-
-SOFTFLOAT_DESC= Use soft float on non-SSE2 processors (Pentium 4 and older)
-
-SOFTFLOAT_VARS= GO386=softfloat
-
-BINARIES= go gofmt
-BOOTSTRAP_TAG= go1.17.9
-
-GOARCH_aarch64= arm64
-GOARCH_amd64= amd64
-GOARCH_armv6= arm
-GOARCH_armv7= arm
-GOARCH_i386= 386
-
-GOARM_armv6= 6
-GOARM_armv7= 7
-
-post-patch:
- @${REINPLACE_CMD} -e 's|^if ulimit -T|false \&\& &|' ${WRKSRC}/src/run.bash
-
-pre-build:
- # Check that the running kernel has COMPAT_FREEBSD11 required by lang/go{,-devel} post-ino64
- @${SETENV} CC="${CC}" OPSYS="${OPSYS}" OSVERSION="${OSVERSION}" WRKDIR="${WRKDIR}" \
- ${SH} ${SCRIPTSDIR}/rust-compat11-canary.sh
-
-do-build:
- cd ${WRKSRC}/src ; ${SETENV} \
- XDG_CACHE_HOME=${WRKDIR} \
- GOROOT_BOOTSTRAP=${WRKDIR}/go-${OPSYS:tl}-${GOARCH_${ARCH}}${GOARM_${ARCH}}-bootstrap \
- GOROOT=${WRKSRC} \
- GOROOT_FINAL=${PREFIX}/go \
- GOBIN= \
- GOOS=${OPSYS:tl} \
- GOARCH=${GOARCH_${ARCH}} \
- GO386=${GO386} \
- GOARM=${GOARM_${ARCH}} \
- CC=${CC} \
- ${SH} make.bash -v
-
do-install:
- @cd ${WRKSRC} ; \
- ${RM} -r .gitattributes .gitignore .github favicon.ico robots.txt \
- pkg/obj pkg/bootstrap pkg/${OPSYS:tl}_${GOARCH_${ARCH}}/cmd
- @${MKDIR} ${STAGEDIR}${PREFIX}/go
- @${CP} -a ${WRKSRC}/* ${STAGEDIR}${PREFIX}/go
-.for file in ${BINARIES}
- @${LN} -sf ../go/bin/${file} ${STAGEDIR}${PREFIX}/bin/${file}
- @${ECHO_CMD} bin/${file} >> ${TMPPLIST}
+.for f in go gofmt
+ @${LN} -sf ${f}${GO_SUFFIX} ${STAGEDIR}${PREFIX}/bin/${f}
.endfor
- @cd ${STAGEDIR}${PREFIX} && ${FIND} go -type f >> ${TMPPLIST}
-do-test:
- cd ${WRKSRC}/src && ${SETENV} \
- GOROOT=${WRKSRC} \
- PATH=${WRKSRC}/bin:${PATH} \
- GOOS=${OPSYS:tl} \
- GOARCH=${GOARCH_${ARCH}} \
- GO386=${GO386} \
- GOARM=${GOARM_${ARCH}} \
- CC=${CC} \
- ${SH} run.bash -no-rebuild
-
-.if !defined(_GO_MAKESUM_GUARD)
-makesum:
- ${MAKE} -D_GO_MAKESUM_GUARD makesum ARCH=${ONLY_FOR_ARCHS:O:[1]} DISTINFO_FILE=${DISTINFO_FILE}.tmp
-.for arch in ${ONLY_FOR_ARCHS:O:[2..-1]}
- ${MAKE} -D_GO_MAKESUM_GUARD makesum ARCH=${arch} DISTINFO_FILE=${DISTINFO_FILE}.${arch}
- ${SED} 1d ${DISTINFO_FILE}.${arch} >> ${DISTINFO_FILE}.tmp
- ${RM} ${DISTINFO_FILE}.${arch}
-.endfor
- ${AWK} '!seen[$$0]++' ${DISTINFO_FILE}.tmp > ${DISTINFO_FILE}
- ${RM} ${DISTINFO_FILE}.tmp
-.endif
-
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: lang/go/files/patch-src_cmd_go_internal_modload_vendor.go
===================================================================
--- /dev/null
+++ lang/go/files/patch-src_cmd_go_internal_modload_vendor.go
@@ -1,11 +0,0 @@
---- src/cmd/go/internal/modload/vendor.go.orig 2020-12-17 16:03:19 UTC
-+++ src/cmd/go/internal/modload/vendor.go
-@@ -133,7 +133,7 @@ func checkVendorConsistency() {
- readVendorList()
-
- pre114 := false
-- if semver.Compare(index.goVersionV, "v1.14") < 0 {
-+ if semver.Compare(index.goVersionV, "v1.14") < 0 || (os.Getenv("GO_NO_VENDOR_CHECKS") == "1" && len(vendorMeta) == 0) {
- // Go versions before 1.14 did not include enough information in
- // vendor/modules.txt to check for consistency.
- // If we know that we're on an earlier version, relax the consistency check.
Index: lang/go/pkg-descr
===================================================================
--- lang/go/pkg-descr
+++ lang/go/pkg-descr
@@ -1,4 +1,9 @@
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
+called go and gofmt.
+
+Do not depend on this port.
+
WWW: https://golang.org
Index: lang/go117/Makefile
===================================================================
--- lang/go117/Makefile
+++ lang/go117/Makefile
@@ -1,28 +1,23 @@
-PORTVERSION= 1.17.10
-# Always set PORTREVISION and PORTEPOCH explicitly as otherwise they are inherited from lang/go
+# Created by: Devon H. O'Dell <devon.odell@gmail.com>
+
+PORTNAME= go117
+DISTVERSION= 1.17.10
+# Always set PORTREVISION explicitly as otherwise they are inherited from lang/go-devel
PORTREVISION= 0
-PORTEPOCH= 0
-MASTER_SITES= https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap \
+MASTER_SITES= https://golang.org/dl/ \
+ https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap \
LOCAL/dmgk:bootstrap
-PKGNAMESUFFIX= 117
-DISTFILES= go-${OPSYS:tl}-${GOARCH_${ARCH}}${GOARM_${ARCH}}-${BOOTSTRAP_TAG}.tar.xz:bootstrap
+DISTFILES= go${DISTVERSION}.src.tar.gz \
+ go-${OPSYS:tl}-${GOARCH_${ARCH}}${GOARM_${ARCH}}-${BOOTSTRAP_TAG}.tar.xz:bootstrap
# Avoid conflicting patch files
PATCHFILES=
-COMMENT= Go programming language (development version)
+COMMENT= Go programming language
-USE_GITHUB= yes
-GH_ACCOUNT= golang
-GH_TAGNAME= 7dd10d4ce20e64d96a10cb67794851a58d96a2aa
-
-CONFLICTS_INSTALL= go
-
-MASTERDIR= ${.CURDIR}/../go
+MASTERDIR= ${.CURDIR}/../go-devel
PATCHDIR= ${.CURDIR}/files
+WRKSRC= ${WRKDIR}/go
DISTINFO_FILE= ${.CURDIR}/distinfo
-post-extract:
- @[ -f ${WRKSRC}/VERSION ] || ${ECHO_CMD} "${PORTVERSION} +${GH_TAGNAME}" > ${WRKSRC}/VERSION
-
.include "${MASTERDIR}/Makefile"
Index: lang/go117/distinfo
===================================================================
--- lang/go117/distinfo
+++ lang/go117/distinfo
@@ -1,8 +1,8 @@
-TIMESTAMP = 1652618409
+TIMESTAMP = 1653843983
+SHA256 (go1.17.10.src.tar.gz) = 299e55af30f15691b015d8dcf8ecae72412412569e5b2ece20361753a456f2f9
+SIZE (go1.17.10.src.tar.gz) = 22196380
SHA256 (go-freebsd-arm64-go1.17.9.tar.xz) = d9e9180bdc5ad0eec1654679a50084ebb31ecbe9bef24f0bd8ba917db8d1830c
SIZE (go-freebsd-arm64-go1.17.9.tar.xz) = 38572776
-SHA256 (golang-go-1.17.10-7dd10d4ce20e64d96a10cb67794851a58d96a2aa_GH0.tar.gz) = 903cb4363af9a1c9a6c9d08ea0525983634862a5cb1f893b0b6156e3b99f847c
-SIZE (golang-go-1.17.10-7dd10d4ce20e64d96a10cb67794851a58d96a2aa_GH0.tar.gz) = 22176903
SHA256 (go-freebsd-amd64-go1.17.9.tar.xz) = fd439ad091ed57d0ad728c05fc60465aad2e46e98da96e2d5b60b0c470f2efec
SIZE (go-freebsd-amd64-go1.17.9.tar.xz) = 41951936
SHA256 (go-freebsd-arm6-go1.17.9.tar.xz) = ba24590b8cec761207eafc5a39c71b5b5041320c6fb0c95d35c123f6054f8d1c
Index: lang/go118/Makefile
===================================================================
--- /dev/null
+++ lang/go118/Makefile
@@ -0,0 +1,23 @@
+# Created by: Devon H. O'Dell <devon.odell@gmail.com>
+
+PORTNAME= go118
+DISTVERSION= 1.18.2
+# Always set PORTREVISION explicitly as otherwise they are inherited from lang/go-devel
+PORTREVISION= 0
+MASTER_SITES= https://golang.org/dl/ \
+ https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap \
+ LOCAL/dmgk:bootstrap
+DISTFILES= go${DISTVERSION}.src.tar.gz \
+ go-${OPSYS:tl}-${GOARCH_${ARCH}}${GOARM_${ARCH}}-${BOOTSTRAP_TAG}.tar.xz:bootstrap
+
+# Avoid conflicting patch files
+PATCHFILES=
+
+COMMENT= Go programming language
+
+MASTERDIR= ${.CURDIR}/../go-devel
+PATCHDIR= ${.CURDIR}/files
+WRKSRC= ${WRKDIR}/go
+DISTINFO_FILE= ${.CURDIR}/distinfo
+
+.include "${MASTERDIR}/Makefile"
Index: lang/go118/distinfo
===================================================================
--- lang/go118/distinfo
+++ lang/go118/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1652618333
+TIMESTAMP = 1653843300
SHA256 (go1.18.2.src.tar.gz) = 2c44d03ea2c34092137ab919ba602f2c261a038d08eb468528a3f3a28e5667e2
SIZE (go1.18.2.src.tar.gz) = 22837686
SHA256 (go-freebsd-arm64-go1.17.9.tar.xz) = d9e9180bdc5ad0eec1654679a50084ebb31ecbe9bef24f0bd8ba917db8d1830c
Index: net-im/gotosocial/Makefile
===================================================================
--- net-im/gotosocial/Makefile
+++ net-im/gotosocial/Makefile
@@ -38,7 +38,7 @@
.endif
do-build:
- @(cd ${WRKSRC} && ${SETENV} \
+ @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
VERSION=${DISTVERSION} COMMIT=${GH_TAGNAME} scripts/build.sh )
do-install:
Index: net-mgmt/chronograf/Makefile
===================================================================
--- net-mgmt/chronograf/Makefile
+++ net-mgmt/chronograf/Makefile
@@ -91,6 +91,6 @@
npm_config_tarball=${DISTDIR}/${DIST_SUBDIR}/node-v${NODEJS_VERSION}-headers.tar.gz \
yarn --frozen-lockfile --offline --no-progress --no-emoji
cd ${WRKSRC}/ui && ${SETENV} ${YARN_ENV} yarn run build
- cd ${WRKSRC} && ${GMAKE} .bindata
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} .bindata
.include <bsd.port.post.mk>
Index: net/ooni-probe-cli/Makefile
===================================================================
--- net/ooni-probe-cli/Makefile
+++ net/ooni-probe-cli/Makefile
@@ -12,7 +12,7 @@
RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss
-USES= go:modules
+USES= go:1.17,modules
USE_GITHUB= yes
USE_GITLAB= nodefault
Index: sysutils/chezmoi/Makefile
===================================================================
--- sysutils/chezmoi/Makefile
+++ sysutils/chezmoi/Makefile
@@ -147,7 +147,7 @@
do-build-DOCS-on:
@${CP} ${_DISTDIR}/mermaid@8.8.0/dist/mermaid.min.js ${WRKSRC}/assets/chezmoi.io
- (cd ${WRKSRC}/assets/chezmoi.io && mkdocs build)
+ (cd ${WRKSRC}/assets/chezmoi.io && ${SETENV} ${MAKE_ENV} mkdocs build)
post-extract:
@${MKDIR} ${WRKSRC}/vendor/github.com/chris-ramon
Index: sysutils/datadog-agent/Makefile
===================================================================
--- sysutils/datadog-agent/Makefile
+++ sysutils/datadog-agent/Makefile
@@ -359,20 +359,20 @@
${MAKE_CMD} -C .)
# Generate go source from templates
- ${SETENV} ${GO_ENV} GOCACHE=${TMPDIR} GO111MODULE=off GOFLAGS="-mod=vendor" ${GO_CMD} generate ${WRKSRC}/pkg/status/render.go
- ${SETENV} ${GO_ENV} GOCACHE=${TMPDIR} GO111MODULE=off GOFLAGS="-mod=vendor" ${GO_CMD} generate ${WRKSRC}/cmd/agent/gui/gui.go
+ ${SETENV} ${MAKE_ENV} ${GO_ENV} GOCACHE=${TMPDIR} GO111MODULE=off GOFLAGS="-mod=vendor" ${GO_CMD} generate ${WRKSRC}/pkg/status/render.go
+ ${SETENV} ${MAKE_ENV} ${GO_ENV} GOCACHE=${TMPDIR} GO111MODULE=off GOFLAGS="-mod=vendor" ${GO_CMD} generate ${WRKSRC}/cmd/agent/gui/gui.go
post-build:
# Generate config files
- ${SETENV} ${GO_ENV} GOCACHE=${TMPDIR} ${GO_CMD} run ${WRKSRC}/pkg/config/render_config.go agent-py3 \
+ ${SETENV} ${MAKE_ENV} ${GO_ENV} GOCACHE=${TMPDIR} ${GO_CMD} run ${WRKSRC}/pkg/config/render_config.go agent-py3 \
${WRKSRC}/pkg/config/config_template.yaml \
${WRKSRC}/cmd/agent/dist/datadog.yaml
- ${SETENV} ${GO_ENV} GOCACHE=${TMPDIR} ${GO_CMD} run ${WRKSRC}/pkg/config/render_config.go system-probe \
+ ${SETENV} ${MAKE_ENV} ${GO_ENV} GOCACHE=${TMPDIR} ${GO_CMD} run ${WRKSRC}/pkg/config/render_config.go system-probe \
${WRKSRC}/pkg/config/config_template.yaml \
${WRKSRC}/cmd/agent/dist/system-probe.yaml
- ${SETENV} ${GO_ENV} GOCACHE=${TMPDIR} ${GO_CMD} run ${WRKSRC}/pkg/config/render_config.go dogstatsd \
+ ${SETENV} ${MAKE_ENV} ${GO_ENV} GOCACHE=${TMPDIR} ${GO_CMD} run ${WRKSRC}/pkg/config/render_config.go dogstatsd \
${WRKSRC}/pkg/config/config_template.yaml \
${WRKSRC}/cmd/agent/dist/dogstatsd.yaml
Index: sysutils/ipfs-go/Makefile
===================================================================
--- sysutils/ipfs-go/Makefile
+++ sysutils/ipfs-go/Makefile
@@ -15,12 +15,11 @@
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
-USES= cpe go:modules
+USES= cpe go:1.17,modules
CPE_VENDOR= protocol
GO_TARGET= ./cmd/ipfs:ipfs-go
-GO_PORT= lang/go117 # quic-go does not build on Go 1.18 yet
NO_WRKSUBDIR= yes
Index: sysutils/ipget/Makefile
===================================================================
--- sysutils/ipget/Makefile
+++ sysutils/ipget/Makefile
@@ -10,7 +10,7 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= go:modules
+USES= go:1.17,modules
USE_GITHUB= yes
GH_ACCOUNT= ipfs
Index: sysutils/minikube/Makefile
===================================================================
--- sysutils/minikube/Makefile
+++ sysutils/minikube/Makefile
@@ -243,6 +243,6 @@
-o pkg/minikube/assets/assets.go -pkg assets deploy/addons/... && \
${LOCALBASE}/bin/go-bindata -nomemcopy \
-o pkg/minikube/translate/translations.go -pkg translate translations/... && \
- ${LOCALBASE}/bin/gofmt -s -w pkg/minikube/translate/translations.go
+ ${LOCALBASE}/bin/gofmt${GO_SUFFIX} -s -w pkg/minikube/translate/translations.go
.include <bsd.port.mk>
Index: www/adguardhome/Makefile
===================================================================
--- www/adguardhome/Makefile
+++ www/adguardhome/Makefile
@@ -10,10 +10,9 @@
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
-USES= cpe go:modules
+USES= cpe go:1.17,modules
GO_MODULE= github.com/AdguardTeam/AdGuardHome
-GO_PORT= lang/go117 # quic-go does not build on Go 1.18 yet
# to rebuild the deps archives:
# 1. set DEV_UPDATE_MODE=yes
Index: www/grafana8/Makefile
===================================================================
--- www/grafana8/Makefile
+++ www/grafana8/Makefile
@@ -80,7 +80,7 @@
${SETENV} ${MAKE_ENV} ${GO_ENV} GOPROXY=off ${GO_CMD} build \
-o wire ./vendor/github.com/google/wire/cmd/wire/main.go; \
${ECHO_MSG} "===> Generating wire_gen.go"; \
- ${SETENV} XDG_CACHE_HOME=${WRKDIR}/.cache ${GO_ENV} ./wire gen -tags "oss" ./pkg/server ./pkg/cmd/grafana-cli/runner )
+ ${SETENV} ${MAKE_ENV} ${GO_ENV} ./wire gen -tags "oss" ./pkg/server ./pkg/cmd/grafana-cli/runner )
post-install:
${MKDIR} ${STAGEDIR}${GRAFANA_HOMEDIR}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 2:47 PM (16 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31846403
Default Alt Text
D35346.id106455.diff (24 KB)
Attached To
Mode
D35346: Introduce versioned Go ports
Attached
Detach File
Event Timeline
Log In to Comment