diff --git a/easybuild/easyconfigs/m/MDBM/MDBM-4.13.0-GCCcore-13.2.0.eb b/easybuild/easyconfigs/m/MDBM/MDBM-4.13.0-GCCcore-13.2.0.eb new file mode 100644 index 00000000000..c7b731e5ce7 --- /dev/null +++ b/easybuild/easyconfigs/m/MDBM/MDBM-4.13.0-GCCcore-13.2.0.eb @@ -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' diff --git a/easybuild/easyconfigs/m/MDBM/MDBM-4.13.0_headers.patch b/easybuild/easyconfigs/m/MDBM/MDBM-4.13.0_headers.patch new file mode 100644 index 00000000000..ae9fdfd6856 --- /dev/null +++ b/easybuild/easyconfigs/m/MDBM/MDBM-4.13.0_headers.patch @@ -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 + #endif + ++#include + #include + #include + #include