[Bug 1283626] Re: /usr/share/go/src/pkg/runtime/runtime-gdb.py is not valiad python3
Michael Hudson-Doyle
michael.hudson+lp at canonical.com
Wed Mar 23 20:27:20 UTC 2016
This has been fixed upstream.
** Changed in: golang (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to golang in Ubuntu.
https://bugs.launchpad.net/bugs/1283626
Title:
/usr/share/go/src/pkg/runtime/runtime-gdb.py is not valiad python3
Status in golang package in Ubuntu:
Fix Released
Bug description:
On trusty the file /usr/share/go/src/pkg/runtime/runtime-gdb.py is
evaluated in python 3 when it is sourced by gdb. Unfortunately this
file uses python 2 syntax.
To reproduce this error:
$ mkdir -p ~/go/src/foo
$ cd ~/go/src/foo
$ echo -e "package main\n\nimport \"fmt\"\n\nfunc main(){\n fmt.Printf(\"Foo\")\n}\n" > foo.go
$ export GOPATH=~/go/src
$ go build
$ gdb foo
(gdb) source /usr/share/go/src/pkg/runtime/runtime-gdb.py
The error can be trivially resolved by running the following command:
$ sudo 2to3 -w /usr/share/go/src/pkg/runtime/runtime-gdb.py
Note also, if bug #1076454 is resolved then the "source.." line in
gdb, used above, will happen automatically.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang/+bug/1283626/+subscriptions
More information about the foundations-bugs
mailing list