Skip to content

[branch-24.03] snap: fix build of embedded docs when building from source#314

Open
fnordahl wants to merge 6 commits intocanonical:branch-24.03from
fnordahl:branch-24.03-fix-docs-riscv64
Open

[branch-24.03] snap: fix build of embedded docs when building from source#314
fnordahl wants to merge 6 commits intocanonical:branch-24.03from
fnordahl:branch-24.03-fix-docs-riscv64

Conversation

@fnordahl
Copy link
Member

Please review/merge commit by commit.

To support review, a log from successful build of the docs/.sphinx/venv with --no-binary :all: on emulated riscv64 VM can be viewed in [0].

The instructions on this page were useful in this endeavor [1].

0: https://gist.github.com/fnordahl/b83d1bf09e1c8b1775f02a66f2020728
1: https://canonical-ubuntu-hardware-support.readthedocs-hosted.com/boards/how-to/qemu-riscv/

The commit in the fixes tag installed a newer version of the rust
compiler than what was available in the core24 build base.

This fixed a Python build issue at the time for most
architectures, however it turned out to still break on riscv64
due to some Python dependency build systems not properly
detecting the presence of the compiler.

Fix build on riscv64.

Fixes: 3e51f75 ("snap/docs: Bump rust version for Python dependencies.")
Signed-off-by: Frode Nordahl <[email protected]>
(cherry picked from commit 12bb4df)
Signed-off-by: Frode Nordahl <[email protected]>
(cherry picked from commit 332cf80)
(cherry picked from commit e3079c0)
This is needed for the new `--build-constraints` option.

Signed-off-by: Frode Nordahl <[email protected]>
(cherry picked from commit e567356)
(cherry picked from commit 2b8469e)
The next commit will update constraints for Python dependencies,
and as it happens there is currently an impossible set of indirect
build dependencies for the direct dependencies preventing
successful build from source.

We resolve this situation by allowing the use of the `pip install`
`--build-constraint` argument.

Signed-off-by: Frode Nordahl <[email protected]>
(cherry picked from commit 25b8fbb)
(cherry picked from commit a2412ef)
maturin v1.10 bumped Cargo.lock version to 4 which is not
supported by rust toolchain in a 24.04 build base.

setuptools 82 drops the `pkg_resources` module.

watchfiles 1.1.0 depends on notify v8.0.0 which is not supported
by rust toolchain in a 24.04 build base.

Signed-off-by: Frode Nordahl <[email protected]>
(cherry picked from commit e40148e)
There has been a reorganization of the Ubuntu discourse, and the
bespoke MicroOVN category is no longer to be found.

While not a perfect fit, using the MicroCloud category to unblock
our CI while we figure out a new home.

Signed-off-by: Frode Nordahl <[email protected]>
(cherry picked from commit b015343)
(cherry picked from commit 9907249)
@fnordahl fnordahl marked this pull request as ready for review February 23, 2026 21:09
@fnordahl fnordahl requested a review from a team as a code owner February 23, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant