golang-1.21.git
18 months agoMerge version 1.21.10-1+rpi1 and 1.21.11-1 to produce 1.21.11-1+rpi1 archive/raspbian/1.21.11-1+rpi1 raspbian/1.21.11-1+rpi1
Raspbian automatic forward porter [Mon, 10 Jun 2024 15:09:50 +0000 (16:09 +0100)]
Merge version 1.21.10-1+rpi1 and 1.21.11-1 to produce 1.21.11-1+rpi1

18 months agoMerge golang-1.21 (1.21.11-1) import into refs/heads/workingbranch
Shengjing Zhu [Tue, 4 Jun 2024 23:29:58 +0000 (07:29 +0800)]
Merge golang-1.21 (1.21.11-1) import into refs/heads/workingbranch

18 months agoSkip flaky TestCrashDumpsAllThreads on mips64le
Shengjing Zhu [Mon, 26 Feb 2024 09:03:06 +0000 (17:03 +0800)]
Skip flaky TestCrashDumpsAllThreads on mips64le

crash_unix_test.go:145: found 3 instances of main.crashDumpsAllThreadsLoop; expected 4

Gbp-Pq: Name 0001-Skip-flaky-TestCrashDumpsAllThreads-on-mips64le.patch

18 months agogolang-1.21 (1.21.11-1) unstable; urgency=medium
Shengjing Zhu [Tue, 4 Jun 2024 23:29:58 +0000 (07:29 +0800)]
golang-1.21 (1.21.11-1) unstable; urgency=medium

  * Team upload
  * New upstream version 1.21.11
    + CVE-2024-24789: archive/zip: mishandling of corrupt central directory
      record
    + CVE-2024-24790: net/netip: unexpected behavior from Is methods for
      IPv4-mapped IPv6 addresses

[dgit import unpatched golang-1.21 1.21.11-1]

18 months agoImport golang-1.21_1.21.11.orig.tar.gz
Shengjing Zhu [Tue, 4 Jun 2024 23:29:58 +0000 (07:29 +0800)]
Import golang-1.21_1.21.11.orig.tar.gz

[dgit import orig golang-1.21_1.21.11.orig.tar.gz]

18 months agoImport golang-1.21_1.21.11-1.debian.tar.xz
Shengjing Zhu [Tue, 4 Jun 2024 23:29:58 +0000 (07:29 +0800)]
Import golang-1.21_1.21.11-1.debian.tar.xz

[dgit import tarball golang-1.21 1.21.11-1 golang-1.21_1.21.11-1.debian.tar.xz]

18 months agoMerge version 1.21.6-1+rpi1 and 1.21.10-1 to produce 1.21.10-1+rpi1 archive/raspbian/1.21.10-1+rpi1 raspbian/1.21.10-1+rpi1
Raspbian automatic forward porter [Sun, 2 Jun 2024 17:29:37 +0000 (18:29 +0100)]
Merge version 1.21.6-1+rpi1 and 1.21.10-1 to produce 1.21.10-1+rpi1

19 months agoMerge golang-1.21 (1.21.10-1) import into refs/heads/workingbranch
Shengjing Zhu [Wed, 8 May 2024 09:13:11 +0000 (17:13 +0800)]
Merge golang-1.21 (1.21.10-1) import into refs/heads/workingbranch

19 months agoSkip flaky TestCrashDumpsAllThreads on mips64le
Shengjing Zhu [Mon, 26 Feb 2024 09:03:06 +0000 (17:03 +0800)]
Skip flaky TestCrashDumpsAllThreads on mips64le

crash_unix_test.go:145: found 3 instances of main.crashDumpsAllThreadsLoop; expected 4

Gbp-Pq: Name 0001-Skip-flaky-TestCrashDumpsAllThreads-on-mips64le.patch

19 months agogolang-1.21 (1.21.10-1) unstable; urgency=medium
Shengjing Zhu [Wed, 8 May 2024 09:13:11 +0000 (17:13 +0800)]
golang-1.21 (1.21.10-1) unstable; urgency=medium

  * Team upload
  * New upstream version 1.21.10
     + CVE-2024-24788: net: malformed DNS message can cause infinite loop

[dgit import unpatched golang-1.21 1.21.10-1]

19 months agoImport golang-1.21_1.21.10.orig.tar.gz
Shengjing Zhu [Wed, 8 May 2024 09:13:11 +0000 (17:13 +0800)]
Import golang-1.21_1.21.10.orig.tar.gz

[dgit import orig golang-1.21_1.21.10.orig.tar.gz]

19 months agoImport golang-1.21_1.21.10-1.debian.tar.xz
Shengjing Zhu [Wed, 8 May 2024 09:13:11 +0000 (17:13 +0800)]
Import golang-1.21_1.21.10-1.debian.tar.xz

[dgit import tarball golang-1.21 1.21.10-1 golang-1.21_1.21.10-1.debian.tar.xz]

21 months agoMerge golang-1.21 (1.21.8-1) import into refs/heads/workingbranch
Shengjing Zhu [Wed, 6 Mar 2024 07:14:10 +0000 (15:14 +0800)]
Merge golang-1.21 (1.21.8-1) import into refs/heads/workingbranch

21 months agoSkip flaky TestCrashDumpsAllThreads on mips64le
Shengjing Zhu [Mon, 26 Feb 2024 09:03:06 +0000 (17:03 +0800)]
Skip flaky TestCrashDumpsAllThreads on mips64le

crash_unix_test.go:145: found 3 instances of main.crashDumpsAllThreadsLoop; expected 4

Gbp-Pq: Name 0001-Skip-flaky-TestCrashDumpsAllThreads-on-mips64le.patch

21 months agogolang-1.21 (1.21.8-1) unstable; urgency=medium
Shengjing Zhu [Wed, 6 Mar 2024 07:14:10 +0000 (15:14 +0800)]
golang-1.21 (1.21.8-1) unstable; urgency=medium

  * Team upload
  * New upstream version 1.21.8
    + CVE-2024-24783: crypto/x509: Verify panics on certificates with an
      unknown public key algorithm
    + CVE-2023-45290: net/http: memory exhaustion in Request.ParseMultipartForm
    + CVE-2023-45289: net/http, net/http/cookiejar: incorrect forwarding of
      sensitive headers and cookies on HTTP redirect
    + CVE-2024-24785: html/template: errors returned from MarshalJSON methods
      may break template escaping
    + CVE-2024-24784: net/mail: comments in display names are incorrectly
      handled
  * Update upstream signing key

