Skip to content

[c-ares] [package list]

c-ares/1.34.8-cpeCray-26.03 (c-ares-1.34.8-cpeCray-26.03.eb)

Install with the EasyBuild-user module:

eb c-ares-1.34.8-cpeCray-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 c-ares/1.34.8-cpeCray-26.03.

EasyConfig:

easyblock = 'ConfigureMake'

local_cares_version =        '1.34.8'        # https://github.com/c-ares/c-ares/releases

name =    'c-ares'
version = local_cares_version

homepage = 'https://c-ares.org/'

whatis = [
    'Description: c-ares is a C library for asynchronous DNS requests (including name resolves)'
]

description = "c-ares is a C library for asynchronous DNS requests (including name resolves)"

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

source_urls = ['https://github.com/c-ares/c-ares/releases/download/v%(version)s']
sources =     [SOURCELOWER_TAR_GZ]
checksums =   ['c222b6d681096f9444d2c4863d2c1174019e27cacca0a4a5c114d36dd7d7bf78']

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

pre_configure_opts = 'autoreconf -i -f && module unload rocm cray-libsci && '
pre_build_opts = 'module unload rocm cray-libsci && '

post_install_cmds = [
    'mkdir -p %(installdir)s/share/licenses/%(name)s',
    'cp AUTHORS CONTRIBUTING.md DEVELOPER-NOTES.md LICENSE.md README.md RELEASE-NOTES.md SECURITY.md %(installdir)s/share/licenses/%(name)s',   
]

sanity_check_paths = {
    'files': ['lib/libcares.a', 'lib/libcares.%s' % SHLIB_EXT, 'lib/pkgconfig/libcares.pc', 'share/licenses/c-ares/LICENSE.md'],
    'dirs':  ['include', 'share/man'],
}

sanity_check_cmds = [
    # Check if pkg-config can process the libcares.pc file
    'pkg-config --validate libcares',
    'pkg-config --libs libcares | grep -q "%(installdir)s"',
    f'pkg-config --exact-version={version} libcares'
]

env_mod_category = 'lib'

[c-ares] [package list]