Skip to content

Commit 3a4fa1c

Browse files
committed
Restore legacy lmdb behavior of hard-coded MDB_MAXKEYSIZE=511
Adjusting core code to work with a dynamic max key size in lmdb is a larger effort. Ticket: ENT-14295 Changelog: none
1 parent f882a56 commit 3a4fa1c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

deps-packaging/lmdb/cfbuild-lmdb.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ Patch0: mdb.patch
1919

2020
%if %{?with_debugsym}%{!?with_debugsym:0}
2121
%define debug_package %{nil}
22-
%define cflags CFLAGS="-ggdb3"
22+
%define cflags CFLAGS="-ggdb3 -DMDB_MAXKEYSIZE=511"
2323
%else
24-
%define cflags CFLAGS=""
24+
%define cflags CFLAGS="-DMDB_MAXKEYSIZE=511"
2525
%endif
2626

2727
%ifarch %ix86

deps-packaging/lmdb/debian/rules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ build-stamp:
2727
# it can't without automake. Work around it by touching that file.
2828
touch libraries/liblmdb/Makefile.in
2929
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
30-
cd libraries/liblmdb/ && sh ./configure --host=$(DEB_HOST_GNU_TYPE) --prefix=$(PREFIX) $(PTHREAD) && make
30+
cd libraries/liblmdb/ && CFLAGS="-DMDB_MAXKEYSIZE=511" sh ./configure --host=$(DEB_HOST_GNU_TYPE) --prefix=$(PREFIX) $(PTHREAD) && make
3131
else
32-
cd libraries/liblmdb/ && env CFLAGS="-ggdb3" sh ./configure --host=$(DEB_HOST_GNU_TYPE) --prefix=$(PREFIX) $(PTHREAD) && make
32+
cd libraries/liblmdb/ && env CFLAGS="-ggdb3 -DMDB_MAXKEYSIZE=511" sh ./configure --host=$(DEB_HOST_GNU_TYPE) --prefix=$(PREFIX) $(PTHREAD) && make
3333
endif
3434
touch build-stamp
3535

0 commit comments

Comments
 (0)