[dgit import unpatched golang-1.21 1.21.8-1]

21 months agoImport golang-1.21_1.21.8.orig.tar.gz
Shengjing Zhu [Wed, 6 Mar 2024 07:14:10 +0000 (15:14 +0800)]
Import golang-1.21_1.21.8.orig.tar.gz

[dgit import orig golang-1.21_1.21.8.orig.tar.gz]

21 months agoImport golang-1.21_1.21.8-1.debian.tar.xz
Shengjing Zhu [Wed, 6 Mar 2024 07:14:10 +0000 (15:14 +0800)]
Import golang-1.21_1.21.8-1.debian.tar.xz

[dgit import tarball golang-1.21 1.21.8-1 golang-1.21_1.21.8-1.debian.tar.xz]

21 months agoMerge golang-1.21 (1.21.7-2) import into refs/heads/workingbranch
Shengjing Zhu [Mon, 26 Feb 2024 09:13:31 +0000 (17:13 +0800)]
Merge golang-1.21 (1.21.7-2) import into refs/heads/workingbranch

21 months agoSkip flaky TestCrashDumpsAllThreads on mips64le
Shengjing Zhu [Mon, 26 Feb 2024 09:03:06 +0000 (17:03 +0800)]
Skip flaky TestCrashDumpsAllThreads on mips64le

crash_unix_test.go:145: found 3 instances of main.crashDumpsAllThreadsLoop; expected 4

Gbp-Pq: Name 0001-Skip-flaky-TestCrashDumpsAllThreads-on-mips64le.patch

21 months agogolang-1.21 (1.21.7-2) unstable; urgency=medium
Shengjing Zhu [Mon, 26 Feb 2024 09:13:31 +0000 (17:13 +0800)]
golang-1.21 (1.21.7-2) unstable; urgency=medium

  * Team upload
  * Skip flaky TestCrashDumpsAllThreads on mips64le

[dgit import unpatched golang-1.21 1.21.7-2]

21 months agoImport golang-1.21_1.21.7-2.debian.tar.xz
Shengjing Zhu [Mon, 26 Feb 2024 09:13:31 +0000 (17:13 +0800)]
Import golang-1.21_1.21.7-2.debian.tar.xz

[dgit import tarball golang-1.21 1.21.7-2 golang-1.21_1.21.7-2.debian.tar.xz]

21 months agoMerge golang-1.21 (1.21.7-1) import into refs/heads/workingbranch
Shengjing Zhu [Wed, 21 Feb 2024 08:35:15 +0000 (16:35 +0800)]
Merge golang-1.21 (1.21.7-1) import into refs/heads/workingbranch

21 months agoImport golang-1.21_1.21.7.orig.tar.gz
Shengjing Zhu [Wed, 21 Feb 2024 08:35:15 +0000 (16:35 +0800)]
Import golang-1.21_1.21.7.orig.tar.gz

[dgit import orig golang-1.21_1.21.7.orig.tar.gz]

21 months agogolang-1.21 (1.21.7-1) unstable; urgency=medium
Shengjing Zhu [Wed, 21 Feb 2024 08:35:15 +0000 (16:35 +0800)]
golang-1.21 (1.21.7-1) unstable; urgency=medium

  * Team upload
  * New upstream version 1.21.7

[dgit import unpatched golang-1.21 1.21.7-1]

21 months agoImport golang-1.21_1.21.7-1.debian.tar.xz
Shengjing Zhu [Wed, 21 Feb 2024 08:35:15 +0000 (16:35 +0800)]
Import golang-1.21_1.21.7-1.debian.tar.xz

[dgit import tarball golang-1.21 1.21.7-1 golang-1.21_1.21.7-1.debian.tar.xz]

22 months agoMerge version 1.21.4-1+rpi1 and 1.21.6-1 to produce 1.21.6-1+rpi1 archive/raspbian/1.21.6-1+rpi1 raspbian/1.21.6-1+rpi1
Raspbian automatic forward porter [Sat, 20 Jan 2024 01:01:59 +0000 (01:01 +0000)]
Merge version 1.21.4-1+rpi1 and 1.21.6-1 to produce 1.21.6-1+rpi1

23 months agoMerge golang-1.21 (1.21.6-1) import into refs/heads/workingbranch
Shengjing Zhu [Thu, 11 Jan 2024 10:46:44 +0000 (18:46 +0800)]
Merge golang-1.21 (1.21.6-1) import into refs/heads/workingbranch

23 months agogolang-1.21 (1.21.6-1) unstable; urgency=medium
Shengjing Zhu [Thu, 11 Jan 2024 10:46:44 +0000 (18:46 +0800)]
golang-1.21 (1.21.6-1) unstable; urgency=medium

  * Team upload
  * New upstream version 1.21.6

[dgit import unpatched golang-1.21 1.21.6-1]

23 months agoImport golang-1.21_1.21.6.orig.tar.gz
Shengjing Zhu [Thu, 11 Jan 2024 10:46:44 +0000 (18:46 +0800)]
Import golang-1.21_1.21.6.orig.tar.gz

[dgit import orig golang-1.21_1.21.6.orig.tar.gz]

23 months agoImport golang-1.21_1.21.6-1.debian.tar.xz
Shengjing Zhu [Thu, 11 Jan 2024 10:46:44 +0000 (18:46 +0800)]
Import golang-1.21_1.21.6-1.debian.tar.xz

[dgit import tarball golang-1.21 1.21.6-1 golang-1.21_1.21.6-1.debian.tar.xz]

2 years agoMerge golang-1.21 (1.21.5-1) import into refs/heads/workingbranch
Shengjing Zhu [Wed, 6 Dec 2023 07:32:23 +0000 (15:32 +0800)]
Merge golang-1.21 (1.21.5-1) import into refs/heads/workingbranch

2 years agogolang-1.21 (1.21.5-1) unstable; urgency=medium
Shengjing Zhu [Wed, 6 Dec 2023 07:32:23 +0000 (15:32 +0800)]
golang-1.21 (1.21.5-1) unstable; urgency=medium

  * Team upload
  * New upstream version 1.21.5
    + CVE-2023-39326: net/http: limit chunked data overhead
    + CVE-2023-45285: cmd/go: go get may unexpectedly fallback to insecure git
    + CVE-2023-45283: path/filepath: retain trailing \ when cleaning paths
      like \\?\c:\

[dgit import unpatched golang-1.21 1.21.5-1]

2 years agoImport golang-1.21_1.21.5.orig.tar.gz
Shengjing Zhu [Wed, 6 Dec 2023 07:32:23 +0000 (15:32 +0800)]
Import golang-1.21_1.21.5.orig.tar.gz

[dgit import orig golang-1.21_1.21.5.orig.tar.gz]

2 years agoImport golang-1.21_1.21.5-1.debian.tar.xz
Shengjing Zhu [Wed, 6 Dec 2023 07:32:23 +0000 (15:32 +0800)]
Import golang-1.21_1.21.5-1.debian.tar.xz

[dgit import tarball golang-1.21 1.21.5-1 golang-1.21_1.21.5-1.debian.tar.xz]

2 years agoMerge version 1.21.3-1+rpi1 and 1.21.4-1 to produce 1.21.4-1+rpi1 archive/raspbian/1.21.4-1+rpi1 raspbian/1.21.4-1+rpi1
Raspbian automatic forward porter [Fri, 17 Nov 2023 05:35:29 +0000 (05:35 +0000)]
Merge version 1.21.3-1+rpi1 and 1.21.4-1 to produce 1.21.4-1+rpi1

2 years agoMerge golang-1.21 (1.21.4-1) import into refs/heads/workingbranch
Shengjing Zhu [Tue, 7 Nov 2023 19:40:30 +0000 (03:40 +0800)]
Merge golang-1.21 (1.21.4-1) import into refs/heads/workingbranch

2 years agogolang-1.21 (1.21.4-1) unstable; urgency=medium
Shengjing Zhu [Tue, 7 Nov 2023 19:40:30 +0000 (03:40 +0800)]
golang-1.21 (1.21.4-1) unstable; urgency=medium

  * Team upload
  * New upstream version 1.21.4
    + CVE-2023-45283: path/filepath: recognize \??\ as a Root Local Device
      path prefix.
    + CVE-2023-45284: path/filepath: recognize device names with trailing
      spaces and superscripts.

[dgit import unpatched golang-1.21 1.21.4-1]

2 years agoImport golang-1.21_1.21.4.orig.tar.gz
Shengjing Zhu [Tue, 7 Nov 2023 19:40:30 +0000 (03:40 +0800)]
Import golang-1.21_1.21.4.orig.tar.gz

[dgit import orig golang-1.21_1.21.4.orig.tar.gz]

2 years agoImport golang-1.21_1.21.4-1.debian.tar.xz
Shengjing Zhu [Tue, 7 Nov 2023 19:40:30 +0000 (03:40 +0800)]
Import golang-1.21_1.21.4-1.debian.tar.xz

[dgit import tarball golang-1.21 1.21.4-1 golang-1.21_1.21.4-1.debian.tar.xz]

2 years agoMerge version 1.21.2-1+rpi1 and 1.21.3-1 to produce 1.21.3-1+rpi1 archive/raspbian/1.21.3-1+rpi1 raspbian/1.21.3-1+rpi1
Raspbian automatic forward porter [Sat, 21 Oct 2023 00:22:03 +0000 (01:22 +0100)]
Merge version 1.21.2-1+rpi1 and 1.21.3-1 to produce 1.21.3-1+rpi1

2 years agoMerge version 1.21.1-1+rpi1 and 1.21.2-1 to produce 1.21.2-1+rpi1 archive/raspbian/1.21.2-1+rpi1 raspbian/1.21.2-1+rpi1
Raspbian automatic forward porter [Thu, 12 Oct 2023 02:51:58 +0000 (03:51 +0100)]
Merge version 1.21.1-1+rpi1 and 1.21.2-1 to produce 1.21.2-1+rpi1

2 years agoMerge golang-1.21 (1.21.3-1) import into refs/heads/workingbranch
Shengjing Zhu [Wed, 11 Oct 2023 06:53:53 +0000 (07:53 +0100)]
Merge golang-1.21 (1.21.3-1) import into refs/heads/workingbranch

2 years agogolang-1.21 (1.21.3-1) unstable; urgency=medium
Shengjing Zhu [Wed, 11 Oct 2023 06:53:53 +0000 (07:53 +0100)]
golang-1.21 (1.21.3-1) unstable; urgency=medium

  * Team upload
  * New upstream version 1.21.3
    + CVE-2023-44487/CVE-2023-39325: net/http: rapid stream resets can cause
      excessive work

[dgit import unpatched golang-1.21 1.21.3-1]

2 years agoImport golang-1.21_1.21.3.orig.tar.gz
Shengjing Zhu [Wed, 11 Oct 2023 06:53:53 +0000 (07:53 +0100)]
Import golang-1.21_1.21.3.orig.tar.gz

[dgit import orig golang-1.21_1.21.3.orig.tar.gz]

2 years agoImport golang-1.21_1.21.3-1.debian.tar.xz
Shengjing Zhu [Wed, 11 Oct 2023 06:53:53 +0000 (07:53 +0100)]
Import golang-1.21_1.21.3-1.debian.tar.xz

[dgit import tarball golang-1.21 1.21.3-1 golang-1.21_1.21.3-1.debian.tar.xz]

2 years agoMerge golang-1.21 (1.21.1-1+rpi1) import into refs/heads/workingbranch
Peter Michael Green [Sat, 7 Oct 2023 14:01:26 +0000 (15:01 +0100)]
Merge golang-1.21 (1.21.1-1+rpi1) import into refs/heads/workingbranch

2 years agogolang-1.21 (1.21.1-1+rpi1) trixie-staging; urgency=medium
Peter Michael Green [Sat, 7 Oct 2023 14:01:26 +0000 (15:01 +0100)]
golang-1.21 (1.21.1-1+rpi1) trixie-staging; urgency=medium

  * Disable testsuite.

[dgit import unpatched golang-1.21 1.21.1-1+rpi1]

2 years agoImport golang-1.21_1.21.1-1+rpi1.debian.tar.xz
Peter Michael Green [Sat, 7 Oct 2023 14:01:26 +0000 (15:01 +0100)]
Import golang-1.21_1.21.1-1+rpi1.debian.tar.xz

[dgit import tarball golang-1.21 1.21.1-1+rpi1 golang-1.21_1.21.1-1+rpi1.debian.tar.xz]

2 years agoMerge golang-1.21 (1.21.2-1) import into refs/heads/workingbranch
Shengjing Zhu [Fri, 6 Oct 2023 11:35:37 +0000 (12:35 +0100)]
Merge golang-1.21 (1.21.2-1) import into refs/heads/workingbranch

2 years agogolang-1.21 (1.21.2-1) unstable; urgency=medium
Shengjing Zhu [Fri, 6 Oct 2023 11:35:37 +0000 (12:35 +0100)]
golang-1.21 (1.21.2-1) unstable; urgency=medium

  * Team upload
  * New upstream version 1.21.2
    + CVE-2023-39323: cmd/go: line directives allows arbitrary execution during
      build

[dgit import unpatched golang-1.21 1.21.2-1]

2 years agoImport golang-1.21_1.21.2.orig.tar.gz
Shengjing Zhu [Fri, 6 Oct 2023 11:35:37 +0000 (12:35 +0100)]
Import golang-1.21_1.21.2.orig.tar.gz

[dgit import orig golang-1.21_1.21.2.orig.tar.gz]

2 years agoImport golang-1.21_1.21.2-1.debian.tar.xz
Shengjing Zhu [Fri, 6 Oct 2023 11:35:37 +0000 (12:35 +0100)]
Import golang-1.21_1.21.2-1.debian.tar.xz

[dgit import tarball golang-1.21 1.21.2-1 golang-1.21_1.21.2-1.debian.tar.xz]

2 years agoMerge golang-1.21 (1.21.1-1) import into refs/heads/workingbranch
Shengjing Zhu [Thu, 7 Sep 2023 03:51:55 +0000 (04:51 +0100)]
Merge golang-1.21 (1.21.1-1) import into refs/heads/workingbranch

2 years agoImport golang-1.21_1.21.1.orig.tar.gz
Shengjing Zhu [Thu, 7 Sep 2023 03:51:55 +0000 (04:51 +0100)]
Import golang-1.21_1.21.1.orig.tar.gz

[dgit import orig golang-1.21_1.21.1.orig.tar.gz]

2 years agogolang-1.21 (1.21.1-1) unstable; urgency=medium
Shengjing Zhu [Thu, 7 Sep 2023 03:51:55 +0000 (04:51 +0100)]
golang-1.21 (1.21.1-1) unstable; urgency=medium

  * Team upload
  * New upstream version 1.21.1
    + CVE-2023-39320: cmd/go: go.mod toolchain directive allows arbitrary
      execution
    + CVE-2023-39318: html/template: improper handling of HTML-like comments
      within script contexts
    + CVE-2023-39319: html/template: improper handling of special tags within
      script contexts
    + CVE-2023-39321/CVE-2023-39322: crypto/tls: panic when processing
      post-handshake message on QUIC connections

[dgit import unpatched golang-1.21 1.21.1-1]

2 years agoImport golang-1.21_1.21.1-1.debian.tar.xz
Shengjing Zhu [Thu, 7 Sep 2023 03:51:55 +0000 (04:51 +0100)]
Import golang-1.21_1.21.1-1.debian.tar.xz

[dgit import tarball golang-1.21 1.21.1-1 golang-1.21_1.21.1-1.debian.tar.xz]

4 years agoMerge golang-1.15 (1.15.7-1) import into refs/heads/workingbranch
Shengjing Zhu [Fri, 22 Jan 2021 17:59:14 +0000 (17:59 +0000)]
Merge golang-1.15 (1.15.7-1) import into refs/heads/workingbranch

4 years ago[PATCH] cmd/dist: increase default timeout scale for arm
Balint Reczey [Mon, 31 Aug 2020 11:14:51 +0000 (13:14 +0200)]
[PATCH] cmd/dist: increase default timeout scale for arm

Forwarded: https://github.com/golang/go/issues/43002

Most developers use (faster) amd64 machines setting the test timeouts,
but test may run on slower arm ones and also different tests may suffer
different relative slowdown on the arm CPUs.

Due to those two varying factors it is safer to allow a higher timeout
scale on arm to avoid tests timing out.

Gbp-Pq: Name 0006-cmd-dist-increase-default-timeout-scale-for-arm.patch

4 years agocmd/dist: fix build failure of misc/cgo/test on arm64
Xiangdong Ji [Wed, 5 Aug 2020 06:02:58 +0000 (06:02 +0000)]
cmd/dist: fix build failure of misc/cgo/test on arm64

Test7978 of misc/cgo/test fails in 'dist test' on arm64 if the C compiler
is of GCC-9.4 or above and its 'outline atomics' feature is enabled, since
the internal linking hasn't yet supported "__attribute__((constructor))"
and also mis-handles hidden visibility.

Two changes are made for 'misc/cgo/test' to fix the issue:
  1. passing "-tags=internal" for the internal linking PIE case.
  2. skipping Test7978 on arm64 for the internal linking cases.

This CL fixes 'dist test' failure only, user is expected to pass the option
'-mno-outline-atomics' via CGO_CFLAGS if running into the same problem when
building cgo program using internal linking.

Updates #39466
Change-Id: I2011bb051cae7c43eb0f1c78c7f4fbdb94bf78a6

Gbp-Pq: Name 0004-cmd-dist-fix-build-failure-of-misc-cgo-test-on-arm64.patch

4 years agocmd/go, cmd/cgo: pass -mfp32 and -mhard/soft-float to MIPS GCC
YunQiang Su [Tue, 9 Jun 2020 04:09:58 +0000 (04:09 +0000)]
cmd/go, cmd/cgo: pass -mfp32 and -mhard/soft-float to MIPS GCC

