Conversation
liteparse is a PyO3/maturin abi3-py310 extension that dlopen()s a libpdfium.so bundled next to it. Upstream downloads that library from run-llama/pdfium-binaries (a PDFium fork adding extra FPDF* APIs the extension requires), which publishes no linux-riscv64 asset. Build it with the fork's own recipe at the release liteparse pins (read from crates/pdfium-sys/build.rs), cross-compiled from x64 with target_cpu=riscv64 exactly as the fork does for linux-arm64, then build the wheel natively on riscv64 with upstream's maturin-action job and run upstream's test-wheels checks against it.
luhenry
added a commit
that referenced
this pull request
Sep 25, 2026
Contributor
|
The pdfium build stopped at `gn gen`: PDFium's forked skia/BUILD.gn asserts "Unsupported target CPU riscv64" in skia_opts, reached through the root BUILD.gn's gn_check group (//skia is a dep whenever checkout_skia is set, as it is for checkout_configuration=small) even though pdf_use_skia is false. Carry the empty riscv64 branch Chromium's own skia/BUILD.gn already has, applied to the gclient checkout right after pdfium-binaries' own patches.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
liteparse2.14.2A PyO3 abi3 extension (with tesseract/leptonica statically linked) that loads a bundled libpdfium.so. Upstream publishes no riscv64 wheel.
Mirrors upstream's
release-python.yml, and run-llama/pdfium-binaries'build.ymlfor libpdfium.Differs from upstream
riscv64- the fork publishes no linux-riscv64 assetMatrix: one cp310-abi3 wheel, as upstream ships; tested on cp312.
Testing
License: Wheel bundles PDFium (BSD-3-Clause, plus its FreeType/libjpeg-turbo/libpng/ICU/Abseil/zlib notices), tesseract (Apache-2.0) and leptonica (BSD-2-Clause); upstream ships no licence text for them, so the build adds it.