Skip to content

[syslibs] [package list]

syslibs/22.12-static (syslibs-22.12-static.eb)

To access module help and find out for which stacks and partitions the module is installed, use module spider syslibs/22.12-static.

EasyConfig:

easyblock = 'Bundle'

local_LUMI_version =        '22.12'

name =          'syslibs'
version =       local_LUMI_version
versionsuffix = '-static'

homepage = '(none)'

# We list all libraries in a whatis line so that they can be found by module keyword.
# Contrary to what the LMOD documentation makes you believe, it seems that help is
# not searched when using module keyword.
whatis = [
    "Description: A number of libraries that are mostly also on the system but as static libraries to be used as build dependencies.",
    "Contains: ncurses/ncursesw, readline, bzip2, zlib, lz4, cURL, expat, APR/APR-util, file, PCRE2, SQLite3",
]

local_syslibs_ncurses_version =      '6.4'           # https://ftp.gnu.org/pub/gnu/ncurses/
local_syslibs_libreadline_version =  '8.2'           # https://ftp.gnu.org/pub/gnu/readline/
local_syslibs_bzip2_version =        '1.0.8'         # https://sourceware.org/git/?p=bzip2.git;a=summary
local_syslibs_zlib_version =         '1.2.13'        # https://zlib.net/
local_syslibs_lz4_version =          '1.9.4'         # https://github.com/lz4/lz4/releases
local_syslibs_Brotli_version =       '1.0.9'         # https://github.com/google/brotli/releases
local_syslibs_cURL_version =         '7.88.1'        # https://curl.haxx.se/download/
local_syslibs_expat_version =        '2.5.0'         # https://github.com/libexpat/libexpat/releases
local_syslibs_APR_version =          '1.7.3'         # https://apr.apache.org/
local_syslibs_APR_util_version =     '1.6.3'         # https://apr.apache.org/
local_syslibs_file_version =         '5.44'          # http://ftp.astron.com/pub/file/
local_syslibs_PCRE2_version =        '10.42'         # https://github.com/PhilipHazel/pcre2/releases
local_syslibs_Serf_version =         '1.3.9'         # https://serf.apache.org/download
local_syslibs_SQLite3_version =      '3.41.0'        # https://www.sqlite.org/

description = """
This module provides a number of libraries that are mostly also found on the
system but as static libraries meant to be used as build dependencies for a
number of tools that should not introduce dependencies when being used so that
their impact on other software remains minimal.

Contrary to previous versions of this module, the versions do no longer correspond
to those in SUSE Linux. OFten very recent versions are provided. As they are meant
for static linking, they won't interfer with system libraries anyways.

Overview of included libraries:

* Terminal I/O
  + ncurses (version %(ncurses)s): The Ncurses (new curses) library is a free software
    emulation of curses in System V Release 4.0, and more. It uses Terminfo
    format, supports pads and color and multiple highlights and forms characters
    and function-key mapping, and has all the other SYSV-curses enhancements
    over BSD Curses.
    Documentation is available through man pages in sections 3, 5 and 7.
  + libreadline (version %(libreadline)s): The GNU Readline library provides a set of
    functions for use by applications that allow users to edit command lines as
    they are typed in. Both Emacs and vi editing modes are available.
    The Readline library includes additional functions to maintain a list of
    previously-entered command lines, to recall and perhaps reedit those lines,
    and perform csh-like history expansion on previous commands.
    There are manual pages for readline and history and help via info.
* File compression tools and libraries
  + bzip2 (version %(bzip2)s): Patent-free high-quailty data compressor
    with very good compression yet fast compression and decompression
    (.bz2 files)
  + zlib (version %(zlib)s): Free lossless data compression library, not
    covered by any patents, for the popular .gz files.
  + lz4 (version %(lz4)s): LZ4 is lossless compression algorithm, providing compression
    speed at 400 MB/s per core. It features an extremely fast decoder, with
    speed in multiple GB/s per core.
* Networking, security and XML
  + expat (version %(expat)s): Expat is an XML parser library written in C.
    It is a stream-oriented parser in which an application registers handlers
    for things the parser might find in the XML document (like start tags).
    It provides the command line tool xmlwf and static and shared libraries.
* Miscellaneous
  + APR (version %(APR)s) and APR-util (version %(APR_util)s): Apache Portable
    Runtime and its util libraries.

    The mission of the Apache Portable Runtime (APR) project is to create and
    maintain software libraries that provide a predictable and consistent
    interface to underlying platform-specific implementations. The primary goal
    is to provide an API to which software developers may code and be assured
    of predictable if not identical behaviour regardless of the platform on
    which their software is built, relieving them of the need to code
    special-case conditions to work around or take advantage of platform-specific
    deficiencies or features.
  + file (version %(filev)s): The file command is "a file type guesser", that
    is, a command-line tool that tells you in words what kind of data a file
    contains. Unlike most GUI systems, command-line UNIX systems - with this
    program leading the charge - don't rely on filename extentions to tell you
    the type of a file, but look at the file's actual contents. This is, of
    course, more reliable, but requires a bit of I/O.This is a
    re-implementation of the original file command shipped with Bell Labs UNIX.
  + PCRE2 (version %(PCRE2)s: More modern version of PCRE.
    The package includes the command line tools pcre2grep, pcre2test and
    pcre2-config, documented through man pages. API documentation is available
    through man pcre2.
  + Serf (version %(Serf)s): The serf library is a high performance C-based HTTP client library
    built upon the Apache Portable Runtime (APR) library.

    Key features are:
      * multiplexed, asynchronous connections
      * SSL/TLS support
      * full HTTP pipelining
      * multiple authentication modes (Basic, Digest, Kerberos/NTLM)
      * zero-copy support for increased throughput

    Its main uses are in other Apache software such as subversion and Open
    Office.

    The Serf library is permissively licensed under the Apache License, v2.
  + SQLite3 (version %(SQLite3)s): SQLite is a C-language library that implements a small, fast, self-contained,
    high-reliability, full-featured, SQL database engine. SQLite is the most used
    database engine in the world. SQLite is built into all mobile phones and most
    computers and comes bundled inside countless other applications that people
    use every day. More Information...

    The SQLite file format is stable, cross-platform, and backwards compatible and
    the developers pledge to keep it that way through the year 2050. SQLite database
    files are commonly used as containers to transfer rich content between systems
    and as a long-term archival format for data. There are over 1 trillion (1e12)
    SQLite databases in active use.

    SQLite source code is in the public-domain and is free to everyone to use for
    any purpose.

    NOTE: This is not a full-featured build but serves to build svn
""" % {
    'ncurses':      local_syslibs_ncurses_version,
    'libreadline':  local_syslibs_libreadline_version,
    'bzip2':        local_syslibs_bzip2_version,
    'zlib':         local_syslibs_zlib_version,
    'lz4':          local_syslibs_lz4_version,
    'cURL':         local_syslibs_cURL_version,
    'expat':        local_syslibs_expat_version,
    'APR':          local_syslibs_APR_version,
    'APR_util':     local_syslibs_APR_util_version,
    'filev':        local_syslibs_file_version,
    'PCRE2':        local_syslibs_PCRE2_version,
    'Serf':         local_syslibs_Serf_version,
    'SQLite3':      local_syslibs_SQLite3_version,
}

docurls = [
    'ncurses:       Web-based documentation on https://www.gnu.org/software/ncurses/',
    'libreadline:   Web-based readline user interface documentation: https://tiswww.cwru.edu/php/chet/readline/rluserman.html',
    'libreadline:   Web-based libreadline documentation: https://tiswww.cwru.edu/php/chet/readline/readline.html',
    'libreadline:   Web-based libhistory documentation: https://tiswww.cwru.edu/php/chet/readline/history.html',
    'bzip2:         Web-based documentation on http://www.bzip.org/docs.html',
    'zlib:          Web-based manual on https://zlib.net/manual.html',
    'lz4:           Manual page for the lz4 command in section 1',
    'expat:         Web-based documentation: https://libexpat.github.io/doc/',
    'expat:         Man page for xmlwf',
    'file:          Home page is https://www.darwinsys.com/file/',
    'PCRE2:         Web-based documentation: http://www.pcre.org/current/doc/html/',
    'PCRE2:         Manual pages in section 1 (pcre2grep, pcre2test) and 3 (API, start with pcre2)',
    'SQLite3:       Manual page for the sqlite3 command in section 1',
]

