golang: bump golang 1.19.12 -> 1.20.7 (#6001)
Bump following packages: - golang: 1.19.12 -> 1.20.7 - moby-cli: 20.10.24 -> 20.10.25 - moby-engine: 20.10.24 -> 20.10.25 - moby-containerd:1.6.18 -> 1.6.22 - moby-runc: 1.1.5 -> 1.1.9 This PR fixes docker `http: invalid Host header` error and bootstraps the go1.20 compiler with go1.19.12 instead of go1.4 Reference: https://go.dev/doc/go1.20#bootstrap Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
This commit is contained in:
Родитель
43b9eee090
Коммит
d82493a5f9
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"go1.4-bootstrap-20171003.tar.gz": "f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96fe1102f0cb5c3e52",
|
||||
"go1.19.12.src.tar.gz": "ee5d50e0a7fd74ba1b137cb879609aaaef9880bf72b5d1742100e38ae72bb557"
|
||||
}
|
||||
"Signatures": {
|
||||
"go1.19.12.src.tar.gz": "ee5d50e0a7fd74ba1b137cb879609aaaef9880bf72b5d1742100e38ae72bb557",
|
||||
"go1.20.7.src.tar.gz": "2c5ee9c9ec1e733b0dbbc2bdfed3f62306e51d8172bf38f4f4e542b27520f597",
|
||||
"go1.4-bootstrap-20171003.tar.gz": "f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96fe1102f0cb5c3e52"
|
||||
}
|
||||
}
|
|
@ -1,3 +1,4 @@
|
|||
%global bootstrap_compiler_version 1.19.12
|
||||
%global goroot %{_libdir}/golang
|
||||
%global gopath %{_datadir}/gocode
|
||||
%ifarch aarch64
|
||||
|
@ -12,7 +13,7 @@
|
|||
%define __find_requires %{nil}
|
||||
Summary: Go
|
||||
Name: golang
|
||||
Version: 1.19.12
|
||||
Version: 1.20.7
|
||||
Release: 1%{?dist}
|
||||
License: BSD-3-Clause
|
||||
Vendor: Microsoft Corporation
|
||||
|
@ -21,6 +22,7 @@ Group: System Environment/Security
|
|||
URL: https://golang.org
|
||||
Source0: https://golang.org/dl/go%{version}.src.tar.gz
|
||||
Source1: https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz
|
||||
Source2: https://dl.google.com/go/go%{bootstrap_compiler_version}.src.tar.gz
|
||||
Patch0: go14_bootstrap_aarch64.patch
|
||||
Patch1: permit-requests-with-invalid-header.patch
|
||||
Obsoletes: %{name} < %{version}
|
||||
|
@ -41,6 +43,14 @@ mv -v go go-bootstrap
|
|||
%patch1 -p1
|
||||
|
||||
%build
|
||||
# (go >= 1.20 bootstraps with go >= 1.17)
|
||||
# This condition makes go compiler >= 1.20 build a 3 step process:
|
||||
# - Build the bootstrap compiler 1.4 (bootstrap bits in c)
|
||||
# - Use the 1.4 compiler to build %{bootstrap_compiler_version}
|
||||
# - Use the %{bootstrap_compiler_version} compiler to build go >= 1.20 compiler
|
||||
# PS: Since go compiles fairly quickly, the extra overhead is arounnd 2-3 minutes
|
||||
# on a reasonable machine.
|
||||
|
||||
# Build go 1.4 bootstrap
|
||||
pushd %{_topdir}/BUILD/go-bootstrap/src
|
||||
CGO_ENABLED=0 ./make.bash
|
||||
|
@ -48,6 +58,20 @@ popd
|
|||
mv -v %{_topdir}/BUILD/go-bootstrap %{_libdir}/golang
|
||||
export GOROOT=%{_libdir}/golang
|
||||
|
||||
# Use go1.4 bootstrap to compile go%{bootstrap_compiler_version} (bootstrap)
|
||||
export GOROOT_BOOTSTRAP=%{_libdir}/golang
|
||||
mkdir -p %{_topdir}/BUILD/go%{bootstrap_compiler_version}
|
||||
tar xf %{SOURCE2} -C %{_topdir}/BUILD/go%{bootstrap_compiler_version} --strip-components=1
|
||||
pushd %{_topdir}/BUILD/go%{bootstrap_compiler_version}/src
|
||||
CGO_ENABLED=0 ./make.bash
|
||||
popd
|
||||
|
||||
# Nuke the older go1.4 bootstrap
|
||||
rm -rf %{_libdir}/golang
|
||||
|
||||
# Make go%{bootstrap_compiler_version} as the new bootstrapper
|
||||
mv -v %{_topdir}/BUILD/go1.19.12 %{_libdir}/golang
|
||||
|
||||
# Build current go version
|
||||
export GOHOSTOS=linux
|
||||
export GOHOSTARCH=%{gohostarch}
|
||||
|
@ -119,6 +143,10 @@ fi
|
|||
%{_bindir}/*
|
||||
|
||||
%changelog
|
||||
* Tue Aug 15 2023 Muhammad Falak <mwani@microsoft.com> - 1.20.7-1
|
||||
- Bump version to 1.20.7
|
||||
- Introduce patch to permit requests with invalid host header
|
||||
|
||||
* Tue Aug 15 2023 Muhammad Falak <mwani@microsoft.com> - 1.19.12-1
|
||||
- Auto-upgrade to 1.19.12 to address CVE-2023-29409
|
||||
- Introduce patch to permit requests with invalid header
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
From c08a5fa413a34111c9a37fd9e545de27ab0978b1 Mon Sep 17 00:00:00 2001
|
||||
From ede3e278ae8df8ce1beec4b251dbaa68b8d2ad48 Mon Sep 17 00:00:00 2001
|
||||
From: Damien Neil <dneil@google.com>
|
||||
Date: Wed, 19 Jul 2023 10:30:46 -0700
|
||||
Subject: [PATCH] [release-branch.go1.19] net/http: permit requests with
|
||||
Subject: [PATCH] [release-branch.go1.20] net/http: permit requests with
|
||||
invalid Host headers
|
||||
|
||||
Historically, the Transport has silently truncated invalid
|
||||
|
@ -20,7 +20,7 @@ without a Host.
|
|||
|
||||
For #60374
|
||||
Fixes #61431
|
||||
Fixes #61825
|
||||
Fixes #61826
|
||||
|
||||
Change-Id: If170c7dd860aa20eb58fe32990fc93af832742b6
|
||||
Reviewed-on: https://go-review.googlesource.com/c/go/+/511155
|
||||
|
@ -28,10 +28,10 @@ TryBot-Result: Gopher Robot <gobot@golang.org>
|
|||
Reviewed-by: Roland Shoemaker <roland@golang.org>
|
||||
Run-TryBot: Damien Neil <dneil@google.com>
|
||||
(cherry picked from commit b9153f6ef338baee5fe02a867c8fbc83a8b29dd1)
|
||||
Reviewed-on: https://go-review.googlesource.com/c/go/+/518855
|
||||
Reviewed-on: https://go-review.googlesource.com/c/go/+/518756
|
||||
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
|
||||
Run-TryBot: Roland Shoemaker <roland@golang.org>
|
||||
Reviewed-by: Russ Cox <rsc@golang.org>
|
||||
Run-TryBot: Roland Shoemaker <roland@golang.org>
|
||||
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
|
||||
---
|
||||
src/net/http/request.go | 23 ++++++++++++++++++++++-
|
||||
|
@ -39,10 +39,10 @@ Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
|
|||
2 files changed, 34 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/src/net/http/request.go b/src/net/http/request.go
|
||||
index 3100037386..91cb8a66b9 100644
|
||||
index 9c888b3768..2cf96b4417 100644
|
||||
--- a/src/net/http/request.go
|
||||
+++ b/src/net/http/request.go
|
||||
@@ -582,8 +582,29 @@ func (r *Request) write(w io.Writer, usingProxy bool, extraHeaders Header, waitF
|
||||
@@ -586,8 +586,29 @@ func (r *Request) write(w io.Writer, usingProxy bool, extraHeaders Header, waitF
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -74,10 +74,10 @@ index 3100037386..91cb8a66b9 100644
|
|||
|
||||
// According to RFC 6874, an HTTP client, proxy, or other
|
||||
diff --git a/src/net/http/request_test.go b/src/net/http/request_test.go
|
||||
index fddc85d6a9..dd1e2dc2a1 100644
|
||||
index 86c68e470e..a9343cd935 100644
|
||||
--- a/src/net/http/request_test.go
|
||||
+++ b/src/net/http/request_test.go
|
||||
@@ -770,16 +770,23 @@ func TestRequestWriteBufferedWriter(t *testing.T) {
|
||||
@@ -766,16 +766,23 @@ func TestRequestWriteBufferedWriter(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -108,3 +108,4 @@ index fddc85d6a9..dd1e2dc2a1 100644
|
|||
|
||||
--
|
||||
2.41.0
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"moby-cli-20.10.24.tar.gz": "3ffc8924756da21b0fd2b735540003fb3e3ba8602ceffeba40010b34aec22b5b"
|
||||
}
|
||||
"Signatures": {
|
||||
"moby-cli-20.10.25.tar.gz": "fc80d99f6c929d3d3f7b5322063e1a5236623341a0b671c70cfa15854cadbc18"
|
||||
}
|
||||
}
|
|
@ -1,10 +1,10 @@
|
|||
%define upstream_name cli
|
||||
%define commit_hash e91ed5707e038b02af3b5120fa0835c5bedfd42e
|
||||
%define commit_hash b82b9f3a0e763304a250531cb9350aa6d93723c9
|
||||
|
||||
Summary: The open-source application container engine client.
|
||||
Name: moby-%{upstream_name}
|
||||
Version: 20.10.24
|
||||
Release: 4%{?dist}
|
||||
Version: 20.10.25
|
||||
Release: 1%{?dist}
|
||||
License: ASL 2.0
|
||||
Group: Tools/Container
|
||||
URL: https://github.com/docker/cli
|
||||
|
@ -80,6 +80,9 @@ install -p -m 644 contrib/completion/fish/docker.fish %{buildroot}%{_datadir}/fi
|
|||
%{_datadir}/fish/vendor_completions.d/docker.fish
|
||||
|
||||
%changelog
|
||||
* Thu Aug 17 2023 Muhammad Falak <mwani@microsoft.com> - 20.10.25-1
|
||||
- Bump version to 20.10.25
|
||||
|
||||
* Mon Aug 07 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 20.10.24-4
|
||||
- Bump release to rebuild with go 1.19.12
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"containerd.service": "b7908653ff8298fc8c1c21854a6e338f40c607ec40d177269615a8f3448c5153",
|
||||
"containerd.toml": "793d4f11a4e69bdb3b1903da2cdf76b7f32dbc97197b12d295a05ecc284e230e",
|
||||
"moby-containerd-1.6.18.tar.gz": "e9b84d52da7743000c1e8dae0175dda16d558a44cf80a5ae2556862205361a64"
|
||||
}
|
||||
"Signatures": {
|
||||
"containerd.service": "b7908653ff8298fc8c1c21854a6e338f40c607ec40d177269615a8f3448c5153",
|
||||
"containerd.toml": "793d4f11a4e69bdb3b1903da2cdf76b7f32dbc97197b12d295a05ecc284e230e",
|
||||
"moby-containerd-1.6.22.tar.gz": "b109aceacc814d7a637ed94ba5ade829cd2642841d03e06971ef124fa3b86899"
|
||||
}
|
||||
}
|
|
@ -1,11 +1,11 @@
|
|||
%global debug_package %{nil}
|
||||
%define upstream_name containerd
|
||||
%define commit_hash 2456e983eb9e37e47538f59ea18f2043c9a73640
|
||||
%define commit_hash 8165feabfdfe38c65b599c4993d227328c231fca
|
||||
|
||||
Summary: Industry-standard container runtime
|
||||
Name: moby-%{upstream_name}
|
||||
Version: 1.6.18
|
||||
Release: 7%{?dist}
|
||||
Version: 1.6.22
|
||||
Release: 1%{?dist}
|
||||
License: ASL 2.0
|
||||
Group: Tools/Container
|
||||
URL: https://www.containerd.io
|
||||
|
@ -86,6 +86,9 @@ fi
|
|||
%config(noreplace) %{_sysconfdir}/containerd/config.toml
|
||||
|
||||
%changelog
|
||||
* Wed Aug 16 2023 Muhammad Falak <mwani@microsoft.com> - 1.6.22-1
|
||||
- Bump version to 1.6.22
|
||||
|
||||
* Mon Aug 07 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.6.18-7
|
||||
- Bump release to rebuild with go 1.19.12
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"docker.service": "b150b3ce0947a65c655ed09dfe4e48b7464c60542f9f9902330288bbf87af38e",
|
||||
"docker.socket": "51a06786cae46bc63b7314c25d0bd5bb2e676120d80874b99e35bf60d0b0ffa8",
|
||||
"moby-engine-20.10.24.tar.gz": "5c586d9f352bbe3a16bce27dd4856baa0ef02de58433bb3e1af9976c04c7eaae",
|
||||
"moby-libnetwork-20.10.24.tar.gz": "669cf428b381dfd8e774890c908773d4f843f695cdc6f07c2711c9bec369ad4f"
|
||||
}
|
||||
"Signatures": {
|
||||
"docker.service": "b150b3ce0947a65c655ed09dfe4e48b7464c60542f9f9902330288bbf87af38e",
|
||||
"docker.socket": "51a06786cae46bc63b7314c25d0bd5bb2e676120d80874b99e35bf60d0b0ffa8",
|
||||
"moby-engine-20.10.25.tar.gz": "dbd19da08d716cf17866d77ad5022d8b1288cf6ba498fdf67895b1abf1719916",
|
||||
"moby-libnetwork-20.10.25.tar.gz": "3d76ad1fd3a29b34c86501ceb3e43f2e74dc4cd16a61a9a1eff2df0a7adfc0ec"
|
||||
}
|
||||
}
|
|
@ -1,10 +1,10 @@
|
|||
%define upstream_name moby
|
||||
%define commit_hash 87a90dc786bda134c9eb02adbae2c6a7342fb7f6
|
||||
%define commit_hash 5df983c7dbe2f8914e6efd4dd6e0083a20c41ce1
|
||||
|
||||
Summary: The open-source application container engine
|
||||
Name: %{upstream_name}-engine
|
||||
Version: 20.10.24
|
||||
Release: 4%{?dist}
|
||||
Version: 20.10.25
|
||||
Release: 1%{?dist}
|
||||
License: ASL 2.0
|
||||
Group: Tools/Container
|
||||
URL: https://mobyproject.org
|
||||
|
@ -126,6 +126,9 @@ fi
|
|||
%{_unitdir}/*
|
||||
|
||||
%changelog
|
||||
* Thu Aug 17 2023 Muhammad Falak <mwani@microsoft.com> - 20.10.25-1
|
||||
- Bump version to 20.10.25
|
||||
|
||||
* Mon Aug 07 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 20.10.24-4
|
||||
- Bump release to rebuild with go 1.19.12
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"moby-runc-1.1.5.tar.gz": "76cbf30637cbb828794d72d32fb3fd6ff3139cd9743b8b44790fd110f43d96b2"
|
||||
}
|
||||
"Signatures": {
|
||||
"moby-runc-1.1.9.tar.gz": "509993674481aad7e14aedfb280e0eb160f3a34c0b77e2e98c4b3c0b1df76894"
|
||||
}
|
||||
}
|
|
@ -1,11 +1,11 @@
|
|||
%define upstream_name runc
|
||||
%define commit_hash a916309fff0f838eb94e928713dbc3c0d0ac7aa4
|
||||
%define commit_hash ccaecfcbc907d70a7aa870a6650887b901b25b82
|
||||
|
||||
Summary: CLI tool for spawning and running containers per OCI spec.
|
||||
Name: moby-%{upstream_name}
|
||||
# update "commit_hash" above when upgrading version
|
||||
Version: 1.1.5
|
||||
Release: 4%{?dist}
|
||||
Version: 1.1.9
|
||||
Release: 1%{?dist}
|
||||
License: ASL 2.0
|
||||
URL: https://github.com/opencontainers/runc
|
||||
Group: Virtualization/Libraries
|
||||
|
@ -13,7 +13,6 @@ Vendor: Microsoft Corporation
|
|||
Distribution: Mariner
|
||||
|
||||
Source0: https://github.com/opencontainers/runc/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Patch0: 0001-cgroups-cpuset-fix-byte-order-while-parsing-cpuset-r.patch
|
||||
|
||||
BuildRequires: git
|
||||
BuildRequires: golang => 1.16
|
||||
|
@ -37,7 +36,6 @@ runC is a CLI tool for spawning and running containers according to the OCI spec
|
|||
|
||||
%prep
|
||||
%setup -q -n %{upstream_name}-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
export CGO_ENABLED=1
|
||||
|
@ -59,6 +57,9 @@ make install-man DESTDIR="%{buildroot}" PREFIX="%{_prefix}"
|
|||
%{_mandir}/*
|
||||
|
||||
%changelog
|
||||
* Tue Aug 15 2023 Muhammad Falak <mwani@microsoft.com> - 1.1.9-1
|
||||
- Bump version to 1.1.9
|
||||
|
||||
* Mon Aug 07 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.1.5-4
|
||||
- Bump release to rebuild with go 1.19.12
|
||||
|
||||
|
|
|
@ -4635,6 +4635,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "other",
|
||||
"other": {
|
||||
"name": "golang",
|
||||
"version": "1.20.7",
|
||||
"downloadUrl": "https://golang.org/dl/go1.20.7.src.tar.gz"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "other",
|
||||
|
@ -13233,8 +13243,8 @@
|
|||
"type": "other",
|
||||
"other": {
|
||||
"name": "moby-cli",
|
||||
"version": "20.10.24",
|
||||
"downloadUrl": "https://github.com/docker/cli/archive/v20.10.24.tar.gz"
|
||||
"version": "20.10.25",
|
||||
"downloadUrl": "https://github.com/docker/cli/archive/v20.10.25.tar.gz"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -13253,8 +13263,8 @@
|
|||
"type": "other",
|
||||
"other": {
|
||||
"name": "moby-containerd",
|
||||
"version": "1.6.18",
|
||||
"downloadUrl": "https://github.com/containerd/containerd/archive/v1.6.18.tar.gz"
|
||||
"version": "1.6.22",
|
||||
"downloadUrl": "https://github.com/containerd/containerd/archive/v1.6.22.tar.gz"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -13273,8 +13283,8 @@
|
|||
"type": "other",
|
||||
"other": {
|
||||
"name": "moby-engine",
|
||||
"version": "20.10.24",
|
||||
"downloadUrl": "https://github.com/moby/moby/archive/v20.10.24.tar.gz"
|
||||
"version": "20.10.25",
|
||||
"downloadUrl": "https://github.com/moby/moby/archive/v20.10.25.tar.gz"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -13283,8 +13293,8 @@
|
|||
"type": "other",
|
||||
"other": {
|
||||
"name": "moby-runc",
|
||||
"version": "1.1.5",
|
||||
"downloadUrl": "https://github.com/opencontainers/runc/archive/v1.1.5.tar.gz"
|
||||
"version": "1.1.9",
|
||||
"downloadUrl": "https://github.com/opencontainers/runc/archive/v1.1.9.tar.gz"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче