mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
* many: allow building without bolt using nobolt tag Bolt is an abandoned project. Upstream is not accepting any patches. Debian has three versions of bolt, none of which build on riscv64 due to the lack of appropriate architecture tags. In Debian, bolt is not built from the vendored package but instead from the distribution package, one of three in the archive, each capturing a different, outdated and differently patched fork. Fortunately, bolt is not really heavily used in snapd. While we try to address the issue regarding bolt and riscv64, we can continue to build snapd on riscv64 without the ability to store information only used by command-not-found helpers. Allow advisor to fail with advisor.ErrNotSupported when snapd is built without bolt support. Tests for the store, overlord package and the "snap advise" command are adjusted to skip certain tests when that error is returned. Debian-Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010686 Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com> * advisor: adjust error message Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com> * tests: run unit tests for nobolt build tag Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com> * packaging: drop bolt from debian dependencies With the ability to build snapd without bolt support, we can drop the patch responsible for using non-forked bolt. Bolt is really only needed by the advisor package, which is used and consumed as a command-not-found data set. None of that is effective on Debian, making maintenance easier. Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com> * packaging: do not use bolt on Debian Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com> --------- Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>