local_syslibs_bzip2_major_minor = '.'.join(local_syslibs_bzip2_version.split('.')[:2])
local_SQLite3_filename_version =  '%1d%02d%02d00' % (int(local_syslibs_SQLite3_version.split('.')[0]), int(local_syslibs_SQLite3_version.split('.')[1]), int(local_syslibs_SQLite3_version.split('.')[2]))

toolchain = SYSTEM

builddependencies = [
    ('buildtools', local_LUMI_version, '-bootstrap'),   # Needed for Serf, useful for the rest.
]

default_easyblock = 'ConfigureMake'

components = [
#    ('Brotli', local_syslibs_Brotli_version, { # Usefull for cURL but fail to do a static only build or to put in lib instead of lib64.
#        'easyblock':     'CMakeMake',
#        'sources':       [ {
#                            'download_filename': 'v%(version)s.tar.gz',
#                            'filename':          SOURCELOWER_TAR_GZ,
#                            'source_urls':       ['https://github.com/google/brotli/archive']
#                         } ],
#        'checksums':     ['f9e8d81d0405ba66d181529af42a3354f838c939095ff99930da6aa9cdf6fe46'],
#        'start_dir':     '%(namelower)s-%(version)s',
#        'preconfigopts': 'CFLAGS="-O2 -march=znver1 -fPIC" CXXFLAGS="-O2 -march=znver1 -fPIC" ',
#        'configopts':    '-DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF'
#    }),
#
# Terminal libraries
#
    ('ncurses', local_syslibs_ncurses_version, {
        'easyblock':   'ConfigureMake',
        'sources':       [ {
                            'filename':    SOURCE_TAR_GZ,
                            'source_urls': [GNU_SOURCE]
                         } ],
        'checksums':     ['6931283d9ac87c5073f30b6290c4c75f21632bb4fc3603ac8100812bed248159'],
        'start_dir':     '%(namelower)s-%(version)s',
        'preconfigopts': 'CFLAGS="-O2 -march=znver1 -fPIC" CXXFLAGS="-O2 -march=znver1 -fPIC" ',
        'configopts':    '--without-shared --with-normal --with-termlib --with-ticlib  --enable-overwrite' +
                         '--without-ada --enable-symlinks --with-versioned-syms ' +
                         '--enable-pc-files --with-pkg-config-libdir=%(installdir)s/lib/pkgconfig ', # First build: default build.
    }),
    ('ncurses', local_syslibs_ncurses_version, {
        'easyblock':   'ConfigureMake',
        'sources':       [ {
                            'filename':    SOURCE_TAR_GZ,
                            'source_urls': [GNU_SOURCE]
                         } ],
        'checksums':     ['6931283d9ac87c5073f30b6290c4c75f21632bb4fc3603ac8100812bed248159'],
        'start_dir':     '%(namelower)s-%(version)s',
        'preconfigopts': 'make distclean && CFLAGS="-O2 -march=znver1 -fPIC" CXXFLAGS="-O2 -march=znver1 -fPIC" ',
        'configopts':    '--without-shared --with-normal --with-termlib --with-ticlib --enable-overwrite ' +
                         '--without-ada --enable-symlinks --with-versioned-syms ' +
                         '--enable-pc-files --with-pkg-config-libdir=%(installdir)s/lib/pkgconfig ' +
                         '--enable-ext-colors --enable-widec --includedir=%(installdir)s/include/ncursesw/', # Second build: the UTF-8 enabled version (ncursesw)
        'installopts':   ' && cd %(installdir)s && /bin/rm -rf bin lib/*.so*'
    }),
    ('libreadline', local_syslibs_libreadline_version, {
        'easyblock':   'ConfigureMake',
        'sources':       [ {
                            'filename':    'readline-%(version)s.tar.gz',
                            'source_urls': ['http://ftp.gnu.org/gnu/readline']
                         }],
        'checksums':     ['3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35'],
        'start_dir':     'readline-%(version)s',
        'preconfigopts': "LD_LIBRARY_PATH=%(installdir)s/lib:$LD_LIBRARY_PATH LDFLAGS='-L%(installdir)s/lib -lncurses' " +
                         "CFLAGS='-O2 -march=znver1 -fPIC' CXXFLAGS='-O2 -march=znver1 -fPIC' ",
        'configopts':    '--enable-static --disable-shared',
        'buildopts':     "SHLIB_LIBS='-lncurses'",
    }),
    ('bzip2', local_syslibs_bzip2_version, {
        # The bzip2 EasyBlock does not work in a bundle since there is a problem with with_shared_libs
        # https://sourceforge.net/projects/bzip2/files/bzip2-1.0.6.tar.gz/download
        'sources':     [ {
                          'filename':    SOURCE_TAR_GZ,
                          'source_urls': ['https://sourceware.org/pub/%(name)s/']
                       } ],
        'checksums':     ['ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269'],
        'patches':     ['bzip2-%(version)s-pkgconfig.patch'],
        'start_dir':   '%(namelower)s-%(version)s',
        'skipsteps':   ['configure'],
        'buildopts':   'CC="$CC" CFLAGS="-Wall -Winline -O2 -march=znver1 -fPIC -g \$(BIGFILES)"',
        'installopts': 'PREFIX="%(installdir)s" ',
    }),
    ('zlib', local_syslibs_zlib_version, {
        'easyblock':   'ConfigureMake',
        'sources':       [ {
                            # https://www.zlib.net/zlib-1.2.11.tar.gz
                            'filename':    SOURCELOWER_TAR_GZ,
                            'source_urls': ['https://www.zlib.net/']
                         } ],
        'checksums':     ['b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30'],
        'start_dir':     '%(namelower)s-%(version)s',
        'preconfigopts': 'CFLAGS="-O2 -march=znver1 -fPIC" CXXFLAGS="-O2 -march=znver1 -fPIC" ',
        'configopts':    '--static'
    }),
    ('lz4', local_syslibs_lz4_version, {
        'easyblock':   'ConfigureMake',
        'sources':     [ {
                          'download_filename': 'v%(version)s.tar.gz',
                          'filename':          SOURCELOWER_TAR_GZ,
                          'source_urls':       ['https://github.com/lz4/lz4/archive/']
                       } ],
        'checksums':     ['0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b'],
        'start_dir':   '%(namelower)s-%(version)s',
        'skipsteps':   ['configure'],
        'buildopts':   'BUILD_STATIC="yes" BUILD_SHARED="no" CFLAGS="-O3 -march=znver1 -fPIC" ',
        'runtest':     'check',
        'installopts': 'PREFIX=%(installdir)s BUILD_STATIC="yes" BUILD_SHARED="no"',
    }),
#    ('cURL', local_syslibs_cURL_version, {
#        'sources':       [ {
#                            'filename':    SOURCELOWER_TAR_XZ,
#                            'source_urls': ['http://curl.haxx.se/download/']
#                         }],
#        'checksums':     ['2cb9c2356e7263a1272fd1435ef7cdebf2cd21400ec287b068396deb705c22c4'],
#        'start_dir':     '%(namelower)s-%(version)s',
#        'preconfigopts': 'CFLAGS="-O2 -march=znver1 -fPIC" CXXFLAGS="-O2 -march=znver1 -fPIC" ',
#        'configopts':    '--enable-static --disable-shared --with-zlib=%(installdir)s --with-openssl'
##        'configopts':    '--enable-static --disable-shared --with-zlib=%(installdir)s --with-brotli=%(installdir)s --with-zstd=%(installdir)s --with-openssl'
#    }),
    ('expat', local_syslibs_expat_version, {
        'sources':       [ {
                            'filename':    SOURCELOWER_TAR_BZ2,
                            'source_urls': [SOURCEFORGE_SOURCE]
                         }],
        'checksums':     ['6f0e6e01f7b30025fa05c85fdad1e5d0ec7fd35d9f61b22f34998de11969ff67'],
        'start_dir':     '%(namelower)s-%(version)s',
        'preconfigopts': 'CFLAGS="-O2 -march=znver1 -fPIC" CXXFLAGS="-O2 -march=znver1 -fPIC" ',
        'configopts':    '--enable-static --disable-shared'
    }),
    ('APR', local_syslibs_APR_version, {
        'easyblock':   'ConfigureMake',
        'sources':       [ {
                            'filename':    SOURCELOWER_TAR_BZ2,
                            'source_urls': ['https://downloads.apache.org/apr',
                                            'https://archive.apache.org/dist/apr/']
                         }],
        'checksums':     ['455e218c060c474f2c834816873f6ed69c0cf0e4cfee54282cc93e8e989ee59e'],
        'start_dir':     '%(namelower)s-%(version)s',
        'preconfigopts': 'CC="gcc" CFLAGS="-O2 -march=znver1 -fPIC" ',
        'configopts':    '--enable-static --disable-shared'
    }),
    ('APR-util', local_syslibs_APR_util_version, {
        'easyblock':   'ConfigureMake',
        'sources':       [ {
                            'filename':    SOURCELOWER_TAR_BZ2,
                            'source_urls': ['https://downloads.apache.org/apr',
                                            'https://archive.apache.org/dist/apr/']
                         }],
        'checksums':     ['a41076e3710746326c3945042994ad9a4fcac0ce0277dd8fea076fec3c9772b5'],
        'start_dir':     '%(namelower)s-%(version)s',
        'preconfigopts': 'CC="gcc" CFLAGS="-O2 -march=znver1 -fPIC" ',
        'configopts':    '--with-apr=%(installdir)s/bin/apr-1-config --enable-static --disable-shared',
        'installopts':   ' && cd %(installdir)s/lib/pkgconfig && sed -i -e "s|-lexpat|-L%(installdir)s/lib -lexpat|" apr-util-1.pc' +
                         ' && cd %(installdir)s/bin           && sed -i -e "s|-lexpat|-L%(installdir)s/lib -lexpat|" apu-1-config'

    }),
    ('Serf', local_syslibs_Serf_version, {
        'easyblock':     'SCons',
        'sources':       [ {
                            'filename':    SOURCELOWER_TAR_BZ2,
                            'source_urls': ['https://archive.apache.org/dist/%(namelower)s']
                         }],
        'patches':       ['Serf-%(version)s_python3_scons.patch'],
        'checksums':     ['549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc'],
        'start_dir':     '%(namelower)s-%(version)s',
        'buildopts':     'APR=%(installdir)s/bin/apr-1-config APU=%(installdir)s/bin/apu-1-config APR_STATIC=True ' +
                         'ZLIB=%(installdir)s ' +
                         'CFLAGS="-O3 -march=znver1 -fPIC -Wno-pointer-sign" ',
        'installopts':   ' && cd %(installdir)s/lib && /bin/rm *.so*'
    }),
    ('file', local_syslibs_file_version, {
        'easyblock':   'ConfigureMake',
        'sources':       [ {
                            'filename':    SOURCE_TAR_GZ,
                            'source_urls': ['http://ftp.astron.com/pub/file/']
                         } ],
        'checksums':     ['3751c7fba8dbc831cb8d7cc8aff21035459b8ce5155ef8b0880a27d028475f3b'],
        'start_dir':     '%(namelower)s-%(version)s',
        'preconfigopts': 'CFLAGS="-O2 -march=znver1 -fPIC" CXXFLAGS="-O2 -march=znver1 -fPIC" ',
        'configopts':    '--enable-static --disable-shared'
    }),
    ('PCRE2', local_syslibs_PCRE2_version, {
        'easyblock':   'ConfigureMake',
        # https://github.com/PhilipHazel/pcre2/releases/download/pcre2-10.39/pcre2-10.39.tar.bz2
        'sources':       [SOURCELOWER_TAR_BZ2],
        'source_urls':   ['https://github.com/PhilipHazel/pcre2/releases/download/pcre2-%(version)s'],
        'checksums':     ['8d36cd8cb6ea2a4c2bb358ff6411b0c788633a2a45dabbf1aeb4b701d1b5e840'],
        'start_dir':     '%(namelower)s-%(version)s',
        'preconfigopts': 'CFLAGS="-O2 -march=znver1 -fPIC" CXXFLAGS="-O2 -march=znver1 -fPIC" ',
        'configopts':    '--with-pic --disable-cpp --enable-newline-is-any ' + \
                         '--enable-pcre2-16 --enable-pcre2-32 --enable-jit ' + \
                         '--enable-pcre2grep-libz --enable-pcre2grep-libbz2 --enable-pcre2test-libreadline ' + \
                         '--disable-shared --enable-static '
    }),
    ('SQLite3', local_syslibs_SQLite3_version, {
        'easyblock':   'ConfigureMake',
        # https://www.sqlite.org/2022/sqlite-autoconf-3370200.tar.gz
        'sources':       [ {
                            'filename':    'sqlite-autoconf-%s.tar.gz' % local_SQLite3_filename_version,
                            'source_urls': ['https://www.sqlite.org/2023']
                         } ],
        'checksums':     ['49f77ac53fd9aa5d7395f2499cb816410e5621984a121b858ccca05310b05c70'],
        'start_dir':     'sqlite-autoconf-' + local_SQLite3_filename_version,
        'preconfigopts': 'CC="gcc" CFLAGS="-O2 -march=znver1 -fPIC" ',
        'configopts':    '--enable-static --disable-shared',
        'parallel':      1,
    }),
]

