golang-1.15.git
4 years agoMerge version 1.15.8-4+rpi1 and 1.15.9-1 to produce 1.15.9-1+rpi1 archive/raspbian/1.15.9-1+rpi1 raspbian/1.15.9-1+rpi1
Raspbian automatic forward porter [Thu, 18 Mar 2021 19:28:47 +0000 (19:28 +0000)]
Merge version 1.15.8-4+rpi1 and 1.15.9-1 to produce 1.15.9-1+rpi1

4 years agoMerge golang-1.15 (1.15.9-1) import into refs/heads/workingbranch
Shengjing Zhu [Thu, 11 Mar 2021 15:43:18 +0000 (15:43 +0000)]
Merge golang-1.15 (1.15.9-1) import into refs/heads/workingbranch

4 years agoskip userns test in schroot as well
Shengjing Zhu [Fri, 5 Feb 2021 13:21:45 +0000 (21:21 +0800)]
skip userns test in schroot as well

When schroot is using overlayfs, it fails to detect it as chroot.

Gbp-Pq: Name 0006-skip-userns-test-in-schroot-as-well.patch

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 0005-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.9-1) unstable; urgency=medium
Shengjing Zhu [Thu, 11 Mar 2021 15:43:18 +0000 (15:43 +0000)]
golang-1.15 (1.15.9-1) unstable; urgency=medium

  * Team upload.
  * New upstream version 1.15.9
    + encoding/xml: infinite loop when using `xml.NewTokenDecoder` with a
      custom `TokenReader`. CVE-2021-27918

[dgit import unpatched golang-1.15 1.15.9-1]

4 years agoImport golang-1.15_1.15.9.orig.tar.gz
Shengjing Zhu [Thu, 11 Mar 2021 15:43:18 +0000 (15:43 +0000)]
Import golang-1.15_1.15.9.orig.tar.gz

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

4 years agoImport golang-1.15_1.15.9-1.debian.tar.xz
Shengjing Zhu [Thu, 11 Mar 2021 15:43:18 +0000 (15:43 +0000)]
Import golang-1.15_1.15.9-1.debian.tar.xz

[dgit import tarball golang-1.15 1.15.9-1 golang-1.15_1.15.9-1.debian.tar.xz]

4 years agoMerge version 1.15.8-3+rpi1 and 1.15.8-4 to produce 1.15.8-4+rpi1 archive/raspbian/1.15.8-4+rpi1 raspbian/1.15.8-4+rpi1
Raspbian automatic forward porter [Mon, 1 Mar 2021 14:34:01 +0000 (14:34 +0000)]
Merge version 1.15.8-3+rpi1 and 1.15.8-4 to produce 1.15.8-4+rpi1

4 years agoMerge version 1.15.7-1+rpi1 and 1.15.8-3 to produce 1.15.8-3+rpi1 archive/raspbian/1.15.8-3+rpi1 raspbian/1.15.8-3+rpi1
Raspbian automatic forward porter [Wed, 17 Feb 2021 07:04:20 +0000 (07:04 +0000)]
Merge version 1.15.7-1+rpi1 and 1.15.8-3 to produce 1.15.8-3+rpi1

4 years agoMerge golang-1.15 (1.15.8-4) import into refs/heads/workingbranch
Shengjing Zhu [Mon, 15 Feb 2021 15:19:39 +0000 (15:19 +0000)]
Merge golang-1.15 (1.15.8-4) import into refs/heads/workingbranch

4 years agoskip userns test in schroot as well
Shengjing Zhu [Fri, 5 Feb 2021 13:21:45 +0000 (21:21 +0800)]
skip userns test in schroot as well

When schroot is using overlayfs, it fails to detect it as chroot.

Gbp-Pq: Name 0006-skip-userns-test-in-schroot-as-well.patch

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 0005-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.8-4) unstable; urgency=medium
Shengjing Zhu [Mon, 15 Feb 2021 15:19:39 +0000 (15:19 +0000)]
golang-1.15 (1.15.8-4) unstable; urgency=medium

  * Team upload.
  * Revert "0007-cmd-link-check-CGO_CFLAGS-for-non-g-I-O-options-befo.patch"
    This patch causes:
    1. unexpected error message, which makes some packages FTBFS
       loadinternal: cannot find runtime/cgo
