Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Fix lmdb pkgconf name: liblmdb -> lmdb #95

Closed
wants to merge 1 commit into from
Closed

Fix lmdb pkgconf name: liblmdb -> lmdb #95

wants to merge 1 commit into from

Conversation

jirutka
Copy link

@jirutka jirutka commented Sep 14, 2022

build.rs currently never finds a system-provided lmdb library. pkgconf (or pkg-config) expects name of the .pc file, not name of the library file, and lmdb provides lmdb.pc (checked in Alpine Linux, Debian, Fedora).

This has been already proposed in the original project: danburkert#53

Shouldn’t lmdb-sys also declare links in Cargo.toml?

build.rs currently never finds the system-provided lmdb library.
pkgconf (or pkg-config) expects the name of the .pc file, not the name
of the library file, and lmdb provides lmdb.pc (checked in
Alpine Linux, Debian, Fedora).

This has been already proposed in the original project:
danburkert#53
bors bot added a commit to meilisearch/lmdb-rs that referenced this pull request Sep 15, 2022
10: Fix lmdb pkgconf name: liblmdb -> lmdb r=Kerollmops a=jirutka

Fixes #9

build.rs currently never finds the system-provided lmdb library. pkgconf (or pkg-config) expects the name of the .pc file, not the name of the library file, and lmdb provides `lmdb.pc`, not `liblmdb.pc` (checked in Alpine Linux, Debian, Fedora).

This has been already proposed in the original project: danburkert#53.
I’ve opened this pull request also in Mozilla’s fork: mozilla#95.

Shouldn’t lmdb-sys also declare `links` in Cargo.toml?

Co-authored-by: Jakub Jirutka <jakub@jirutka.cz>
@jirutka jirutka closed this by deleting the head repository Sep 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant