[pkg-go] Bug#794815: FTBFS because go generate is missing a build dependency... and then some.

Hilko Bengen bengen at debian.org
Thu Aug 6 20:41:17 UTC 2015


Source: golang-x-text
Version: 0+git20150518.c93e7c9-1
Severity: grave

Beacuse dh-golang now executes go generate, the "stringer" binary is
needed in building:

,----
| ...
| src/golang.org/x/text/width/trieval.go
| src/golang.org/x/text/width/width.go
| src/golang.org/x/text/width/width.go:5: running "stringer": exec: "stringer": executable file not found in $PATH
| dh_auto_build: go generate -v golang.org/x/text golang.org/x/text/cases golang.org/x/text/cldr golang.org/x/text/collate golang.org/x/text/collate/build golang.org/x/text/collate/colltab golang.org/x/text/display golang.org/x/text/encoding golang.org/x/text/encoding/charmap golang.org/x/text/encoding/htmlindex golang.org/x/text/encoding/ianaindex golang.org/x/text/encoding/internal golang.org/x/text/encoding/internal/identifier golang.org/x/text/encoding/japanese golang.org/x/text/encoding/korean golang.org/x/text/encoding/simplifiedchinese golang.org/x/text/encoding/traditionalchinese golang.org/x/text/encoding/unicode golang.org/x/text/internal/colltab golang.org/x/text/internal/gen golang.org/x/text/internal/testtext golang.org/x/text/internal/triegen golang.org/x/text/internal/ucd golang.org/x/text/language golang.org/x/text/runes golang.org/x/text/search golang.org/x/text/transform golang.org/x/text/unicode/norm golang.org/x/text/unicode/rangetable golang.org/x/text/width returned exit code 1
| make: *** [build] Error 1
| debian/rules:9: recipe for target 'build' failed
| dpkg-buildpackage: error: debian/rules build gave error exit status 2
`----

I tried the patch below, but now the build fails with a different error:

,----
| ...
| src/golang.org/x/text/width/width.go
| stringer: checking package: transform.go:10:2: could not import golang.org/x/text/transform (can't find import: golang.org/x/text/transform)
| src/golang.org/x/text/width/width.go:5: running "stringer": exit status 1
| ...
`----

Cheers,
-Hilko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-golang-golang-x-tools-stringer-to-build-dependen.patch
Type: text/x-diff
Size: 882 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20150806/6b755294/attachment.patch>


More information about the Pkg-go-maintainers mailing list