]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
debian: build with system jerasure and gf-complete 68258/head
authorKefu Chai <k.chai@proxmox.com>
Thu, 9 Apr 2026 00:21:02 +0000 (08:21 +0800)
committerKefu Chai <k.chai@proxmox.com>
Thu, 9 Apr 2026 00:27:41 +0000 (08:27 +0800)
commit11e45a45f5e14b472acde31168a30bed5e60cf8b
tree2acbdc0fe6f40619e733a00ae85f909264996624
parente35375b67324a875bd5e99a7758faf07259cc9ca
debian: build with system jerasure and gf-complete

Add libjerasure-dev to Build-Depends and enable WITH_SYSTEM_JERASURE
so that the Debian package builds ec_jerasure and ec_shec plugins
against the distribution-provided libraries instead of the vendored
copies.

libjerasure-dev pulls in libgf-complete-dev, so both libraries are
covered by a single build dependency.

Add libjerasure2 to ceph-base's Depends for the runtime shared
libraries. libjerasure2 in turn depends on libgf-complete1t64.
The explicit dependency is needed because dh_shlibdeps excludes
erasure-code plugins from automatic dependency scanning (they are
loaded via dlopen at runtime).

The distro-packaged jerasure and gf-complete are from the same
upstream git snapshots (2017/04/10) as ceph's vendored copies.
gf-complete source is byte-identical. jerasure differs only in
additional null-pointer checks and error handling in jerasure.c,
plus an extra galois_uninit_field() function that ceph does not use.
All function signatures ceph depends on are present and compatible.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
debian/control
debian/rules