new gccgo version update (4:8.2.0-1ubuntu2.1) is triggering dh-golang <1.35 bug
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dh-golang (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
gcc-8 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bionic |
New
|
Undecided
|
Unassigned |
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-
$ 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:
with the proper configuration.
Error:
...
dh_makeshlibs -O--buildsystem
dh_shlibdeps -O--buildsystem
debian/rules override_
make[1]: Entering directory '/home/
dh_apparmor --profile-
dh_installdeb
make[1]: Leaving directory '/home/
dh_golang -O--buildsystem
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:/
which mentions dh-golang 1.35 having a fix.
description: | updated |
summary: |
- new gccgo version update () is triggering dh-golang bug + new gccgo version update (4:8.2.0-1ubuntu2.1) is triggering dh-golang + <1.35 bug |
tags: | added: regression-update |
affects: | gcc-defaults (Ubuntu) → gcc-8 (Ubuntu) |
Changed in dh-golang (Ubuntu): | |
status: | New → Incomplete |
status: | Incomplete → Fix Released |
Changed in dh-golang (Ubuntu Bionic): | |
status: | New → Triaged |
Should SRU the new dh_golang I guess. Although why do you care about
buildability with gccgo?
On Fri, 28 Sep 2018, 20:20 William Grant, <email address hidden> wrote:
> ** Package changed: gcc-defaults (Ubuntu) => gcc-8 (Ubuntu) /bugs.launchpad .net/bugs/ 1794936 0-1ubuntu2. 1) is triggering dh-golang /bugs.launchpad .net/ubuntu/ +source/ dh-golang/ +bug/1794936/ +subscriptions
>
> --
> You received this bug notification because you are subscribed to dh-
> golang in Ubuntu.
> https:/
>
> Title:
> new gccgo version update (4:8.2.
> <1.35 bug
>
> To manage notifications about this bug go to:
>
> https:/
>