For mips32 currently, we are using FP32, while the gcc may be FPXX,
which may generate .MIPS.abiflags and .gnu.attributes section with
value as FPXX. So the kernel will treat the exe as FPXX, and may
choose to use FR=1 FPU mode for it.
Currently, in Go, we use 2 lwc1 to load both half of a double value
to a pair of even-odd FPR. This behavior can only work with FR=0 mode.

In FR=1 mode, all of 32 FPR are 64bit. If we lwc1 the high-half of a double
value to an odd FPR, and try to use the previous even FPR to compute, the
real high-half of even FPR will be unpredicatable.
We set -mfp32 to force the gcc generate FP32 code and section value.

More details about FP32/FPXX/FP64 are explained in:
https://web.archive.org/web/20180828210612/https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking

When GOMIPS/GOMIPS64 is set as softfloat, we should also pass
 -msoft-float to gcc.

Here we also add -mno-odd-spreg option, since Loongson's CPU cannot use
odd-number FR in FR=0 mode.

Fixes #39435

Change-Id: I54026ad416a815fe43a9261ebf6d02e5519c3930

Gbp-Pq: Name 0003-cmd-go-cmd-cgo-pass-mfp32-and-mhard-soft-float-to-MI.patch

4 years agoFix Lintian warnings about wrong interpreter path
Dr. Tobias Quathamer [Thu, 1 Aug 2019 11:50:48 +0000 (13:50 +0200)]
Fix Lintian warnings about wrong interpreter path

The command used for this change is as follows:

grep -rH "/usr/bin/env perl" * | cut -d: -f1 | xargs -n1 sed -i -e "s,/usr/bin/env perl,/usr/bin/perl,"

Gbp-Pq: Name 0002-Fix-Lintian-warnings-about-wrong-interpreter-path.patch

4 years agoDisable test for UserHomeDir.
Dr. Tobias Quathamer [Wed, 19 Dec 2018 13:25:06 +0000 (14:25 +0100)]
Disable test for UserHomeDir.

On Debian buildds, the user home dir does not exist, so this test fails.

Gbp-Pq: Name 0001-Disable-test-for-UserHomeDir.patch

4 years agogolang-1.15 (1.15.7-1) unstable; urgency=medium
Shengjing Zhu [Fri, 22 Jan 2021 17:59:14 +0000 (17:59 +0000)]
golang-1.15 (1.15.7-1) unstable; urgency=medium

  * Team upload.
  * New upstream version 1.15.7
    + crypto/elliptic: incorrect operations on the P-224 curve
      CVE-2021-3114

[dgit import unpatched golang-1.15 1.15.7-1]

4 years agoImport golang-1.15_1.15.7.orig.tar.gz
Shengjing Zhu [Fri, 22 Jan 2021 17:59:14 +0000 (17:59 +0000)]
Import golang-1.15_1.15.7.orig.tar.gz

[dgit import orig golang-1.15_1.15.7.orig.tar.gz]

4 years agoImport golang-1.15_1.15.7-1.debian.tar.xz
Shengjing Zhu [Fri, 22 Jan 2021 17:59:14 +0000 (17:59 +0000)]
Import golang-1.15_1.15.7-1.debian.tar.xz

[dgit import tarball golang-1.15 1.15.7-1 golang-1.15_1.15.7-1.debian.tar.xz]

5 years agoMerge golang-1.15 (1.15.6-1) import into refs/heads/workingbranch
Shengjing Zhu [Sun, 13 Dec 2020 10:27:59 +0000 (10:27 +0000)]
Merge golang-1.15 (1.15.6-1) import into refs/heads/workingbranch

5 years ago[PATCH] cmd/dist: increase default timeout scale for arm
Balint Reczey [Mon, 31 Aug 2020 11:14:51 +0000 (13:14 +0200)]
[PATCH] cmd/dist: increase default timeout scale for arm

Forwarded: https://github.com/golang/go/issues/43002

Most developers use (faster) amd64 machines setting the test timeouts,
but test may run on slower arm ones and also different tests may suffer
different relative slowdown on the arm CPUs.

Due to those two varying factors it is safer to allow a higher timeout
scale on arm to avoid tests timing out.

Gbp-Pq: Name 0006-cmd-dist-increase-default-timeout-scale-for-arm.patch

5 years agocmd/dist: fix build failure of misc/cgo/test on arm64
Xiangdong Ji [Wed, 5 Aug 2020 06:02:58 +0000 (06:02 +0000)]
cmd/dist: fix build failure of misc/cgo/test on arm64

Test7978 of misc/cgo/test fails in 'dist test' on arm64 if the C compiler
is of GCC-9.4 or above and its 'outline atomics' feature is enabled, since
the internal linking hasn't yet supported "__attribute__((constructor))"
and also mis-handles hidden visibility.

Two changes are made for 'misc/cgo/test' to fix the issue:
  1. passing "-tags=internal" for the internal linking PIE case.
  2. skipping Test7978 on arm64 for the internal linking cases.

This CL fixes 'dist test' failure only, user is expected to pass the option
'-mno-outline-atomics' via CGO_CFLAGS if running into the same problem when
building cgo program using internal linking.

Updates #39466
Change-Id: I2011bb051cae7c43eb0f1c78c7f4fbdb94bf78a6

Gbp-Pq: Name 0004-cmd-dist-fix-build-failure-of-misc-cgo-test-on-arm64.patch

5 years agocmd/go, cmd/cgo: pass -mfp32 and -mhard/soft-float to MIPS GCC
YunQiang Su [Tue, 9 Jun 2020 04:09:58 +0000 (04:09 +0000)]
cmd/go, cmd/cgo: pass -mfp32 and -mhard/soft-float to MIPS GCC

For mips32 currently, we are using FP32, while the gcc may be FPXX,
which may generate .MIPS.abiflags and .gnu.attributes section with
value as FPXX. So the kernel will treat the exe as FPXX, and may
choose to use FR=1 FPU mode for it.
Currently, in Go, we use 2 lwc1 to load both half of a double value
to a pair of even-odd FPR. This behavior can only work with FR=0 mode.

