Skip to content

python-olm: Add version 3.2.16 - #2169

Merged
luhenry merged 1 commit into
mainfrom
python-olm
Sep 21, 2026
Merged

luhenry merged 1 commit into
mainfrom
python-olm

Conversation

@luhenry

@luhenry luhenry commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

Compiles libolm, Matrix's C/C++11 implementation of the Olm and Megolm ratchets, and links it statically into a cffi extension. Upstream publishes no riscv64 wheel.

Mirrors upstream's python/.gitlab-ci.yml.

Differs from upstream

  • Clones over https rather than actions/checkout — olm lives on gitlab.matrix.org.
  • Sets CMAKE_POLICY_VERSION_MINIMUM=3.5 — libolm asks for cmake 3.4.
  • No musllinux — upstream ships none and cffi has no musl riscv64 wheel.

Testing

  • tests/ is staged from the git tree, which the sdist omits.

License: Wheel statically links libolm (Apache-2.0) and curve25519-donna (BSD-3-Clause); upstream ships no licence text for either, so the build adds it.

Patches

  • 0001-ship-libolm-s-licences-with-the-wheel.patch — To upstream [libolm is deprecated upstream]. Without it the wheel carries no licence file at all. Reproduces on x86.

Built on cp312; 62 passed, 0 skipped.

Add the riscv64 wheel build for python-olm 3.2.16, the cffi bindings for
libolm, Matrix's Olm/Megolm cryptographic ratchet.

The sdist job mirrors upstream's own make_sdist.sh (the released PyPI sdist
is byte-identical in file list), and the wheel job builds that sdist with
cibuildwheel on the riscv64 manylinux image. libolm's CMakeLists declares
cmake_minimum_required(VERSION 3.4), below CMake 4's floor, so the build
carries CMAKE_POLICY_VERSION_MINIMUM=3.5.

The wheel carried no licence text at all; a patch adds libolm's Apache-2.0
LICENSE and curve25519-donna's BSD-3-Clause notice.
@github-actions

github-actions Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-21 13:49 UTC

@luhenry
luhenry marked this pull request as ready for review September 21, 2026 13:07
@luhenry
luhenry merged commit e86f4dd into main Sep 21, 2026
13 checks passed
@luhenry
luhenry deleted the python-olm branch September 21, 2026 13:46
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