Skip to content

Commit 0819d62

Browse files
committed
Add liblmdb to IOG profiles
Add the lmdb dev library to IOG profile, since it is required by ouroboros-consensus and cardano-lmdb. It fixes the GitHub build failure: [__2] next goal: cardano-lmdb (dependency of ouroboros-consensus) [__2] rejecting: cardano-lmdb; 0.4.0.3, 0.4.0.2, 0.4.0.1, 0.4.0.0 (conflict: pkg-config package lmdb>=0.9 && <0.10, not found in the pkg-config database) [__2] rejecting: cardano-lmdb-0.3.0.0 (conflict: ouroboros-consensus => cardano-lmdb>=0.4) [__2] fail (backjumping, conflict set: cardano-lmdb, ouroboros-consensus) After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: ouroboros-consensus, cardano-chain-gen, cardano-node, cardano-db-sync, cardano-lmdb Try running with --minimize-conflict-set to improve the error message. Note that I had to copy the postPatch from nixpkgs, since musl64 is not considered a static platform.
1 parent b153ade commit 0819d62

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

dynamic.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ pkgs.mkShell {
124124
jq
125125
libblst
126126
libsodium-vrf
127+
lmdb # for cardano-lmdb/ouroboros-consensus
127128
secp256k1
128129
yq-go
129130
]

flake.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
'';
3737
postFixup = "";
3838
});
39+
static-lmdb = final.lmdb.overrideDerivation (old: {
40+
# Don't attempt the .so if static, as it would fail.
41+
postPatch = ''
42+
sed 's/^ILIBS\>.*/ILIBS = liblmdb.a/' -i Makefile
43+
'';
44+
});
3945
});
4046

4147
cddl-tools = (final: prev: {

static.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ pkgs.mkShell (rec {
128128
static-libblst
129129
static-libsodium-vrf
130130
static-secp256k1
131+
static-lmdb # for cardano-lmdb/ouroboros-consensus
131132
icu # for cardano-cli
132133
gh
133134
jq

0 commit comments

Comments
 (0)