In FR=1 mode, all of 32 FPR are 64bit. If we lwc1 the high-half of a double
value to an odd FPR, and try to use the previous even FPR to compute, the
real high-half of even FPR will be unpredicatable.
We set -mfp32 to force the gcc generate FP32 code and section value.

More details about FP32/FPXX/FP64 are explained in:
https://web.archive.org/web/20180828210612/https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking

When GOMIPS/GOMIPS64 is set as softfloat, we should also pass
 -msoft-float to gcc.

Here we also add -mno-odd-spreg option, since Loongson's CPU cannot use
odd-number FR in FR=0 mode.

Fixes #39435

Change-Id: I54026ad416a815fe43a9261ebf6d02e5519c3930

Gbp-Pq: Name 0003-cmd-go-cmd-cgo-pass-mfp32-and-mhard-soft-float-to-MI.patch

5 years agoFix Lintian warnings about wrong interpreter path
Dr. Tobias Quathamer [Thu, 1 Aug 2019 11:50:48 +0000 (13:50 +0200)]
Fix Lintian warnings about wrong interpreter path

The command used for this change is as follows:

grep -rH "/usr/bin/env perl" * | cut -d: -f1 | xargs -n1 sed -i -e "s,/usr/bin/env perl,/usr/bin/perl,"

Gbp-Pq: Name 0002-Fix-Lintian-warnings-about-wrong-interpreter-path.patch

5 years agoDisable test for UserHomeDir.
Dr. Tobias Quathamer [Wed, 19 Dec 2018 13:25:06 +0000 (14:25 +0100)]
Disable test for UserHomeDir.

On Debian buildds, the user home dir does not exist, so this test fails.

Gbp-Pq: Name 0001-Disable-test-for-UserHomeDir.patch