sanity_check_paths = {
    'files': # ncurses
             ['lib/lib%s%s.a' % (x, y) for x in ["form", "menu", "ncurses", "panel"] for y in ['', '_g', 'w', 'w_g']] +
             ['lib/libncurses++%s.a' % x for x in ['', 'w']] +
             ['lib/pkgconfig/%s%s.pc' % (x, y) for x in ['form', 'menu', 'ncurses', 'ncurses++', 'panel'] for y in ['', 'w']] +
             # libreadline
             ['lib/libreadline.a', 'lib/libhistory.a'] +
             ['include/readline/%s' % x
              for x in ['chardefs.h', 'history.h', 'keymaps.h', 'readline.h',
                        'rlconf.h', 'rlstdc.h', 'rltypedefs.h', 'tilde.h']] +
             # bzip2 libraries
             ['lib/libbz2.a', 'lib/pkgconfig/bzip2.pc', 'include/bzlib.h'] +
             # zlib
             ['include/zconf.h', 'include/zlib.h', 'lib/libz.a', 'lib/pkgconfig/zlib.pc'] +
             # lz4
             ["bin/lz4", "lib/liblz4.a", "include/lz4.h"] +
#             # cURL
#             ['bin/curl', 'lib/libcurl.a'] +
             # expat
             ['bin/xmlwf', 'include/expat.h', 'lib/libexpat.a', 'lib/pkgconfig/expat.pc'] +
             ['bin/file', 'lib/libmagic.a', 'lib/libmagic.la', 'include/magic.h'] +
             ['share/man/man1/file.1', 'share/man/man3/libmagic.3', 'share/man/man4/magic.4'] +
             # APR
             ["bin/apr-1-config", "lib/libapr-1.a"] +
             # APR-util
             ["bin/apu-1-config", "lib/libaprutil-1.a"] +
             # Serf
             ['include/serf-1/serf.h', 'lib/libserf-1.a'] +
             # PCRE2
             ['bin/%s' %x for x in ['pcre2-config', 'pcre2grep', 'pcre2test']] +
             ['share/man/man1/%s.1' % x for x in ['pcre2-config', 'pcre2grep', 'pcre2test']] +
             ['lib/libpcre2-%s.%s' % (x,y) for x in ['posix', '8', '16', '32'] for y in ['a', 'la']] +
             ['lib/pkgconfig/libpcre2-%s.pc' % x for x in ['posix', '8', '16', '32']] +
             ['include/pcre2.h', 'include/pcre2posix.h'] +
             # SQLite3
             ['bin/sqlite3', 'include/sqlite3ext.h', 'include/sqlite3.h', 'lib/libsqlite3.a'],
    'dirs':  # ncurses
             ['include/ncursesw'] +
             # lz4
             ['lib/pkgconfig'] +
             # expat
             ['lib/cmake/expat-%s' % local_syslibs_expat_version] +
             # APR
             ["include/apr-1"]
}

