Package: rust-lmdb-master-sys / 0.2.5-1

Metadata

Package Version Patches format
rust-lmdb-master-sys 0.2.5-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
relax deps.patch | (download)

Cargo.toml | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 use versions of build-deps available in debian
disable features.patch | (download)

Cargo.toml | 15 0 + 15 - 0 !
1 file changed, 15 deletions(-)

 disable non-default features
 Upstream `lmdb-master-sys` relies on compiling a vendored version of
 `liblmdb`, providing multiple features enabled using compiler flags and
 defines. Our Debian package uses the pre-built packaged library, and
 therefore cannot provide those features. As no consumer of
 `lmdb-master-sys` currently relies on those features, we can disable
 them entirely.
fix build.patch | (download)

Cargo.toml | 4 2 + 2 - 0 !
build.rs | 152 2 + 150 - 0 !
2 files changed, 4 insertions(+), 152 deletions(-)

 fix build on debian
 Upstream code relies on building a static library from vendored source.
 For Debian we want to avoid this and would rather use the pre-built,
 packaged version of `liblmdb`. Using pkg-config is a simple way to ensure
 the needed linker flags (especially `-llmdb`) are used and the build can
 therefore succeed.
fix bindgen feature.patch | (download)

bindgen.rs | 14 5 + 9 - 0 !
1 file changed, 5 insertions(+), 9 deletions(-)

 fix the 'bindgen' feature
 The 'bindgen' feature is used to (re)generate the Rust bindings to the
 C library. It should not be needed since the bindings are included in
 the crate anyway, but in case it is, we fix it by generating them from
 the C headers included in the liblmdb-dev package and saving them to
 OUT_DIR. Note: the bindings are not generated if we cannot find the
 system headers in the easiest way possible.
fix tests.patch | (download)

Cargo.toml | 3 3 + 0 - 0 !
tests/lmdb.rs | 1 1 + 0 - 0 !
tests/simple.rs | 9 7 + 2 - 0 !
3 files changed, 11 insertions(+), 2 deletions(-)

---