#1004303#5
Date:
2022-01-24 15:37:38 UTC
From:
To:
raft-boltdb fails to build on riscv architecture. This package is dependent on boltdb, which is incompatible with riscv. Example build log is shown below. bbolt is an updated fork of boltdb that does support riscv, but raft-boltdb has a build dependency on boltdb. I created an issue on the raft-boltdb upstream github page (https://github.com/hashicorp/raft-boltdb/issues/27). This FTBFS still occurs with the latest upstream release 2.2.0. See #982931 for another package impacted by this incompatibility with riscv.

dpkg-buildpackage: info: source package golang-github-hashicorp-raft-boltdb
dpkg-buildpackage: info: source version 0.0~git20171010.6e5ba93-3
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Alexandre Viau <aviau@debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture riscv64
 fakeroot debian/rules clean
dh clean --buildsystem=golang --with=golang
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_auto_clean -O--buildsystem=golang
dh_auto_clean: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_clean -O--buildsystem=golang
dh_clean: warning: Compatibility levels before 10 are deprecated (level 9 in use)
 dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building golang-github-hashicorp-raft-boltdb using existing ./golang-github-hashicorp-raft-boltdb_0.0~git20171010.6e5ba93.orig.tar.xz
dpkg-source: info: building golang-github-hashicorp-raft-boltdb in golang-github-hashicorp-raft-boltdb_0.0~git20171010.6e5ba93-3.debian.tar.xz
dpkg-source: info: building golang-github-hashicorp-raft-boltdb in golang-github-hashicorp-raft-boltdb_0.0~git20171010.6e5ba93-3.dsc
 debian/rules build
dh build --buildsystem=golang --with=golang
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_update_autotools_config -O--buildsystem=golang
   dh_auto_configure -O--buildsystem=golang
dh_auto_configure: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_auto_build -O--buildsystem=golang
dh_auto_build: warning: Compatibility levels before 10 are deprecated (level 9 in use)
	cd obj-riscv64-linux-gnu && go install -trimpath -v -p 1 github.com/hashicorp/raft-boltdb
internal/unsafeheader
internal/abi
internal/cpu
internal/bytealg
internal/goexperiment
runtime/internal/atomic
runtime/internal/sys
runtime/internal/math
runtime
internal/reflectlite
errors
internal/race
sync/atomic
sync
io
unicode
unicode/utf8
bytes
math/bits
math
internal/itoa
strconv
reflect
encoding/binary
sort
internal/fmtsort
internal/oserror
syscall
internal/syscall/unix
time
internal/poll
internal/syscall/execenv
internal/testlog
path
io/fs
os
fmt
hash
hash/fnv
log
strings
runtime/debug
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
bufio
encoding
encoding/gob
go/token
encoding/base64
unicode/utf16
encoding/json
html
path/filepath
net/url
text/template/parse
text/template
html/template
context
vendor/golang.org/x/net/dns/dnsmessage
internal/nettrace
internal/singleflight
runtime/cgo
net
compress/flate
hash/crc32
compress/gzip
container/list
crypto/internal/subtle
crypto/subtle
crypto/cipher
crypto/aes
math/rand
math/big
crypto/rand
crypto
crypto/des
crypto/elliptic/internal/fiat
crypto/elliptic
crypto/internal/randutil
crypto/sha512
encoding/asn1
vendor/golang.org/x/crypto/cryptobyte/asn1
vendor/golang.org/x/crypto/cryptobyte
crypto/ecdsa
crypto/ed25519/internal/edwards25519/field
crypto/ed25519/internal/edwards25519
crypto/ed25519
crypto/hmac
crypto/md5
crypto/rc4
crypto/rsa
crypto/sha1
crypto/sha256
crypto/dsa
encoding/hex
crypto/x509/pkix
encoding/pem
crypto/x509
vendor/golang.org/x/crypto/internal/subtle
vendor/golang.org/x/crypto/chacha20
vendor/golang.org/x/crypto/poly1305
vendor/golang.org/x/crypto/chacha20poly1305
vendor/golang.org/x/crypto/curve25519
vendor/golang.org/x/crypto/hkdf
crypto/tls
vendor/golang.org/x/text/transform
vendor/golang.org/x/text/unicode/bidi
vendor/golang.org/x/text/secure/bidirule
vendor/golang.org/x/text/unicode/norm
vendor/golang.org/x/net/idna
net/textproto
vendor/golang.org/x/net/http/httpguts
vendor/golang.org/x/net/http/httpproxy
vendor/golang.org/x/net/http2/hpack
io/ioutil
mime
mime/quotedprintable
mime/multipart
net/http/httptrace
net/http/internal
net/http/internal/ascii
net/http
net/rpc
github.com/hashicorp/go-msgpack/codec
github.com/hashicorp/golang-lru/simplelru
github.com/hashicorp/go-immutable-radix
os/signal
github.com/armon/go-metrics
golang.org/x/sys/internal/unsafeheader
golang.org/x/sys/unix
github.com/mattn/go-isatty
github.com/mattn/go-colorable
github.com/fatih/color
regexp/syntax
regexp
github.com/hashicorp/go-hclog
hash/crc64
flag
internal/sysinfo
runtime/trace
testing
github.com/hashicorp/raft
dh_auto_build: error: cd obj-riscv64-linux-gnu && go install -trimpath -v -p 1 github.com/hashicorp/raft-boltdb returned exit code 2
make: *** [debian/rules:7: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

#1004303#10
Date:
2022-01-24 15:45:09 UTC
From:
To:
Instead of asking upstream to fix building on riscv64 with boltdb,
just ask them to switch to github.com/etcd-io/bbolt(packaged as
golang-github-coreos-bbolt-dev).
boltdb is just dead, see
https://github.com/boltdb/bolt#a-message-from-the-author

#1004303#15
Date:
2022-01-24 15:52:50 UTC
From:
To:
From their github page: "This separate import path will allow both versions (original and v2) to be imported to perform a safe in-place upgrade of old files read with the old version and written back out with the new one."

Essentially they are using boltdb and bbolt which will still fail on riscv because of any dependency on boltdb.

#1004303#24
Date:
2026-08-14 10:56:27 UTC
From:
To:
reassign 1004303 ftp.debian.org
severity 1004303 normal
affects -1 + src:golang-github-hashicorp-raft-boltdb
retitle -1 RM: golang-github-hashicorp-raft-boltdb -- ROTeamM; unmaintained and unused
user ftp.debian.org@packages.debian.org
usertags 1004303 remove
thanks

The golang-github-hashicorp-raft-boltdb package was last uploaded on
2018-02-11 and appears unmaintained.  It has no reverse dependencies in
Debian.

https://tracker.debian.org/pkg/golang-github-hashicorp-raft-boltdb

I don't think it is useful to keep this package in Debian.

/Simon

jas@frallan:~/dpkg$ ssh mirror.ftp-master.debian.org dak rm -Rn golang-github-hashicorp-raft-boltdb
Will remove the following packages from unstable:

golang-github-hashicorp-raft-boltdb | 0.0~git20171010.6e5ba93-3 | source
golang-github-hashicorp-raft-boltdb-dev | 0.0~git20171010.6e5ba93-3 | all

Maintainer: Debian Go Packaging Team <pkg-go-maintainers@lists.alioth.debian.org>
------------------- Reason -------------------
---------------------------------------------- Checking reverse dependencies... No dependency problem found. jas@frallan:~/dpkg$
#1004303#37
Date:
2026-08-24 10:36:39 UTC
From:
To:
We believe that the bug you reported is now fixed; the following
package(s) have been removed from unstable:

golang-github-hashicorp-raft-boltdb | 0.0~git20171010.6e5ba93-3 | source
golang-github-hashicorp-raft-boltdb-dev | 0.0~git20171010.6e5ba93-3 | all
------------------- Reason ------------------- ROTeamM; unmaintained and unused ---------------------------------------------- Note that the package(s) have simply been removed from the tag database and may (or may not) still be in the pool; this is not a bug. The package(s) will be physically removed automatically when no suite references them (and in the case of source, when no binary references it). Please also remember that the changes have been done on the master archive and will not propagate to any mirrors until the next dinstall run at the earliest. Packages are usually not removed from testing by hand. Testing tracks unstable and will automatically remove packages which were removed from unstable when removing them from testing causes no dependency problems. The release team can force a removal from testing if it is really needed, please contact them if this should be the case. We try to close bugs which have been reported against this package automatically. But please check all old bugs, if they were closed correctly or should have been re-assigned to another package. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1004303@bugs.debian.org. The full log for this bug can be viewed at https://bugs.debian.org/1004303 This message was generated automatically; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org. Debian distribution maintenance software pp. Thorsten Alteholz (the ftpmaster behind the curtain)