[Bug 1794936] Re: new gccgo version update (4:8.2.0-1ubuntu2.1) is triggering dh-golang <1.35 bug
Brian Murray
brian at ubuntu.com
Tue Nov 20 19:38:18 UTC 2018
Hello Samuele, or anyone else affected,
Accepted dh-golang into bionic-proposed. The package will build now and
be available at https://launchpad.net/ubuntu/+source/dh-golang/1.34.2 in
a few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested and change the tag from
verification-needed-bionic to verification-done-bionic. If it does not
fix the bug for you, please add a comment stating that, and change the
tag to verification-failed-bionic. In either case, without details of
your testing we will not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: dh-golang (Ubuntu Bionic)
Status: In Progress => Fix Committed
** Tags removed: verification-failed verification-failed-bionic
** Tags added: verification-needed verification-needed-bionic
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dh-golang in Ubuntu.
https://bugs.launchpad.net/bugs/1794936
Title:
new gccgo version update (4:8.2.0-1ubuntu2.1) is triggering dh-golang
<1.35 bug
Status in dh-golang package in Ubuntu:
Fix Released
Status in gcc-8 package in Ubuntu:
Invalid
Status in dh-golang source package in Bionic:
Fix Committed
Status in gcc-8 source package in Bionic:
New
Bug description:
[impact]
Packages that use gccgo-go to build fail to build. There aren't really any such packages in Ubuntu today, but it's still a broken situation.
[test case]
$ apt source golang-petname
$ cd golang-petname-*/
$ sed -i -e 's/golang-go/gccgo-go/' debian/control
$ apt build-dep ./
$ dpkg-buildpackage
[regression potential]
The added patch adds code that only runs if 'go version' contains gccgo, which means that it only affects builds where the default go is gccgo-go, i.e. the builds that are currently broken by this bug. It will not affect any other build.
[original description]
We see this kind of error in recent runs of snapd tests when using bionic updating gccgo 4:8.2.0-1ubuntu2.1 and current dh-golang 1.34.
Can be run from snapd master checkout with:
spread -v -debug google:ubuntu-18.04-64:tests/unit/gccgo
with the proper configuration.
Error:
...
dh_makeshlibs -O--buildsystem=golang -O--fail-missing -O--builddirectory=_build
dh_shlibdeps -O--buildsystem=golang -O--fail-missing -O--builddirectory=_build
debian/rules override_dh_installdeb
make[1]: Entering directory '/home/gopath/src/github.com/snapcore/snapd'
dh_apparmor --profile-name=usr.lib.snapd.snap-confine.real -psnapd
dh_installdeb
make[1]: Leaving directory '/home/gopath/src/github.com/snapcore/snapd'
dh_golang -O--buildsystem=golang -O--fail-missing -O--builddirectory=_build
template: main:2:14: executing "main" at <index (or .GoFiles ....>: error calling index: index out of range: 0
dh_golang: go list -f '\
{{ .Dir }}/{{ index (or .GoFiles .CgoFiles .TestGoFiles .XTestGoFiles .IgnoredGoFiles) 0 }}' returned exit code 1
debian/rules:103: recipe for target 'binary' failed
make: *** [binary] Error 1
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
-----
These were passing until today.
Seems related/similar to https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=907263
which mentions dh-golang 1.35 having a fix.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dh-golang/+bug/1794936/+subscriptions
More information about the foundations-bugs
mailing list