sanity_check_commands = [
    # ncurses
    'pkg-config --libs %s%s' % (x, y) for x in ['form', 'menu', 'ncurses', 'ncurses++', 'panel'] for y in ['', 'w'] ] + [
    # bzip2
    'pkg-config --libs bzip2'] + [
    # zlib
    'pkg-config --libs zlib'] + [
    # lz4
    'lz4 --version',
    'unlz4 --version',
    'pkg-config --libs liblz4' ] + [
#    # cURL
#    'curl --version',
#    'curl-config --version',
#    'pkg-config --libs libcurl',
    # expat
    'xmlwf -h',
    'pkg-config --libs expat'] + [
    # APR
    'apr-1-config --help',
    'pkg-config --libs apr-1' ] + [
    # APR-util
    'apu-1-config --help',
    'pkg-config --libs apr-util-1' ] + [
    # Serf
    'pkg-config --libs serf-1' ] + [
    # file
    'file --version' ] + [
    # PCRE2
    '%s --version' % x for x in ['pcre2-config', 'pcre2grep', 'pcre2test']] + [
    'pkg-config --libs libpcre2-%s' % x for x in ['posix', '8', '16', '32']] + [
    # SQLite3
    'sqlite3 -version',
    'pkg-config --libs sqlite3' ]

