Skip to content

Commit

Permalink
adding easyconfigs: MDBM-4.13.0-GCCcore-13.2.0.eb and patches: MDBM-4…
Browse files Browse the repository at this point in the history
….13.0_headers.patch
  • Loading branch information
SimonPinches committed May 29, 2024
1 parent 7dc8de0 commit a7eff46
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
40 changes: 40 additions & 0 deletions easybuild/easyconfigs/m/MDBM/MDBM-4.13.0-GCCcore-13.2.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
easyblock = 'ConfigureMake'

name = 'MDBM'
version = '4.13.0'

homepage = 'https://github.com/yahoo/mdbm'

description = """MDBM is a super-fast memory-mapped key/value store"""

toolchain = {'name': 'GCCcore', 'version': '13.2.0'}
toolchainopts = {'pic': True}

source_urls = ['https://github.com/yahoo/%(namelower)s/archive/']
sources = ['v%(version)s.tar.gz']
patches = ['%(name)s-%(version)s_headers.patch']
checksums = [
{'v4.13.0.tar.gz': '99cec32e02639048f96abf4475eb3f97fc669541560cd030992bab155f0cb7f8'},
{'MDBM-4.13.0_headers.patch': 'bf056d4e5efd4a085f89e042b61040380e2f8df55e877c7b1e71c8f76903962f'},
]

builddependencies = [
('binutils', '2.40'),
]

dependencies = [
('CppUnit', '1.15.1'),
('libreadline', '8.2'),
]

skipsteps = ['configure']

prebuildopts = 'sed -i -e "s/error/no-error/ ; s@/tmp/install@%(installdir)s@" Makefile.base && '
prebuildopts += 'LDADD=-ldl'

sanity_check_paths = {
'files': ['bin/mdbm_config', 'include/mdbm.h', 'lib64/libmdbm.so'],
'dirs': ['bin', 'include', 'lib64'],
}

moduleclass = 'data'
12 changes: 12 additions & 0 deletions easybuild/easyconfigs/m/MDBM/MDBM-4.13.0_headers.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# S.D.Pinches (Jan 2024): Patch to allow compilation with GCC v13
diff -Nru mdbm-4.13.0-orig/src/lib/mdbm.c mdbm-4.13.0/src/lib/mdbm.c
--- mdbm-4.13.0-orig/src/lib/mdbm.c 2018-11-12 17:20:21.000000000 +0100
+++ mdbm-4.13.0/src/lib/mdbm.c 2024-02-13 10:22:55.937708854 +0100
@@ -7,6 +7,7 @@
#include <sys/vfs.h>
#endif

+#include <stdint.h>
#include <assert.h>
#include <ctype.h>
#include <dlfcn.h>

0 comments on commit a7eff46

Please sign in to comment.