dh-make-golang 0.6.0-2 fails to build from source
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dh-make-golang (Debian) |
Fix Released
|
Unknown
|
|||
dh-make-golang (Ubuntu) |
Fix Released
|
Undecided
|
Dominik Viererbe |
Bug Description
dh-make-golang 0.6.0-2 fails to build from source:
```
dh_auto_build -O--builddirect
dh_auto_build: warning: LTO optimize is enable in buildflags. But cgo doesn't support it. LTO flags will be stripped in cgo.
cd _build && go install -trimpath -v -p 4 github.
src/github.
/usr/lib/
/<<PKGBUILDDIR
dh_auto_build: error: cd _build && go install -trimpath -v -p 4 github.
make: *** [debian/rules:6: binary] Error 25
```
Related branches
- Simon Chopin: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 1435 lines (+1309/-2)11 files modifieddebian/changelog (+12/-0)
debian/control (+2/-1)
debian/copyright (+4/-0)
debian/go/src/golang.org/x/tools/go/vcs/discovery.go (+83/-0)
debian/go/src/golang.org/x/tools/go/vcs/env.go (+39/-0)
debian/go/src/golang.org/x/tools/go/vcs/go.mod (+7/-0)
debian/go/src/golang.org/x/tools/go/vcs/http.go (+80/-0)
debian/go/src/golang.org/x/tools/go/vcs/vcs.go (+764/-0)
debian/go/src/golang.org/x/tools/go/vcs/vcs_test.go (+309/-0)
debian/rules (+9/-0)
dev/null (+0/-1)
Changed in dh-make-golang (Debian): | |
status: | Unknown → New |
Changed in dh-make-golang (Debian): | |
status: | New → Fix Released |
Changed in dh-make-golang (Ubuntu): | |
status: | New → In Progress |
I am currently looking into this on my +1 shift. I already tried to disable lto, because of the warning:
> dh_auto_build: warning: LTO optimize is enable in buildflags. But cgo doesn't support it. LTO flags will > be stripped in cgo.
Unfortunately this did not solve it and I have no experience with go, so I may have to ask @zhsj what could cause the error: cannot find package "golang. org/x/tools/ go/vcs"