Debian Patches
Status for rust-secp256k1-sys/0.14.1+dfsg-4
| Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
|---|---|---|---|---|---|---|
| build-system-lib.patch | Build against the system libsecp256k1 instead of the bundled one The crate bundles the full libsecp256k1 C source under depend/ and compiles it at build time with the cc crate. Debian instead uses the packaged libsecp256k1: drop the cc build-dependency, link against the system library and enable the rust_secp_no_symbol_renaming cfg so the FFI refers to the unprefixed secp256k1_* symbols exported by the system library. |
Ying-Chun Liu (PaulLiu) <paulliu@debian.org> | not-needed | 2026-10-22 | ||
| fix-verify-types-on-non-x86.patch | Make verify_types pass on targets where C char is unsigned The `verify_types` test asserted that the crate's `types::c_char` (hardcoded to `i8`) has the same TypeId as `std::os::raw::c_char`. On aarch64 and several other targets C's `char` type is unsigned, so `std::os::raw::c_char` is `u8` there and the assertion failed (FTBFS of the autopkgtest on arm64). The crate itself documents that `types::c_char` "might not match C's c_char exactly" and is only used in a way that works either way; only size and alignment matter for the FFI bindings, so relax the assertion accordingly. |
Ying-Chun Liu (PaulLiu) <paulliu@debian.org> | invalid | vendor | 2026-10-25 | |
| 0002-provide-lax-der-parser.patch | Build the vendored lax DER parser against the system libsecp256k1 The system libsecp256k1 does not compile contrib/lax_der_parsing.c into the shared library (it is only used by the upstream test suite), so the Debian libsecp256k1 does not export `ecdsa_signature_parse_der_lax`. The sys crate therefore loses that symbol when linked against the system library, breaking `secp256k1::ecdsa::Signature::from_der_lax()` in the high-level crate. . Re-add the cc build-dependency and compile a vendored copy of lax_der_parsing.c (with its header) next to the system libsecp256k1 so that the symbol remains available to consumers. This is a Debian-specific integration because upstream builds the bundled libsecp256k1 itself. |
Ying-Chun Liu (PaulLiu) <paulliu@debian.org> | not-needed | vendor | 2026-11-01 |
All known versions for source package 'rust-secp256k1-sys'
- 0.14.1+dfsg-4 (forky, sid)
