mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 02:21:15 +02:00
.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# $FreeBSD: head/lang/go/Makefile 470619 2018-05-22 14:32:09Z jlaffaye $
|
||||
|
||||
PORTNAME= go
|
||||
PORTVERSION= 1.19.4
|
||||
PORTVERSION= 1.19.5
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= https://golang.org/dl/
|
||||
MASTER_SITES+= https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
TIMESTAMP = 1670445773
|
||||
SHA256 (go1.19.4.src.tar.gz) = eda74db4ac494800a3e66ee784e495bfbb9b8e535df924a8b01b1a8028b7f368
|
||||
SIZE (go1.19.4.src.tar.gz) = 26542047
|
||||
TIMESTAMP = 1675327324
|
||||
SHA256 (go1.19.5.src.tar.gz) = 8e486e8e85a281fc5ce3f0bedc5b9d2dbf6276d7db0b25d3ec034f313da0375f
|
||||
SIZE (go1.19.5.src.tar.gz) = 26545858
|
||||
SHA256 (go-freebsd-amd64-go1.17.9.tar.xz) = fd439ad091ed57d0ad728c05fc60465aad2e46e98da96e2d5b60b0c470f2efec
|
||||
SIZE (go-freebsd-amd64-go1.17.9.tar.xz) = 41951936
|
||||
|
||||
@@ -2907,6 +2907,7 @@ lib/go/src/cmd/go/testdata/script/test_write_profiles_on_timeout.txt
|
||||
lib/go/src/cmd/go/testdata/script/test_xtestonly_works.txt
|
||||
lib/go/src/cmd/go/testdata/script/testing_issue40908.txt
|
||||
lib/go/src/cmd/go/testdata/script/toolexec.txt
|
||||
lib/go/src/cmd/go/testdata/script/trampoline_reuse_test.txt
|
||||
lib/go/src/cmd/go/testdata/script/vendor_complex.txt
|
||||
lib/go/src/cmd/go/testdata/script/vendor_gopath_issue11409.txt
|
||||
lib/go/src/cmd/go/testdata/script/vendor_import_missing.txt
|
||||
@@ -2920,7 +2921,6 @@ lib/go/src/cmd/go/testdata/script/vendor_test_issue14613.txt
|
||||
lib/go/src/cmd/go/testdata/script/version_build_settings.txt
|
||||
lib/go/src/cmd/go/testdata/script/version_buildvcs_bzr.txt
|
||||
lib/go/src/cmd/go/testdata/script/version_buildvcs_fossil.txt
|
||||
lib/go/src/cmd/go/testdata/script/version_buildvcs_git_gpg.txt
|
||||
lib/go/src/cmd/go/testdata/script/version_buildvcs_git.txt
|
||||
lib/go/src/cmd/go/testdata/script/version_buildvcs_hg.txt
|
||||
lib/go/src/cmd/go/testdata/script/version_buildvcs_nested.txt
|
||||
@@ -6128,6 +6128,7 @@ lib/go/src/internal/poll/sendfile_bsd.go
|
||||
lib/go/src/internal/poll/sendfile_linux.go
|
||||
lib/go/src/internal/poll/sendfile_solaris.go
|
||||
lib/go/src/internal/poll/sendfile_windows.go
|
||||
lib/go/src/internal/poll/sock_cloexec_accept.go
|
||||
lib/go/src/internal/poll/sock_cloexec.go
|
||||
lib/go/src/internal/poll/sockopt_linux.go
|
||||
lib/go/src/internal/poll/sockopt_unix.go
|
||||
@@ -8392,6 +8393,8 @@ lib/go/src/syscall/syscall_freebsd.go
|
||||
lib/go/src/syscall/syscall_illumos.go
|
||||
lib/go/src/syscall/syscall_js.go
|
||||
lib/go/src/syscall/syscall_linux_386.go
|
||||
lib/go/src/syscall/syscall_linux_accept.go
|
||||
lib/go/src/syscall/syscall_linux_accept4.go
|
||||
lib/go/src/syscall/syscall_linux_amd64.go
|
||||
lib/go/src/syscall/syscall_linux_arm.go
|
||||
lib/go/src/syscall/syscall_linux_arm64.go
|
||||
@@ -11035,8 +11038,11 @@ lib/go/test/fixedbugs/issue5614.dir/x.go
|
||||
lib/go/test/fixedbugs/issue5614.dir/y.go
|
||||
lib/go/test/fixedbugs/issue5614.go
|
||||
lib/go/test/fixedbugs/issue56141.go
|
||||
lib/go/test/fixedbugs/issue56727.go
|
||||
lib/go/test/fixedbugs/issue56768.go
|
||||
lib/go/test/fixedbugs/issue5698.go
|
||||
lib/go/test/fixedbugs/issue5704.go
|
||||
lib/go/test/fixedbugs/issue57184.go
|
||||
lib/go/test/fixedbugs/issue5753.go
|
||||
lib/go/test/fixedbugs/issue5755.dir/a.go
|
||||
lib/go/test/fixedbugs/issue5755.dir/main.go
|
||||
|
||||
115
lang/go20/Makefile
Normal file
115
lang/go20/Makefile
Normal file
@@ -0,0 +1,115 @@
|
||||
# Created by: Devon H. O'Dell <devon.odell@gmail.com>
|
||||
# $FreeBSD: head/lang/go/Makefile 470619 2018-05-22 14:32:09Z jlaffaye $
|
||||
|
||||
PORTNAME= go
|
||||
PORTVERSION= 1.20
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= https://golang.org/dl/
|
||||
MASTER_SITES+= https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap
|
||||
MASTER_SITES+= LOCAL/dmgk:bootstrap
|
||||
DISTFILES= go${PORTVERSION}.src.tar.gz
|
||||
DISTFILES+= go-${OPSYS:tl}-${GOARCH}${GOARM}-${BOOTSTRAP_TAG}.tar.xz:bootstrap
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
DISTINFO_FILE = ${MASTERDIR}/distinfo.${ARCH}
|
||||
|
||||
BOOTSTRAP_TAG= go1.17.9
|
||||
|
||||
|
||||
.if ${ARCH} == amd64
|
||||
GOARCH=amd64
|
||||
.elif ${ARCH} == i386
|
||||
GOARCH=386
|
||||
.elif ${ARCH} == armv6
|
||||
GOARCH=arm
|
||||
GOARM=6
|
||||
.elif ${ARCH} == armv7
|
||||
GOARCH=arm
|
||||
GOARM=7
|
||||
.elif ${ARCH} == aarch64
|
||||
GOARCH=arm64
|
||||
.else
|
||||
IGNORE= unknown arch ${ARCH}
|
||||
.endif
|
||||
|
||||
MAINTAINER= jlaffaye@FreeBSD.org
|
||||
COMMENT= Go programming language
|
||||
|
||||
RUN_DEPENDS= bash:lang/bash
|
||||
BUILD_DEPENDS= bash:lang/bash
|
||||
|
||||
USES= shebangfix
|
||||
SHEBANG_LANG= sh perl
|
||||
SHEBANG_FILES+= misc/wasm/go_js_wasm_exec
|
||||
SHEBANG_FILES+= src/net/http/cgi/testdata/test.cgi
|
||||
SHEBANG_GLOB= *.bash *.pl *.sh
|
||||
|
||||
sh_OLD_CMD= /bin/bash
|
||||
sh_CMD= "/usr/bin/env bash"
|
||||
|
||||
WRKSRC= ${WRKDIR}/go
|
||||
ONLY_FOR_ARCHS= i386 amd64 armv6 armv7 aarch64
|
||||
|
||||
USE_LOCALE= en_US.UTF-8
|
||||
EXTRACT_CMD= ${SETENV} LC_ALL=en_US.UTF-8 ${TAR}
|
||||
|
||||
post-patch:
|
||||
cd ${WRKSRC} && ${FIND} . -name '*.orig' -delete
|
||||
${REINPLACE_CMD} -e 's|type -ap |type |' ${WRKSRC}/src/make.bash
|
||||
${REINPLACE_CMD} -e 's|^if ulimit -T|false \&\& &|' ${WRKSRC}/src/run.bash
|
||||
|
||||
|
||||
PLIST= pkg-plist.${ARCH}
|
||||
|
||||
GOROOT_BOOTSTRAP=${WRKDIR}/go-${OPSYS:tl}-${GOARCH}${GOARM}-bootstrap
|
||||
#GOROOT_BOOTSTRAP=${LOCALBASE}/lib/go
|
||||
|
||||
do-build:
|
||||
# cd ${WRKSRC}/src ; ${SETENV} \
|
||||
# XDG_CACHE_HOME=${WRKDIR} \
|
||||
# GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP} \
|
||||
# GOROOT=${WRKSRC} \
|
||||
# GOROOT_FINAL=${PREFIX}/go \
|
||||
# GOBIN= \
|
||||
# GOOS=${OPSYS:tl} \
|
||||
# GOARCH=${GOARCH} \
|
||||
# GO386=${GO386} \
|
||||
# GOARM=${GOARM} \
|
||||
# CC=${CC} \
|
||||
# ${LOCALBASE}/bin/bash make.bash -v
|
||||
|
||||
cd ${WRKSRC}/src ; ${SETENV} \
|
||||
XDG_CACHE_HOME=${WRKDIR} \
|
||||
GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP} \
|
||||
GOROOT=${WRKSRC} \
|
||||
GOROOT_FINAL=${PREFIX}/go \
|
||||
GOBIN=${GOROOT_BOOTSTRAP}/bin/go \
|
||||
GOOS=${OPSYS:tl} \
|
||||
GOARCH=${GOARCH} \
|
||||
GO386=${GO386} \
|
||||
GOARM=${GOARM} \
|
||||
CC=${CC} \
|
||||
GOMEMLIMIT=256KiB GOGC=30 \
|
||||
${LOCALBASE}/bin/bash make.bash -v
|
||||
|
||||
|
||||
|
||||
${RM} -r ${WRKSRC}/pkg/obj \
|
||||
${WRKSRC}/pkg/bootstrap \
|
||||
${WRKSRC}/pkg/${OPSYS:tl}_${GOARCH}/cmd
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC} && \
|
||||
${RM} -r .gitattributes .gitignore .github favicon.ico robots.txt \
|
||||
pkg/obj pkg/bootstrap pkg/${OPSYS:tl}_${GOARCH_${ARCH}}/cmd
|
||||
|
||||
${CP} -a ${WRKSRC} ${STAGEDIR}${PREFIX}/lib
|
||||
.for f in go gofmt
|
||||
${LN} -sf ../lib/go/bin/${f} ${STAGEDIR}${PREFIX}/bin/${f}
|
||||
.endfor
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/go/bin/*
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/go/pkg/tool/*/*
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
#EOF
|
||||
5
lang/go20/distinfo.amd64
Normal file
5
lang/go20/distinfo.amd64
Normal file
@@ -0,0 +1,5 @@
|
||||
TIMESTAMP = 1675324651
|
||||
SHA256 (go1.20.src.tar.gz) = 3a29ff0421beaf6329292b8a46311c9fbf06c800077ceddef5fb7f8d5b1ace33
|
||||
SIZE (go1.20.src.tar.gz) = 26163076
|
||||
SHA256 (go-freebsd-amd64-go1.17.9.tar.xz) = fd439ad091ed57d0ad728c05fc60465aad2e46e98da96e2d5b60b0c470f2efec
|
||||
SIZE (go-freebsd-amd64-go1.17.9.tar.xz) = 41951936
|
||||
11
lang/go20/files/patch-src_cmd_go_internal_modload_vendor.go
Normal file
11
lang/go20/files/patch-src_cmd_go_internal_modload_vendor.go
Normal file
@@ -0,0 +1,11 @@
|
||||
--- 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.
|
||||
4
lang/go20/pkg-descr
Normal file
4
lang/go20/pkg-descr
Normal file
@@ -0,0 +1,4 @@
|
||||
Go is an open source programming environment that makes it easy to build
|
||||
simple, reliable, and efficient software.
|
||||
|
||||
WWW: http://golang.org
|
||||
13308
lang/go20/pkg-plist.amd64
Normal file
13308
lang/go20/pkg-plist.amd64
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user