5 years agogolang-1.15 (1.15.6-1) unstable; urgency=medium
Shengjing Zhu [Sun, 13 Dec 2020 10:27:59 +0000 (10:27 +0000)]
golang-1.15 (1.15.6-1) unstable; urgency=medium

  * Team upload.

  [ Balint Reczey ]
  * cmd/dist: increase default timeout scale for arm (LP: #1893640)

  [ Shengjing Zhu ]
  * New upstream version 1.15.6
  * Drop CGO_LDFLAGS patch, fixed in go1.15.6

[dgit import unpatched golang-1.15 1.15.6-1]

5 years agoImport golang-1.15_1.15.6.orig.tar.gz
Shengjing Zhu [Sun, 13 Dec 2020 10:27:59 +0000 (10:27 +0000)]
Import golang-1.15_1.15.6.orig.tar.gz

[dgit import orig golang-1.15_1.15.6.orig.tar.gz]

5 years agoImport golang-1.15_1.15.6-1.debian.tar.xz
Shengjing Zhu [Sun, 13 Dec 2020 10:27:59 +0000 (10:27 +0000)]
Import golang-1.15_1.15.6-1.debian.tar.xz

[dgit import tarball golang-1.15 1.15.6-1 golang-1.15_1.15.6-1.debian.tar.xz]

5 years agoMerge golang-1.15 (1.15.5-2) import into refs/heads/workingbranch
Shengjing Zhu [Tue, 17 Nov 2020 16:46:08 +0000 (16:46 +0000)]
Merge golang-1.15 (1.15.5-2) import into refs/heads/workingbranch

5 years agocmd/go: permit CGO_LDFLAGS to appear in //go:ldflag
Ian Lance Taylor [Fri, 13 Nov 2020 19:05:37 +0000 (11:05 -0800)]
cmd/go: permit CGO_LDFLAGS to appear in //go:ldflag

For #42565
Fixes #42567

Change-Id: If7cf39905d124dbd54dfac6a53ee38270498efed
Reviewed-on: https://go-review.googlesource.com/c/go/+/269818
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
(cherry picked from commit 782cf560db4c919790fdb476d1bbe18e5ddf5ffd)
Reviewed-on: https://go-review.googlesource.com/c/go/+/270137

Gbp-Pq: Name 0005-cmd-go-permit-CGO_LDFLAGS-to-appear-in-go-ldflag.patch

5 years agocmd/dist: fix build failure of misc/cgo/test on arm64
Xiangdong Ji [Wed, 5 Aug 2020 06:02:58 +0000 (06:02 +0000)]
cmd/dist: fix build failure of misc/cgo/test on arm64

Test7978 of misc/cgo/test fails in 'dist test' on arm64 if the C compiler
is of GCC-9.4 or above and its 'outline atomics' feature is enabled, since
the internal linking hasn't yet supported "__attribute__((constructor))"
and also mis-handles hidden visibility.

Two changes are made for 'misc/cgo/test' to fix the issue:
  1. passing "-tags=internal" for the internal linking PIE case.
  2. skipping Test7978 on arm64 for the internal linking cases.

This CL fixes 'dist test' failure only, user is expected to pass the option
'-mno-outline-atomics' via CGO_CFLAGS if running into the same problem when
building cgo program using internal linking.

Updates #39466
Change-Id: I2011bb051cae7c43eb0f1c78c7f4fbdb94bf78a6

Gbp-Pq: Name 0004-cmd-dist-fix-build-failure-of-misc-cgo-test-on-arm64.patch

5 years agocmd/go, cmd/cgo: pass -mfp32 and -mhard/soft-float to MIPS GCC
YunQiang Su [Tue, 9 Jun 2020 04:09:58 +0000 (04:09 +0000)]
cmd/go, cmd/cgo: pass -mfp32 and -mhard/soft-float to MIPS GCC

For mips32 currently, we are using FP32, while the gcc may be FPXX,
which may generate .MIPS.abiflags and .gnu.attributes section with
value as FPXX. So the kernel will treat the exe as FPXX, and may
choose to use FR=1 FPU mode for it.
Currently, in Go, we use 2 lwc1 to load both half of a double value
to a pair of even-odd FPR. This behavior can only work with FR=0 mode.

In FR=1 mode, all of 32 FPR are 64bit. If we lwc1 the high-half of a double
value to an odd FPR, and try to use the previous even FPR to compute, the
real high-half of even FPR will be unpredicatable.
We set -mfp32 to force the gcc generate FP32 code and section value.

More details about FP32/FPXX/FP64 are explained in:
https://web.archive.org/web/20180828210612/https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking

When GOMIPS/GOMIPS64 is set as softfloat, we should also pass
 -msoft-float to gcc.

Here we also add -mno-odd-spreg option, since Loongson's CPU cannot use
odd-number FR in FR=0 mode.

Fixes #39435

Change-Id: I54026ad416a815fe43a9261ebf6d02e5519c3930

Gbp-Pq: Name 0003-cmd-go-cmd-cgo-pass-mfp32-and-mhard-soft-float-to-MI.patch

5 years agoFix Lintian warnings about wrong interpreter path
Dr. Tobias Quathamer [Thu, 1 Aug 2019 11:50:48 +0000 (13:50 +0200)]
Fix Lintian warnings about wrong interpreter path

The command used for this change is as follows:

grep -rH "/usr/bin/env perl" * | cut -d: -f1 | xargs -n1 sed -i -e "s,/usr/bin/env perl,/usr/bin/perl,"

Gbp-Pq: Name 0002-Fix-Lintian-warnings-about-wrong-interpreter-path.patch

5 years agoDisable test for UserHomeDir.
Dr. Tobias Quathamer [Wed, 19 Dec 2018 13:25:06 +0000 (14:25 +0100)]
Disable test for UserHomeDir.

On Debian buildds, the user home dir does not exist, so this test fails.

Gbp-Pq: Name 0001-Disable-test-for-UserHomeDir.patch

5 years agogolang-1.15 (1.15.5-2) unstable; urgency=medium
Shengjing Zhu [Tue, 17 Nov 2020 16:46:08 +0000 (16:46 +0000)]
golang-1.15 (1.15.5-2) unstable; urgency=medium

  * Team upload.
  * Backport patch to fix usability regression in go1.15.5
    cmd/go: allow flags in CGO_LDFLAGS environment variable not in security allowlist
    https://github.com/golang/go/issues/42567

[dgit import unpatched golang-1.15 1.15.5-2]

5 years agoImport golang-1.15_1.15.5-2.debian.tar.xz
Shengjing Zhu [Tue, 17 Nov 2020 16:46:08 +0000 (16:46 +0000)]
Import golang-1.15_1.15.5-2.debian.tar.xz

[dgit import tarball golang-1.15 1.15.5-2 golang-1.15_1.15.5-2.debian.tar.xz]

5 years agoImport golang-1.15_1.15.5.orig.tar.gz
Michael Hudson-Doyle [Thu, 12 Nov 2020 20:40:16 +0000 (20:40 +0000)]
Import golang-1.15_1.15.5.orig.tar.gz

[dgit import orig golang-1.15_1.15.5.orig.tar.gz]

5 years agoMerge golang-1.15 (1.15.2-1) import into refs/heads/workingbranch
Michael Hudson-Doyle [Mon, 14 Sep 2020 21:51:42 +0000 (22:51 +0100)]
Merge golang-1.15 (1.15.2-1) import into refs/heads/workingbranch

5 years agocmd/dist: fix build failure of misc/cgo/test on arm64
Xiangdong Ji [Wed, 5 Aug 2020 06:02:58 +0000 (06:02 +0000)]
cmd/dist: fix build failure of misc/cgo/test on arm64

Test7978 of misc/cgo/test fails in 'dist test' on arm64 if the C compiler
is of GCC-9.4 or above and its 'outline atomics' feature is enabled, since
the internal linking hasn't yet supported "__attribute__((constructor))"
and also mis-handles hidden visibility.

Two changes are made for 'misc/cgo/test' to fix the issue:
  1. passing "-tags=internal" for the internal linking PIE case.
  2. skipping Test7978 on arm64 for the internal linking cases.

This CL fixes 'dist test' failure only, user is expected to pass the option
'-mno-outline-atomics' via CGO_CFLAGS if running into the same problem when
building cgo program using internal linking.

Updates #39466
Change-Id: I2011bb051cae7c43eb0f1c78c7f4fbdb94bf78a6

Gbp-Pq: Name 0004-cmd-dist-fix-build-failure-of-misc-cgo-test-on-arm64.patch

5 years agocmd/go, cmd/cgo: pass -mfp32 and -mhard/soft-float to MIPS GCC
YunQiang Su [Tue, 9 Jun 2020 04:09:58 +0000 (04:09 +0000)]
cmd/go, cmd/cgo: pass -mfp32 and -mhard/soft-float to MIPS GCC

For mips32 currently, we are using FP32, while the gcc may be FPXX,
which may generate .MIPS.abiflags and .gnu.attributes section with
value as FPXX. So the kernel will treat the exe as FPXX, and may
choose to use FR=1 FPU mode for it.
Currently, in Go, we use 2 lwc1 to load both half of a double value
to a pair of even-odd FPR. This behavior can only work with FR=0 mode.

In FR=1 mode, all of 32 FPR are 64bit. If we lwc1 the high-half of a double
value to an odd FPR, and try to use the previous even FPR to compute, the
real high-half of even FPR will be unpredicatable.
We set -mfp32 to force the gcc generate FP32 code and section value.

More details about FP32/FPXX/FP64 are explained in:
https://web.archive.org/web/20180828210612/https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking

When GOMIPS/GOMIPS64 is set as softfloat, we should also pass
 -msoft-float to gcc.

Here we also add -mno-odd-spreg option, since Loongson's CPU cannot use
odd-number FR in FR=0 mode.

Fixes #39435

Change-Id: I54026ad416a815fe43a9261ebf6d02e5519c3930

Gbp-Pq: Name 0003-cmd-go-cmd-cgo-pass-mfp32-and-mhard-soft-float-to-MI.patch

5 years agoFix Lintian warnings about wrong interpreter path
Dr. Tobias Quathamer [Thu, 1 Aug 2019 11:50:48 +0000 (13:50 +0200)]
Fix Lintian warnings about wrong interpreter path

The command used for this change is as follows:

grep -rH "/usr/bin/env perl" * | cut -d: -f1 | xargs -n1 sed -i -e "s,/usr/bin/env perl,/usr/bin/perl,"

Gbp-Pq: Name 0002-Fix-Lintian-warnings-about-wrong-interpreter-path.patch

5 years agoDisable test for UserHomeDir.
Dr. Tobias Quathamer [Wed, 19 Dec 2018 13:25:06 +0000 (14:25 +0100)]
Disable test for UserHomeDir.

On Debian buildds, the user home dir does not exist, so this test fails.

Gbp-Pq: Name 0001-Disable-test-for-UserHomeDir.patch

5 years agogolang-1.15 (1.15.2-1) unstable; urgency=medium
Michael Hudson-Doyle [Mon, 14 Sep 2020 21:51:42 +0000 (22:51 +0100)]
golang-1.15 (1.15.2-1) unstable; urgency=medium

  * New upstream version 1.15.2.

[dgit import unpatched golang-1.15 1.15.2-1]

5 years agoImport golang-1.15_1.15.2.orig.tar.gz
Michael Hudson-Doyle [Mon, 14 Sep 2020 21:51:42 +0000 (22:51 +0100)]
Import golang-1.15_1.15.2.orig.tar.gz

[dgit import orig golang-1.15_1.15.2.orig.tar.gz]

5 years agoImport golang-1.15_1.15.2-1.debian.tar.xz
Michael Hudson-Doyle [Mon, 14 Sep 2020 21:51:42 +0000 (22:51 +0100)]
Import golang-1.15_1.15.2-1.debian.tar.xz

[dgit import tarball golang-1.15 1.15.2-1 golang-1.15_1.15.2-1.debian.tar.xz]

5 years agoMerge golang-1.14 (1.14.4-1) import into refs/heads/workingbranch
Dr. Tobias Quathamer [Mon, 15 Jun 2020 19:19:41 +0000 (20:19 +0100)]
Merge golang-1.14 (1.14.4-1) import into refs/heads/workingbranch

5 years agoFix FTBFS on $HOME managed with git.
Bryan C. Mills [Fri, 13 Mar 2020 16:51:09 +0000 (12:51 -0400)]
Fix FTBFS on $HOME managed with git.

This is a cherry-pick of
https://github.com/golang/go/commit/e2a9ea035d73df84c813132417366e8e01777c8d

cmd/go/internal/modload: suppress the 'go mod init' hint for GOROOT more aggressively

Previously, we suppressed a `to create a module there, run: … go mod
init' warning only if the config file itself (such as .git/config) was
found in GOROOT. However, our release tarballs don't include the
.git/config, so that case was not encountered, and the warning could
occur based on a config file found in some parent directory (outside
of GOROOT entirely).

Instead, skip the directory walk completely if the working directory
is anywhere in GOROOT.

Fixes #34191

Change-Id: I9f774901bfbb53b700407c4882f37d6339d023fe
Reviewed-on: https://go-review.googlesource.com/c/go/+/223340
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Gbp-Pq: Name 0003-Fix-FTBFS-on-HOME-managed-with-git.patch

5 years agoFix Lintian warnings about wrong interpreter path
Dr. Tobias Quathamer [Thu, 1 Aug 2019 11:50:48 +0000 (13:50 +0200)]
Fix Lintian warnings about wrong interpreter path

The command used for this change is as follows:

grep -rH "/usr/bin/env perl" * | cut -d: -f1 | xargs -n1 sed -i -e "s,/usr/bin/env perl,/usr/bin/perl,"

Gbp-Pq: Name 0002-Fix-Lintian-warnings-about-wrong-interpreter-path.patch

5 years agoDisable test for UserHomeDir.
Dr. Tobias Quathamer [Wed, 19 Dec 2018 13:25:06 +0000 (14:25 +0100)]
Disable test for UserHomeDir.

On Debian buildds, the user home dir does not exist, so this test fails.

Gbp-Pq: Name 0001-Disable-test-for-UserHomeDir.patch

5 years agogolang-1.14 (1.14.4-1) unstable; urgency=medium
Dr. Tobias Quathamer [Mon, 15 Jun 2020 19:19:41 +0000 (20:19 +0100)]
golang-1.14 (1.14.4-1) unstable; urgency=medium

  * New upstream version 1.14.4
    - Refresh patches

[dgit import unpatched golang-1.14 1.14.4-1]

5 years agoImport golang-1.14_1.14.4.orig.tar.gz
Dr. Tobias Quathamer [Mon, 15 Jun 2020 19:19:41 +0000 (20:19 +0100)]
Import golang-1.14_1.14.4.orig.tar.gz

[dgit import orig golang-1.14_1.14.4.orig.tar.gz]

5 years agoImport golang-1.14_1.14.4-1.debian.tar.xz
Dr. Tobias Quathamer [Mon, 15 Jun 2020 19:19:41 +0000 (20:19 +0100)]
Import golang-1.14_1.14.4-1.debian.tar.xz

[dgit import tarball golang-1.14 1.14.4-1 golang-1.14_1.14.4-1.debian.tar.xz]

5 years agoMerge golang-1.14 (1.14.3-2) import into refs/heads/workingbranch
Dr. Tobias Quathamer [Sat, 16 May 2020 12:32:28 +0000 (13:32 +0100)]
Merge golang-1.14 (1.14.3-2) import into refs/heads/workingbranch

5 years agoFix FTBFS on $HOME managed with git.
Bryan C. Mills [Fri, 13 Mar 2020 16:51:09 +0000 (12:51 -0400)]
Fix FTBFS on $HOME managed with git.

This is a cherry-pick of
https://github.com/golang/go/commit/e2a9ea035d73df84c813132417366e8e01777c8d

cmd/go/internal/modload: suppress the 'go mod init' hint for GOROOT more aggressively

Previously, we suppressed a `to create a module there, run: … go mod
init' warning only if the config file itself (such as .git/config) was
found in GOROOT. However, our release tarballs don't include the
.git/config, so that case was not encountered, and the warning could
occur based on a config file found in some parent directory (outside
of GOROOT entirely).

Instead, skip the directory walk completely if the working directory
is anywhere in GOROOT.

Fixes #34191

Change-Id: I9f774901bfbb53b700407c4882f37d6339d023fe
Reviewed-on: https://go-review.googlesource.com/c/go/+/223340
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Gbp-Pq: Name 0003-Fix-FTBFS-on-HOME-managed-with-git.patch