Bug#1020102: golang-github-mattn-go-runewidth: FTBFS: dh_auto_test: error: cd _build && go test -vet=off -v -p 8 github.com/mattn/go-runewidth returned exit code 1

2022-09-18 Thread Mathias Gibbens
  I'm not 100% certain, but I expect this failure is due to the new
version of unicode-data that was just uploaded to unstable a couple of
days ago.

Mathias


signature.asc
Description: This is a digitally signed message part


Bug#1020102: golang-github-mattn-go-runewidth: FTBFS: dh_auto_test: error: cd _build && go test -vet=off -v -p 8 github.com/mattn/go-runewidth returned exit code 1

2022-09-18 Thread Lucas Nussbaum
Source: golang-github-mattn-go-runewidth
Version: 0.0.13-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20220917 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary --buildsystem=golang --with=golang --builddirectory=_build
>dh_update_autotools_config -O--buildsystem=golang -O--builddirectory=_build
>dh_autoreconf -O--buildsystem=golang -O--builddirectory=_build
>dh_auto_configure -O--buildsystem=golang -O--builddirectory=_build
>dh_auto_build -O--buildsystem=golang -O--builddirectory=_build
>   cd _build && go generate -v github.com/mattn/go-runewidth
> src/github.com/mattn/go-runewidth/benchmark_test.go
> src/github.com/mattn/go-runewidth/runewidth.go
> src/github.com/mattn/go-runewidth/runewidth_posix.go
> src/github.com/mattn/go-runewidth/runewidth_posix_test.go
> src/github.com/mattn/go-runewidth/runewidth_test.go
>   cd _build && go install -trimpath -v -p 8 github.com/mattn/go-runewidth
> internal/goarch
> unicode/utf8
> internal/goos
> internal/unsafeheader
> internal/goexperiment
> runtime/internal/syscall
> internal/cpu
> runtime/internal/atomic
> internal/itoa
> sync/atomic
> internal/race
> internal/abi
> runtime/internal/math
> github.com/rivo/uniseg
> runtime/internal/sys
> math/bits
> unicode
> internal/bytealg
> math
> runtime
> internal/reflectlite
> sync
> internal/testlog
> errors
> sort
> internal/oserror
> io
> path
> strconv
> syscall
> strings
> bytes
> regexp/syntax
> time
> internal/syscall/execenv
> internal/syscall/unix
> regexp
> io/fs
> internal/poll
> os
> github.com/mattn/go-runewidth
>dh_auto_test -O--buildsystem=golang -O--builddirectory=_build
>   cd _build && go test -vet=off -v -p 8 github.com/mattn/go-runewidth
> === RUN   TestIsEastAsian
> --- PASS: TestIsEastAsian (0.00s)
> === RUN   TestIsEastAsianLCCTYPE
> --- PASS: TestIsEastAsianLCCTYPE (0.00s)
> === RUN   TestIsEastAsianLANG
> --- PASS: TestIsEastAsianLANG (0.00s)
> === RUN   TestTableChecksums
> runewidth_test.go:63: table = combining,
>   n = 555 want 553,
>   sha256 = 
> bf1cafd5aa2c3734b07a609ffd4d981cd3184e322a1b261431ff746031305cb4 want 
> fa7081e945e5b57ba6ac9e9fd20cac122cb68c6ae269a7c78da5b3b1ae559379
> runewidth_test.go:63: table = doublewidth,
>   n = 182516 want 182494,
>   sha256 = 
> 9ac302bb04ce3d81f05e5448637ec500b0e9446db57eed406bac81b933b51d57 want 
> 28d3d696c4c3e4567c43a2271dc8bcd9606bfd5d97b0ddf00f5a1e869fc48ab7
> --- FAIL: TestTableChecksums (0.05s)
> panic: runtime error: index out of range [0] with length 0 [recovered]
>   panic: runtime error: index out of range [0] with length 0
> 
> goroutine 21 [running]:
> testing.tRunner.func1.2({0x520040, 0xc20270})
>   /usr/lib/go-1.19/src/testing/testing.go:1396 +0x24e
> testing.tRunner.func1()
>   /usr/lib/go-1.19/src/testing/testing.go:1399 +0x39f
> panic({0x520040, 0xc20270})
>   /usr/lib/go-1.19/src/runtime/panic.go:884 +0x212
> github.com/mattn/go-runewidth.inTable(...)
>   
> /<>/_build/src/github.com/mattn/go-runewidth/runewidth.go:57
> github.com/mattn/go-runewidth.TestTableChecksums(0xc831e0)
>   
> /<>/_build/src/github.com/mattn/go-runewidth/runewidth_test.go:56
>  +0x38f
> testing.tRunner(0xc831e0, 0x537970)
>   /usr/lib/go-1.19/src/testing/testing.go:1446 +0x10b
> created by testing.(*T).Run
>   /usr/lib/go-1.19/src/testing/testing.go:1493 +0x35f
> FAIL  github.com/mattn/go-runewidth   0.061s
> FAIL
> dh_auto_test: error: cd _build && go test -vet=off -v -p 8 
> github.com/mattn/go-runewidth returned exit code 1


The full build log is available from:
http://qa-logs.debian.net/2022/09/17/golang-github-mattn-go-runewidth_0.0.13-2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220917;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na=ign=7=7=only=ftbfs-20220917=lu...@debian.org=1=1=1=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.