Closes: #982701, #982714, #982720, #982724, #982734
    2. unable to build package on riscv64
       external linking not supported for linux/riscv64

[dgit import unpatched golang-1.15 1.15.8-4]

4 years agoImport golang-1.15_1.15.8-4.debian.tar.xz
Shengjing Zhu [Mon, 15 Feb 2021 15:19:39 +0000 (15:19 +0000)]
Import golang-1.15_1.15.8-4.debian.tar.xz

[dgit import tarball golang-1.15 1.15.8-4 golang-1.15_1.15.8-4.debian.tar.xz]

4 years agoMerge golang-1.15 (1.15.8-3) import into refs/heads/workingbranch
Michael Hudson-Doyle [Tue, 9 Feb 2021 23:58:55 +0000 (23:58 +0000)]
Merge golang-1.15 (1.15.8-3) import into refs/heads/workingbranch

4 years ago[PATCH] cmd/link: check CGO_CFLAGS for non -g/-I/-O options before internal linking
Michael Hudson-Doyle [Tue, 5 Jan 2021 23:18:24 +0000 (12:18 +1300)]
[PATCH] cmd/link: check CGO_CFLAGS for non -g/-I/-O options before internal linking

On Debian and Ubuntu we are investigating enabling link-time
optimization by default, which means the default CFLAGS will contain
arguments that cause gcc to generate object files
cmd/link/internal/loadelf cannot process. Rather than failing in this
situation, scan CGO_CFLAGS in mustLinkExternal and do not link
internally if there is a flag that does not start with -g, -I, or -O.

CFLAGS can also be injected via #cgo CFLAGS: directives but as use of
any non-standard library cgo modules disables internal linking anyway,
we don't have to worry about that here.

Fixes #43505

Change-Id: Ib083f6daf22617e2e5df67e95d3bc178942328cd

Gbp-Pq: Name 0007-cmd-link-check-CGO_CFLAGS-for-non-g-I-O-options-befo.patch

4 years agoskip userns test in schroot as well
Shengjing Zhu [Fri, 5 Feb 2021 13:21:45 +0000 (21:21 +0800)]
skip userns test in schroot as well

When schroot is using overlayfs, it fails to detect it as chroot.

Gbp-Pq: Name 0006-skip-userns-test-in-schroot-as-well.patch

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 0005-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.8-3) unstable; urgency=high
Michael Hudson-Doyle [Tue, 9 Feb 2021 23:58:55 +0000 (23:58 +0000)]
golang-1.15 (1.15.8-3) unstable; urgency=high

  * Re-upload with urgency=high due to impending freeze.

[dgit import unpatched golang-1.15 1.15.8-3]

4 years agoImport golang-1.15_1.15.8-3.debian.tar.xz
Michael Hudson-Doyle [Tue, 9 Feb 2021 23:58:55 +0000 (23:58 +0000)]
Import golang-1.15_1.15.8-3.debian.tar.xz

[dgit import tarball golang-1.15 1.15.8-3 golang-1.15_1.15.8-3.debian.tar.xz]

4 years agoMerge version 1.15.6-1+rpi1 and 1.15.7-1 to produce 1.15.7-1+rpi1 archive/raspbian/1.15.7-1+rpi1 raspbian/1.15.7-1+rpi1
Raspbian automatic forward porter [Fri, 5 Feb 2021 22:17:03 +0000 (22:17 +0000)]
Merge version 1.15.6-1+rpi1 and 1.15.7-1 to produce 1.15.7-1+rpi1

4 years agoImport golang-1.15_1.15.8.orig.tar.gz
Shengjing Zhu [Fri, 5 Feb 2021 12:51:44 +0000 (12:51 +0000)]
Import golang-1.15_1.15.8.orig.tar.gz

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

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]

