Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build libtinfo and multithreaded targets of ncurses #15897

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 22 additions & 9 deletions easybuild/easyconfigs/n/ncurses/ncurses-5.9.eb
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,34 @@ checksums = [
# need to use -P preprocessor option for recent GCC versions (cfr. https://gcc.gnu.org/gcc-5/porting_to.html)
preconfigopts = "export CPPFLAGS='-P' && "

_config = {
# options to build shared librares and separate libtinfo
'default': "--with-shared --with-termlib ",
# options to enable UTF-8
'utf8': "--enable-ext-colors --enable-widec ",
# options to enable multi-threading
'mt': "--with-pthread ",
}

configopts = [
# default build
'--with-shared --enable-overwrite',
# the UTF-8 enabled version (ncursesw)
'--with-shared --enable-overwrite --enable-ext-colors --enable-widec --includedir=%(installdir)s/include/ncursesw/'
# build ncurses: default build overwriting curses (-lcurses)
_config['default'] + '--enable-overwrite',
# build ncursesw: the UTF-8 version
_config['default'] + _config['utf8'] + '--includedir=%(installdir)s/include/ncursesw/',
# build ncursest: the multi-threaded version
_config['default'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursest/',
# build ncursestw: the multi-threaded UTF-8 version
_config['default'] + _config['utf8'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursestw/',
]

local_libs = ["form", "menu", "ncurses", "panel"]
local_libs = ['form', 'menu', 'ncurses', 'panel', 'tinfo']
sanity_check_paths = {
'files': ['bin/%s' % x for x in ["captoinfo", "clear", "infocmp", "infotocap", "ncurses5-config",
"reset", "tabs", "tic", "toe", "tput", "tset"]] +
['lib/lib%s%s.a' % (x, y) for x in local_libs for y in ['', '_g', 'w', 'w_g']] +
['lib/lib%s%s.so' % (x, y) for x in local_libs for y in ['', 'w']] +
['lib/libncurses++%s.a' % x for x in ['', 'w']],
'dirs': ['include', 'include/ncursesw'],
['lib/lib%s%s%s.a' % (x, y, z) for x in local_libs for y in ['', 'w', 't', 'tw'] for z in ['', '_g']] +
['lib/lib%s%s.so' % (x, y) for x in local_libs for y in ['', 'w', 't', 'tw']] +
['lib/libncurses++%s.a' % x for x in ['', 'w', 't', 'tw']],
'dirs': ['include', 'include/ncursesw', 'include/ncursest', 'include/ncursestw'],
}

moduleclass = 'devel'
38 changes: 22 additions & 16 deletions easybuild/easyconfigs/n/ncurses/ncurses-6.0.eb
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,38 @@ checksums = [
'f82003be6ce6b87c3dc8a91d97785aab1a76a9e8544c3a3c02283c01dd41aede', # ncurses-6.0_gcc-5.patch
]

local_common_configopts = "--with-shared --enable-overwrite --without-ada "
_config = {
# options to build shared librares, separate libtinfo and without Ada95
'default': "--with-shared --with-termlib --without-ada ",
# options to enable UTF-8
'utf8': "--enable-ext-colors --enable-widec ",
# options to enable multi-threading
'mt': "--with-pthread --enable-reentrant ",
}

configopts = [
# default build
local_common_configopts,
# the UTF-8 enabled version (ncursesw)
local_common_configopts + "--enable-ext-colors --enable-widec --includedir=%(installdir)s/include/ncursesw/",
# build ncurses: default build overwriting curses (-lcurses)
_config['default'] + '--enable-overwrite',
# build ncursesw: the UTF-8 version
_config['default'] + _config['utf8'] + '--includedir=%(installdir)s/include/ncursesw/',
# build ncursest: the multi-threaded version
_config['default'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursest/',
# build ncursestw: the multi-threaded UTF-8 version
_config['default'] + _config['utf8'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursestw/',
]

# need to take care of $CFLAGS ourselves with dummy toolchain
# we need to add -fPIC, but should also include -O* option to avoid compiling with -O0 (default for GCC)
buildopts = 'CFLAGS="-O2 -fPIC"'

# Symlink libtinfo to libncurses (since it can handle the API) so it doesn't get picked up from the OS
postinstallcmds = [
"(cd %(installdir)s/lib && ln -s libncurses.so libtinfo.so)",
"(cd %(installdir)s/lib && ln -s libncurses.a libtinfo.a)"
]

local_libs = ["form", "menu", "ncurses", "panel"]
local_libs = ['form', 'menu', 'ncurses', 'panel', 'tinfo']
sanity_check_paths = {
'files': ['bin/%s' % x for x in ["captoinfo", "clear", "infocmp", "infotocap", "ncurses%(version_major)s-config",
"reset", "tabs", "tic", "toe", "tput", "tset"]] +
['lib/lib%s%s.a' % (x, y) for x in local_libs for y in ['', '_g', 'w', 'w_g']] +
['lib/lib%s%s.%s' % (x, y, SHLIB_EXT) for x in local_libs for y in ['', 'w']] +
['lib/libncurses++%s.a' % x for x in ['', 'w']],
'dirs': ['include', 'include/ncursesw'],
['lib/lib%s%s%s.a' % (x, y, z) for x in local_libs for y in ['', 'w', 't', 'tw'] for z in ['', '_g']] +
['lib/lib%s%s.so' % (x, y) for x in local_libs for y in ['', 'w', 't', 'tw']] +
['lib/libncurses++%s.a' % x for x in ['', 'w', 't', 'tw']],
'dirs': ['include', 'include/ncursesw', 'include/ncursest', 'include/ncursestw'],
}

moduleclass = 'devel'
38 changes: 22 additions & 16 deletions easybuild/easyconfigs/n/ncurses/ncurses-6.1.eb
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,38 @@ source_urls = [GNU_SOURCE]
sources = [SOURCE_TAR_GZ]
checksums = ['aa057eeeb4a14d470101eff4597d5833dcef5965331be3528c08d99cebaa0d17']

local_common_configopts = "--with-shared --enable-overwrite --without-ada --enable-symlinks "
_config = {
# options to build shared librares, separate libtinfo, without Ada95 and enable symlinks for tic
'default': "--with-shared --with-termlib --without-ada --enable-symlinks ",
# options to enable UTF-8
'utf8': "--enable-ext-colors --enable-widec ",
# options to enable multi-threading
'mt': "--with-pthread --enable-reentrant ",
}

configopts = [
# default build
local_common_configopts,
# the UTF-8 enabled version (ncursesw)
local_common_configopts + "--enable-ext-colors --enable-widec --includedir=%(installdir)s/include/ncursesw/",
# build ncurses: default build overwriting curses (-lcurses)
_config['default'] + '--enable-overwrite',
# build ncursesw: the UTF-8 version
_config['default'] + _config['utf8'] + '--includedir=%(installdir)s/include/ncursesw/',
# build ncursest: the multi-threaded version
_config['default'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursest/',
# build ncursestw: the multi-threaded UTF-8 version
_config['default'] + _config['utf8'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursestw/',
]

# need to take care of $CFLAGS ourselves with dummy toolchain
# we need to add -fPIC, but should also include -O* option to avoid compiling with -O0 (default for GCC)
buildopts = 'CFLAGS="-O2 -fPIC"'

# Symlink libtinfo to libncurses (since it can handle the API) so it doesn't get picked up from the OS
postinstallcmds = [
"(cd %(installdir)s/lib && ln -s libncurses.so libtinfo.so)",
"(cd %(installdir)s/lib && ln -s libncurses.a libtinfo.a)"
]

local_libs = ["form", "menu", "ncurses", "panel"]
local_libs = ['form', 'menu', 'ncurses', 'panel', 'tinfo']
sanity_check_paths = {
'files': ['bin/%s' % x for x in ["captoinfo", "clear", "infocmp", "infotocap", "ncurses%(version_major)s-config",
"reset", "tabs", "tic", "toe", "tput", "tset"]] +
['lib/lib%s%s.a' % (x, y) for x in local_libs for y in ['', '_g', 'w', 'w_g']] +
['lib/lib%s%s.%s' % (x, y, SHLIB_EXT) for x in local_libs for y in ['', 'w']] +
['lib/libncurses++%s.a' % x for x in ['', 'w']],
'dirs': ['include', 'include/ncursesw'],
['lib/lib%s%s%s.a' % (x, y, z) for x in local_libs for y in ['', 'w', 't', 'tw'] for z in ['', '_g']] +
['lib/lib%s%s.so' % (x, y) for x in local_libs for y in ['', 'w', 't', 'tw']] +
['lib/libncurses++%s.a' % x for x in ['', 'w', 't', 'tw']],
'dirs': ['include', 'include/ncursesw', 'include/ncursest', 'include/ncursestw'],
}

moduleclass = 'devel'
38 changes: 22 additions & 16 deletions easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-10.2.0.eb
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,34 @@ checksums = ['30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d']

builddependencies = [('binutils', '2.35')]

local_common_configopts = "--with-shared --enable-overwrite --without-ada --enable-symlinks "
configopts = [
# default build
local_common_configopts,
# the UTF-8 enabled version (ncursesw)
local_common_configopts + "--enable-ext-colors --enable-widec --includedir=%(installdir)s/include/ncursesw/",
]
_config = {
# options to build shared librares, separate libtinfo, without Ada95 and enable symlinks for tic
'default': "--with-shared --with-termlib --without-ada --enable-symlinks ",
# options to enable UTF-8
'utf8': "--enable-ext-colors --enable-widec ",
# options to enable multi-threading
'mt': "--with-pthread --enable-reentrant ",
}

# Symlink libtinfo to libncurses (since it can handle the API) so it doesn't get picked up from the OS
postinstallcmds = [
"(cd %(installdir)s/lib && ln -s libncurses.so libtinfo.so)",
"(cd %(installdir)s/lib && ln -s libncurses.a libtinfo.a)"
configopts = [
# build ncurses: default build overwriting curses (-lcurses)
_config['default'] + '--enable-overwrite',
# build ncursesw: the UTF-8 version
_config['default'] + _config['utf8'] + '--includedir=%(installdir)s/include/ncursesw/',
# build ncursest: the multi-threaded version
_config['default'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursest/',
# build ncursestw: the multi-threaded UTF-8 version
_config['default'] + _config['utf8'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursestw/',
]

local_libs = ["form", "menu", "ncurses", "panel"]
local_libs = ['form', 'menu', 'ncurses', 'panel', 'tinfo']
sanity_check_paths = {
'files': ['bin/%s' % x for x in ["captoinfo", "clear", "infocmp", "infotocap", "ncurses%(version_major)s-config",
"reset", "tabs", "tic", "toe", "tput", "tset"]] +
['lib/lib%s%s.a' % (x, y) for x in local_libs for y in ['', '_g', 'w', 'w_g']] +
['lib/lib%s%s.%s' % (x, y, SHLIB_EXT) for x in local_libs for y in ['', 'w']] +
['lib/libncurses++%s.a' % x for x in ['', 'w']],
'dirs': ['include', 'include/ncursesw'],
['lib/lib%s%s%s.a' % (x, y, z) for x in local_libs for y in ['', 'w', 't', 'tw'] for z in ['', '_g']] +
['lib/lib%s%s.so' % (x, y) for x in local_libs for y in ['', 'w', 't', 'tw']] +
['lib/libncurses++%s.a' % x for x in ['', 'w', 't', 'tw']],
'dirs': ['include', 'include/ncursesw', 'include/ncursest', 'include/ncursestw'],
}

moduleclass = 'devel'
38 changes: 22 additions & 16 deletions easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-10.3.0.eb
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,34 @@ checksums = ['30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d']

builddependencies = [('binutils', '2.36.1')]

local_common_configopts = "--with-shared --enable-overwrite --without-ada --enable-symlinks "
configopts = [
# default build
local_common_configopts,
# the UTF-8 enabled version (ncursesw)
local_common_configopts + "--enable-ext-colors --enable-widec --includedir=%(installdir)s/include/ncursesw/",
]
_config = {
# options to build shared librares, separate libtinfo, without Ada95 and enable symlinks for tic
'default': "--with-shared --with-termlib --without-ada --enable-symlinks ",
# options to enable UTF-8
'utf8': "--enable-ext-colors --enable-widec ",
# options to enable multi-threading
'mt': "--with-pthread --enable-reentrant ",
}

# Symlink libtinfo to libncurses (since it can handle the API) so it doesn't get picked up from the OS
postinstallcmds = [
"(cd %(installdir)s/lib && ln -s libncurses.so libtinfo.so)",
"(cd %(installdir)s/lib && ln -s libncurses.a libtinfo.a)"
configopts = [
# build ncurses: default build overwriting curses (-lcurses)
_config['default'] + '--enable-overwrite',
# build ncursesw: the UTF-8 version
_config['default'] + _config['utf8'] + '--includedir=%(installdir)s/include/ncursesw/',
# build ncursest: the multi-threaded version
_config['default'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursest/',
# build ncursestw: the multi-threaded UTF-8 version
_config['default'] + _config['utf8'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursestw/',
]

local_libs = ["form", "menu", "ncurses", "panel"]
local_libs = ['form', 'menu', 'ncurses', 'panel', 'tinfo']
sanity_check_paths = {
'files': ['bin/%s' % x for x in ["captoinfo", "clear", "infocmp", "infotocap", "ncurses%(version_major)s-config",
"reset", "tabs", "tic", "toe", "tput", "tset"]] +
['lib/lib%s%s.a' % (x, y) for x in local_libs for y in ['', '_g', 'w', 'w_g']] +
['lib/lib%s%s.%s' % (x, y, SHLIB_EXT) for x in local_libs for y in ['', 'w']] +
['lib/libncurses++%s.a' % x for x in ['', 'w']],
'dirs': ['include', 'include/ncursesw'],
['lib/lib%s%s%s.a' % (x, y, z) for x in local_libs for y in ['', 'w', 't', 'tw'] for z in ['', '_g']] +
['lib/lib%s%s.so' % (x, y) for x in local_libs for y in ['', 'w', 't', 'tw']] +
['lib/libncurses++%s.a' % x for x in ['', 'w', 't', 'tw']],
'dirs': ['include', 'include/ncursesw', 'include/ncursest', 'include/ncursestw'],
}

moduleclass = 'devel'
38 changes: 22 additions & 16 deletions easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-11.2.0.eb
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,34 @@ checksums = ['30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d']

builddependencies = [('binutils', '2.37')]

local_common_configopts = "--with-shared --enable-overwrite --without-ada --enable-symlinks "
configopts = [
# default build
local_common_configopts,
# the UTF-8 enabled version (ncursesw)
local_common_configopts + "--enable-ext-colors --enable-widec --includedir=%(installdir)s/include/ncursesw/",
]
_config = {
# options to build shared librares, separate libtinfo, without Ada95 and enable symlinks for tic
'default': "--with-shared --with-termlib --without-ada --enable-symlinks ",
# options to enable UTF-8
'utf8': "--enable-ext-colors --enable-widec ",
# options to enable multi-threading
'mt': "--with-pthread --enable-reentrant ",
}

# Symlink libtinfo to libncurses (since it can handle the API) so it doesn't get picked up from the OS
postinstallcmds = [
"(cd %(installdir)s/lib && ln -s libncurses.so libtinfo.so)",
"(cd %(installdir)s/lib && ln -s libncurses.a libtinfo.a)"
configopts = [
# build ncurses: default build overwriting curses (-lcurses)
_config['default'] + '--enable-overwrite',
# build ncursesw: the UTF-8 version
_config['default'] + _config['utf8'] + '--includedir=%(installdir)s/include/ncursesw/',
# build ncursest: the multi-threaded version
_config['default'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursest/',
# build ncursestw: the multi-threaded UTF-8 version
_config['default'] + _config['utf8'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursestw/',
]

local_libs = ["form", "menu", "ncurses", "panel"]
local_libs = ['form', 'menu', 'ncurses', 'panel', 'tinfo']
sanity_check_paths = {
'files': ['bin/%s' % x for x in ["captoinfo", "clear", "infocmp", "infotocap", "ncurses%(version_major)s-config",
"reset", "tabs", "tic", "toe", "tput", "tset"]] +
['lib/lib%s%s.a' % (x, y) for x in local_libs for y in ['', '_g', 'w', 'w_g']] +
['lib/lib%s%s.%s' % (x, y, SHLIB_EXT) for x in local_libs for y in ['', 'w']] +
['lib/libncurses++%s.a' % x for x in ['', 'w']],
'dirs': ['include', 'include/ncursesw'],
['lib/lib%s%s%s.a' % (x, y, z) for x in local_libs for y in ['', 'w', 't', 'tw'] for z in ['', '_g']] +
['lib/lib%s%s.so' % (x, y) for x in local_libs for y in ['', 'w', 't', 'tw']] +
['lib/libncurses++%s.a' % x for x in ['', 'w', 't', 'tw']],
'dirs': ['include', 'include/ncursesw', 'include/ncursest', 'include/ncursestw'],
}

moduleclass = 'devel'
38 changes: 22 additions & 16 deletions easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-9.3.0.eb
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,34 @@ checksums = ['30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d']

builddependencies = [('binutils', '2.34')]

local_common_configopts = "--with-shared --enable-overwrite --without-ada --enable-symlinks "
configopts = [
# default build
local_common_configopts,
# the UTF-8 enabled version (ncursesw)
local_common_configopts + "--enable-ext-colors --enable-widec --includedir=%(installdir)s/include/ncursesw/",
]
_config = {
# options to build shared librares, separate libtinfo, without Ada95 and enable symlinks for tic
'default': "--with-shared --with-termlib --without-ada --enable-symlinks ",
# options to enable UTF-8
'utf8': "--enable-ext-colors --enable-widec ",
# options to enable multi-threading
'mt': "--with-pthread --enable-reentrant ",
}

# Symlink libtinfo to libncurses (since it can handle the API) so it doesn't get picked up from the OS
postinstallcmds = [
"(cd %(installdir)s/lib && ln -s libncurses.so libtinfo.so)",
"(cd %(installdir)s/lib && ln -s libncurses.a libtinfo.a)"
configopts = [
# build ncurses: default build overwriting curses (-lcurses)
_config['default'] + '--enable-overwrite',
# build ncursesw: the UTF-8 version
_config['default'] + _config['utf8'] + '--includedir=%(installdir)s/include/ncursesw/',
# build ncursest: the multi-threaded version
_config['default'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursest/',
# build ncursestw: the multi-threaded UTF-8 version
_config['default'] + _config['utf8'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursestw/',
]

local_libs = ["form", "menu", "ncurses", "panel"]
local_libs = ['form', 'menu', 'ncurses', 'panel', 'tinfo']
sanity_check_paths = {
'files': ['bin/%s' % x for x in ["captoinfo", "clear", "infocmp", "infotocap", "ncurses%(version_major)s-config",
"reset", "tabs", "tic", "toe", "tput", "tset"]] +
['lib/lib%s%s.a' % (x, y) for x in local_libs for y in ['', '_g', 'w', 'w_g']] +
['lib/lib%s%s.%s' % (x, y, SHLIB_EXT) for x in local_libs for y in ['', 'w']] +
['lib/libncurses++%s.a' % x for x in ['', 'w']],
'dirs': ['include', 'include/ncursesw'],
['lib/lib%s%s%s.a' % (x, y, z) for x in local_libs for y in ['', 'w', 't', 'tw'] for z in ['', '_g']] +
['lib/lib%s%s.so' % (x, y) for x in local_libs for y in ['', 'w', 't', 'tw']] +
['lib/libncurses++%s.a' % x for x in ['', 'w', 't', 'tw']],
'dirs': ['include', 'include/ncursesw', 'include/ncursest', 'include/ncursestw'],
}

moduleclass = 'devel'
Loading