[pkg-go] Bug#1010686: golang-github-boltdb-bolt: ftbfs issue on riscv64 arch

Ileana Dumitrescu ileanadumi95 at protonmail.com
Thu May 12 14:04:58 BST 2022


The golang-github-hashicorp-raft-boltdb upstream developers created a v2 version to use bbolt, but their v2 code still uses the original version which depends on boltdb [1]. I wrote an issue on their github page in January [2] but no actions have been taken. For golang, the upstream code's dependency on raft-boltdb has to be completely removed for the package to build with riscv.

I currently get FTBFS for riscv with golang-github-boltdb-bolt (1.3.1-7) and golang-github-hashicorp-raft-boltdb (0.0~git20171010.6e5ba93-3). golang-github-coreos-bbolt (1.3.5-1) successfully builds as expected.

I agree this bbolt and boltdb issue should be fixed, as there are packages like consul and nomad that also depend on it.

> These package's upstream had switched to bbolt:
> * golang-github-blevesearch-bleve
> * influxdb
> * golang-github-hashicorp-raft-boltdb

> So can these packages dependencs switch from golang-github-boltdb-bolt-dev to
> golang-github-coreos-bbolt?

Yes if none of the other package dependencies depend on golang-github-boltdb-bolt-dev which would still cause a FTBFS.

Below is the error message consistently seen with this FTBFS during dh_auto_build.

github.com/boltdb/bolt
# github.com/boltdb/bolt
src/github.com/boltdb/bolt/bolt_unix.go:62:14: [maxMapSize]byte used as value
src/github.com/boltdb/bolt/bolt_unix.go:62:15: undefined: maxMapSize
src/github.com/boltdb/bolt/bucket.go:135:15: undefined: brokenUnaligned
src/github.com/boltdb/bolt/db.go:101:12: [maxMapSize]byte used as value
src/github.com/boltdb/bolt/db.go:101:13: undefined: maxMapSize
src/github.com/boltdb/bolt/db.go:317:12: undefined: maxMapSize
src/github.com/boltdb/bolt/db.go:335:10: undefined: maxMapSize
src/github.com/boltdb/bolt/db.go:336:8: undefined: maxMapSize
src/github.com/boltdb/bolt/freelist.go:169:18: [maxAllocSize]pgid used as value
src/github.com/boltdb/bolt/freelist.go:169:19: undefined: maxAllocSize
src/github.com/boltdb/bolt/freelist.go:169:18: too many errors


[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004303
[2] https://github.com/hashicorp/raft-boltdb/issues/27

Ileana Dumitrescu



More information about the Pkg-go-maintainers mailing list