4 years agoMerge version 1.15.5-2+rpi1 and 1.15.6-1 to produce 1.15.6-1+rpi1 archive/raspbian/1.15.6-1+rpi1 raspbian/1.15.6-1+rpi1
Raspbian automatic forward porter [Sat, 19 Dec 2020 03:45:38 +0000 (03:45 +0000)]
Merge version 1.15.5-2+rpi1 and 1.15.6-1 to produce 1.15.6-1+rpi1

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 version 1.15.2-1+rpi1 and 1.15.5-2 to produce 1.15.5-2+rpi1 archive/raspbian/1.15.5-2+rpi1 raspbian/1.15.5-2+rpi1
Raspbian automatic forward porter [Tue, 1 Dec 2020 14:41:32 +0000 (14:41 +0000)]
Merge version 1.15.2-1+rpi1 and 1.15.5-2 to produce 1.15.5-2+rpi1

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+rpi1) import into refs/heads/workingbranch
Peter Michael Green [Tue, 29 Sep 2020 13:05:34 +0000 (14:05 +0100)]
Merge golang-1.15 (1.15.2-1+rpi1) 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+rpi1) bullseye-staging; urgency=medium
Peter Michael Green [Tue, 29 Sep 2020 13:05:34 +0000 (14:05 +0100)]
golang-1.15 (1.15.2-1+rpi1) bullseye-staging; urgency=medium

  [changes brought forward from golang-1.10 1.10~rc2-1+rpi1 by Peter Michael Green <plugwash@raspbian.org> at Sat, 24 Feb 2018 12:22:04 +0000]
  * Build with GOARM=6
  * Disable testsuite.
  * Fix clean target.

  [changes introduced in golang-1.12 1.12.7-3+rpi1 by Peter Michael Green]
  * Further clean target fixing.

[dgit import unpatched golang-1.15 1.15.2-1+rpi1]

5 years agoImport golang-1.15_1.15.2-1+rpi1.debian.tar.xz
Peter Michael Green [Tue, 29 Sep 2020 13:05:34 +0000 (14:05 +0100)]
Import golang-1.15_1.15.2-1+rpi1.debian.tar.xz

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

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 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 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-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

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.3-2) unstable; urgency=medium
Dr. Tobias Quathamer [Sat, 16 May 2020 12:32:28 +0000 (13:32 +0100)]
golang-1.14 (1.14.3-2) unstable; urgency=medium

  * Increase the test timeout that made some builds succeed
    there on slow hardware (such as emulated riscv64).
    Thanks to Gianfranco Costamagna (Closes: #960759)

[dgit import unpatched golang-1.14 1.14.3-2]

5 years agoImport golang-1.14_1.14.3-2.debian.tar.xz
Dr. Tobias Quathamer [Sat, 16 May 2020 12:32:28 +0000 (13:32 +0100)]
Import golang-1.14_1.14.3-2.debian.tar.xz

[dgit import tarball golang-1.14 1.14.3-2 golang-1.14_1.14.3-2.debian.tar.xz]

5 years agoImport golang-1.14_1.14.3.orig.tar.gz
Dr. Tobias Quathamer [Fri, 15 May 2020 13:24:43 +0000 (14:24 +0100)]
Import golang-1.14_1.14.3.orig.tar.gz

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

5 years agoMerge golang-1.14 (1.14.2-1) import into refs/heads/workingbranch
Dr. Tobias Quathamer [Fri, 10 Apr 2020 12:34:21 +0000 (13:34 +0100)]
Merge golang-1.14 (1.14.2-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.2-1) unstable; urgency=medium
Dr. Tobias Quathamer [Fri, 10 Apr 2020 12:34:21 +0000 (13:34 +0100)]
golang-1.14 (1.14.2-1) unstable; urgency=medium

  * New upstream version 1.14.2

[dgit import unpatched golang-1.14 1.14.2-1]

5 years agoImport golang-1.14_1.14.2.orig.tar.gz
Dr. Tobias Quathamer [Fri, 10 Apr 2020 12:34:21 +0000 (13:34 +0100)]
Import golang-1.14_1.14.2.orig.tar.gz

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

5 years agoImport golang-1.14_1.14.2-1.debian.tar.xz
Dr. Tobias Quathamer [Fri, 10 Apr 2020 12:34:21 +0000 (13:34 +0100)]
Import golang-1.14_1.14.2-1.debian.tar.xz

[dgit import tarball golang-1.14 1.14.2-1 golang-1.14_1.14.2-1.debian.tar.xz]

5 years agoMerge golang-1.14 (1.14.1-1) import into refs/heads/workingbranch
Dr. Tobias Quathamer [Sat, 21 Mar 2020 13:01:31 +0000 (13:01 +0000)]
Merge golang-1.14 (1.14.1-1) import into refs/heads/workingbranch