Skip to content

[libsodium] [package list]

libsodium/1.0.22-cpeGNU-26.03 (libsodium-1.0.22-cpeGNU-26.03.eb)

Install with the EasyBuild-user module:

eb libsodium-1.0.22-cpeGNU-26.03.eb -r
To access module help after installation and get reminded for which stacks and partitions the module is installed, use module spider libsodium/1.0.22-cpeGNU-26.03.

EasyConfig:

# Adapted for LUMI by Orian Louant

easyblock = 'ConfigureMake'

local_libsodium_version =    '1.0.22'        # https://download.libsodium.org/libsodium/releases/

name =    'libsodium'
version = local_libsodium_version

homepage = 'https://doc.libsodium.org/'

whatis = [
    'Description: Sodium is a modern, easy-to-use software library for '
    'encryption, decryption, signatures and password hashing.'
]

description = """
Sodium is a new, easy-to-use software library for encryption, decryption, 
signatures, password hashing and more.

It is a portable, cross-compilable, installable, packageable fork of NaCl, with
a compatible API, and an extended API to improve usability even further.

Its goal is to provide all of the core operations needed to build higher-level
cryptographic tools.
"""

doc_urls = ['https://doc.libsodium.org/']
software_license_urls = ['https://github.com/jedisct1/libsodium/blob/master/LICENSE']

toolchain = {'name': 'cpeGNU', 'version': '26.03'}
toolchain_opts = {'pic': True}

source_urls = [
    'https://download.libsodium.org/libsodium/releases/',
    'https://download.libsodium.org/libsodium/releases/old/',
    'https://download.libsodium.org/libsodium/releases/old/unsupported/',
]
sources =   [SOURCE_TAR_GZ]
checksums = ['adbdd8f16149e81ac6078a03aca6fc03b592b89ef7b5ed83841c086191be3349']

build_deps = [
    ('buildtools',          '%(toolchain_version)s', '', True),
    ('craype-network-none', EXTERNAL_MODULE),
    ('craype-accel-host',   EXTERNAL_MODULE),
]

pre_configure_opts = 'module unload cray-libsci cray-mpich xpmem rocm && '
pre_install_opts = pre_build_opts = pre_configure_opts

post_install_cmds = [
    'mkdir -p %(installdir)s/share/licenses/%(name)s',
    'cp AUTHORS LICENSE README.markdown THANKS %(installdir)s/share/licenses/%(name)s',   
]

sanity_check_paths = {
    'files': ['include/sodium.h', f'lib/libsodium.{SHLIB_EXT}', 'lib/libsodium.a'],
    'dirs':  ['include/sodium', 'lib/pkgconfig'],
}

sanity_check_cmds = [
    'pkg-config --validate libsodium',
    f'pkg-config --exact-version={version} libsodium',
]

env_mod_category = 'lib'

[libsodium] [package list]