Skip to content

[libpciaccess] [package list]

libpciaccess/0.19-cpeAMD-26.03 (libpciaccess-0.19-cpeAMD-26.03.eb)

To access module help and find out for which stacks and partitions the module is installed, use module spider libpciaccess/0.19-cpeAMD-26.03.

EasyConfig:

easyblock = 'MesonNinja'

local_xorg_macros_version =  '1.20.2'        # https://cgit.freedesktop.org/xorg/util/macros
local_craypython_version =   '3.12.12'
local_zlib_version =         '2.3.3'         # https://github.com/zlib-ng/zlib-ng/releases

local_libpciaccess_version = '0.19'          # https://cgit.freedesktop.org/xorg/lib/libpciaccess/

local_craypython_maj_min = '.'.join( local_craypython_version.split('.')[:2] )

name =    'libpciaccess'
version = local_libpciaccess_version

homepage = 'https://cgit.freedesktop.org/xorg/lib/libpciaccess/'

whatis = [
    'Description: Generic PCI access library.'
]

description = """
Generic PCI access library.
"""

software_license_urls  = [
    f'https://cgit.freedesktop.org/xorg/lib/libpciaccess/tree/COPYING?h=libpciaccess-{version}',
]

toolchain = {'name': 'cpeAMD', 'version': '26.03'}

# https://www.x.org/releases/individual/lib/libpciaccess-0.19.tar.xz
source_urls = ['https://www.x.org/releases/individual/lib/']
sources =     [SOURCE_TAR_XZ]
checksums =   ['3c55aa86c82e54a4e3109786f0463530d53b36b6d1cfd14616454f985dd2aa43']

build_deps = [ # Create a reproducible build environment.
    ('buildtools',        '%(toolchain_version)s',   '',                                        True),
    ('buildtools-python', '%(toolchain_version)s',   f'-cray-python{local_craypython_maj_min}', True), # For Meson
    ('xorg-macros',       local_xorg_macros_version, '',                                        True),
]

deps = [
    ('zlib', local_zlib_version),
]

# Doesn't need MPI or BLAS, and module unload never fails so this is safe.
pre_configure_opts = 'module unload cray-libsci cray-mpich xpmem && '
pre_install_opts = pre_build_opts = pre_configure_opts

configure_opts = "--default-library=both"  # static and shared library

post_install_cmds = [
    'mkdir -p %(installdir)s/share/licenses/%(name)s',
    'cd ../%(namelower)s-%(version)s && cp AUTHORS COPYING README.md %(installdir)s/share/licenses/%(name)s',   
]

sanity_check_paths = {
    'files': ['lib/libpciaccess.%s' % x for x in ['a', SHLIB_EXT]] +
             ['include/pciaccess.h', 'lib/pkgconfig/pciaccess.pc', f'share/licenses/{name}/COPYING'],
    'dirs':  [],
}

# Just to be sure, check for pkg-config compatibility with Cray pkg-config.
sanity_check_cmds = [
    'pkg-config --libs pciaccess | grep "%(installdir)s/lib"',
]

env_mod_category = 'system'

[libpciaccess] [package list]