modextravars = {
    'CURL_INCLUDES':                '%(installdir)s/include', # Bad idea to add the variables below as they confuse get_software_libdir
# in some EasyBlocks. It will be very tricy to only add those that
# we need for certain packages and avoid others...
#    # For increased compatibility with standard EasyBuild recipes
    'EBROOTNCURSES':                '%(installdir)s',
    'EBVERSIONNCURSES':             local_syslibs_ncurses_version,
    'EBROOTLIBREADLINE':            '%(installdir)s',
    'EBVERSIONLIBREADLINE':         local_syslibs_libreadline_version,
    'EBROOTBZIP2':                  '%(installdir)s',
    'EBVERSIONBZIP2':               local_syslibs_bzip2_version,
    'EBROOTZLIB':                   '%(installdir)s',
    'EBVERSIONZLIB':                local_syslibs_zlib_version,
    'EBROOTLZ4':                    '%(installdir)s',
    'EBVERSIONLZ4':                 local_syslibs_zlib_version,
#    'EBROOTCURL':                   '%(installdir)s',
#    'EBVERSIONCURL':                local_syslibs_cURL_version,
    'EBROOTEXPAT':                  '%(installdir)s',
    'EBVERSIONEXPAT':               local_syslibs_expat_version,
    'EBROOTAPR':                    '%(installdir)s',
    'EBVERSIONAPR':                 local_syslibs_APR_version,
    'EBROOTAPRMINUTIL':             '%(installdir)s',
    'EBVERSIONAPRMINUTIL':          local_syslibs_APR_util_version,
    'EBROOTFILE':                   '%(installdir)s',
    'EBVERSIONFILE':                local_syslibs_file_version,
    'EBROOTPCRE2':                  '%(installdir)s',
    'EBVERSIONPCRE2':               local_syslibs_PCRE2_version,
    'EBROOTSQLITE3':                '%(installdir)s',
    'EBVERSIONSQLITE3':             local_syslibs_SQLite3_version,
}

moduleclass = 'lib'

[syslibs] [package list]