dev-lang/go: apply patch for #581072

Gdb was starting by spawning a shell and this was causing issues for the tests.

Package-Manager: portage-2.2.28
This commit is contained in:
William Hubbs
2016-05-18 12:22:40 -05:00
parent f4d9fe6d31
commit 39807b1e2e
4 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
diff --git a/src/runtime/runtime-gdb_test.go b/src/runtime/runtime-gdb_test.go
index 6ebc69a..648092a 100644
--- a/src/runtime/runtime-gdb_test.go
+++ b/src/runtime/runtime-gdb_test.go
@@ -87,6 +87,7 @@ func TestGdbPython(t *testing.T) {
args := []string{"-nx", "-q", "--batch", "-iex",
fmt.Sprintf("add-auto-load-safe-path %s/src/runtime", runtime.GOROOT()),
+ "-ex", "set startup-with-shell off",
"-ex", "info auto-load python-scripts",
"-ex", "br main.go:10",
"-ex", "run",

View File

@@ -0,0 +1,12 @@
diff --git a/src/runtime/runtime-gdb_test.go b/src/runtime/runtime-gdb_test.go
index 6ebc69a..648092a 100644
--- a/src/runtime/runtime-gdb_test.go
+++ b/src/runtime/runtime-gdb_test.go
@@ -87,6 +87,7 @@ func TestGdbPython(t *testing.T) {
args := []string{"-nx", "-q", "--batch", "-iex",
fmt.Sprintf("add-auto-load-safe-path %s/src/runtime", runtime.GOROOT()),
+ "-ex", "set startup-with-shell off",
"-ex", "info auto-load python-scripts",
"-ex", "br main.go:10",
"-ex", "run",

View File

@@ -80,6 +80,11 @@ if [[ ${PV} != 9999 ]]; then
S="${WORKDIR}"/go
fi
PATCHES=(
# patch for #581072
"${FILESDIR}"/${P}-gdb-no-shell.patch
)
go_arch()
{
# By chance most portage arch names match Go

View File

@@ -81,6 +81,11 @@ if [[ ${PV} != 9999 ]]; then
S="${WORKDIR}"/go
fi
PATCHES=(
# patch for #581072
"${FILESDIR}"/${P}-gdb-no-shell.patch
)
go_arch()
{
# By chance most portage arch names match Go