From: Jeffery To Date: Mon, 17 Jul 2023 07:13:00 +0000 (+0800) Subject: golang: Update to 1.20.6 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F21590%2Fhead;p=feed%2Fpackages.git golang: Update to 1.20.6 Includes fix for CVE-2023-29406 (net/http: insufficient sanitization of Host header). This also updates the copyright information for various Go packaging files. Signed-off-by: Jeffery To --- diff --git a/lang/golang/golang-build.sh b/lang/golang/golang-build.sh index e0e4ea637f..fe8718ee76 100644 --- a/lang/golang/golang-build.sh +++ b/lang/golang/golang-build.sh @@ -1,4 +1,10 @@ #!/bin/sh +# +# Copyright (C) 2020, 2022 Jeffery To +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# nl=" " diff --git a/lang/golang/golang-compiler.mk b/lang/golang/golang-compiler.mk index b8c278568d..144f2a4af7 100644 --- a/lang/golang/golang-compiler.mk +++ b/lang/golang/golang-compiler.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2018, 2020 Jeffery To +# Copyright (C) 2018, 2020-2021, 2023 Jeffery To # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. diff --git a/lang/golang/golang-host-build.mk b/lang/golang/golang-host-build.mk index 4b9e29873f..7c7551fd18 100644 --- a/lang/golang/golang-host-build.mk +++ b/lang/golang/golang-host-build.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2020 Jeffery To +# Copyright (C) 2020, 2022 Jeffery To # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. diff --git a/lang/golang/golang-package.mk b/lang/golang/golang-package.mk index 20a993726d..4f164c4c12 100644 --- a/lang/golang/golang-package.mk +++ b/lang/golang/golang-package.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2018-2020 Jeffery To +# Copyright (C) 2018-2022 Jeffery To # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. diff --git a/lang/golang/golang-values.mk b/lang/golang/golang-values.mk index bf090af32a..469629b7e3 100644 --- a/lang/golang/golang-values.mk +++ b/lang/golang/golang-values.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2018, 2020 Jeffery To +# Copyright (C) 2018-2023 Jeffery To # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. diff --git a/lang/golang/golang/Makefile b/lang/golang/golang/Makefile index c9e385c870..d9c8e56d25 100644 --- a/lang/golang/golang/Makefile +++ b/lang/golang/golang/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2018, 2020 Jeffery To +# Copyright (C) 2018-2023 Jeffery To # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk GO_VERSION_MAJOR_MINOR:=1.20 -GO_VERSION_PATCH:=5 +GO_VERSION_PATCH:=6 PKG_NAME:=golang PKG_VERSION:=$(GO_VERSION_MAJOR_MINOR)$(if $(GO_VERSION_PATCH),.$(GO_VERSION_PATCH)) @@ -20,7 +20,7 @@ GO_SOURCE_URLS:=https://dl.google.com/go/ \ PKG_SOURCE:=go$(PKG_VERSION).src.tar.gz PKG_SOURCE_URL:=$(GO_SOURCE_URLS) -PKG_HASH:=9a15c133ba2cfafe79652f4815b62e7cfc267f68df1b9454c6ab2a3ca8b96a88 +PKG_HASH:=62ee5bc6fb55b8bae8f705e0cb8df86d6453626b4ecf93279e2867092e0b7f70 PKG_MAINTAINER:=Jeffery To PKG_LICENSE:=BSD-3-Clause diff --git a/lang/golang/golang/files/go-gcc-helper b/lang/golang/golang/files/go-gcc-helper index b396e302c6..b21457b55c 100644 --- a/lang/golang/golang/files/go-gcc-helper +++ b/lang/golang/golang/files/go-gcc-helper @@ -1,4 +1,10 @@ #!/bin/sh +# +# Copyright (C) 2018, 2020 Jeffery To +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# me=go-gcc-helper name="${0##*/}" diff --git a/lang/golang/golang/test.sh b/lang/golang/golang/test.sh new file mode 100644 index 0000000000..114b427ef1 --- /dev/null +++ b/lang/golang/golang/test.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +[ "$1" = golang ] || exit 0 + +go version | grep -F " go$PKG_VERSION "