dev-lang/go: apply patch for #581072
authorWilliam Hubbs <williamh@gentoo.org>
Wed, 18 May 2016 17:22:40 +0000 (12:22 -0500)
committerWilliam Hubbs <williamh@gentoo.org>
Wed, 18 May 2016 17:23:02 +0000 (12:23 -0500)
Gdb was starting by spawning a shell and this was causing issues for the tests.

Package-Manager: portage-2.2.28

dev-lang/go/files/go-1.6.1-gdb-no-shell.patch [new file with mode: 0644]
dev-lang/go/files/go-1.6.2-gdb-no-shell.patch [new file with mode: 0644]
dev-lang/go/go-1.6.1.ebuild
dev-lang/go/go-1.6.2.ebuild

diff --git a/dev-lang/go/files/go-1.6.1-gdb-no-shell.patch b/dev-lang/go/files/go-1.6.1-gdb-no-shell.patch
new file mode 100644 (file)
index 0000000..ccce6f0
--- /dev/null
@@ -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",
diff --git a/dev-lang/go/files/go-1.6.2-gdb-no-shell.patch b/dev-lang/go/files/go-1.6.2-gdb-no-shell.patch
new file mode 100644 (file)
index 0000000..ccce6f0
--- /dev/null
@@ -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",
index c70fc26e529379133057e2f4d3cee6501c438977..4fce12b9de362ecb714705c1bde4868df227d80d 100644 (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
index 9a52b39fd524778e80b7e8cf95de9f1acda8eb8d..ddf85db6008f5dce2d5860785a342066eab70849 100644 (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