From a905bcb9e3befde71b861d2c1cb4b0b37b405d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20Mog=C3=A9?= Date: Wed, 13 Oct 2021 18:09:38 +0200 Subject: [PATCH 1/3] adding easyconfigs: Stata-17-GCCcore-10.3.0.eb --- .../s/Stata/Stata-17-GCCcore-10.3.0.eb | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 easybuild/easyconfigs/s/Stata/Stata-17-GCCcore-10.3.0.eb diff --git a/easybuild/easyconfigs/s/Stata/Stata-17-GCCcore-10.3.0.eb b/easybuild/easyconfigs/s/Stata/Stata-17-GCCcore-10.3.0.eb new file mode 100644 index 00000000000..66676cb2c6a --- /dev/null +++ b/easybuild/easyconfigs/s/Stata/Stata-17-GCCcore-10.3.0.eb @@ -0,0 +1,21 @@ +name = 'Stata' +version = '17' + +homepage = 'https://www.stata.com/' +description = """Stata is a complete, integrated statistical software package that provides everything you need + for data analysis, data management, and graphics.""" + +toolchain = {'name': 'GCCcore', 'version': '10.3.0'} + +# requires license to access source files +sources = ['%(name)s%(version)sLinux64.tar.gz'] +checksums = ['744314cdac7ba7316c82dccebe7c7de8f7fab68841d8fa7de13f8eb4472e6015'] + +dependencies = [ + ('libpng', '1.6.37'), + ('ncurses', '6.2'), +] + +sanity_check_commands = ['stata -h'] + +moduleclass = 'data' From c73a113021e417b85e5f3d9e0c342ea3567356b6 Mon Sep 17 00:00:00 2001 From: Maxime Moge Date: Thu, 21 Oct 2021 15:10:55 +0200 Subject: [PATCH 2/3] backporting the postinstallcmd from ncurses-6.X.eb to ncurses-5.9.eb (see https://github.com/easybuilders/easybuild-easyconfigs/pull/3545) creating a soft link 'libtinfo.so -> libncurses.so' and extending it to create soft links 'libtinfo.so.5.9 -> libncurses.so.5.9' and 'libtinfo.so.5 -> libncurses.so.5' as well. --- easybuild/easyconfigs/n/ncurses/ncurses-5.9.eb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/easybuild/easyconfigs/n/ncurses/ncurses-5.9.eb b/easybuild/easyconfigs/n/ncurses/ncurses-5.9.eb index 71d76d1c6a4..10662bd7941 100644 --- a/easybuild/easyconfigs/n/ncurses/ncurses-5.9.eb +++ b/easybuild/easyconfigs/n/ncurses/ncurses-5.9.eb @@ -33,6 +33,14 @@ configopts = [ '--with-shared --enable-overwrite --enable-ext-colors --enable-widec --includedir=%(installdir)s/include/ncursesw/' ] +# 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.so.%(version_major)s libtinfo.so.%(version_major)s)", + "(cd %(installdir)s/lib && ln -s libncurses.so.%(version_major_minor)s libtinfo.so.%(version_major_minor)s)", + "(cd %(installdir)s/lib && ln -s libncurses.a libtinfo.a)" +] + local_libs = ["form", "menu", "ncurses", "panel"] sanity_check_paths = { 'files': ['bin/%s' % x for x in ["captoinfo", "clear", "infocmp", "infotocap", "ncurses5-config", From 665844fb8bc964250a4649752c421ae280dbede4 Mon Sep 17 00:00:00 2001 From: Maxime Moge Date: Thu, 21 Oct 2021 15:11:56 +0200 Subject: [PATCH 3/3] the Stata 17 binary depends on ncurses 5 --- easybuild/easyconfigs/s/Stata/Stata-17-GCCcore-10.3.0.eb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easybuild/easyconfigs/s/Stata/Stata-17-GCCcore-10.3.0.eb b/easybuild/easyconfigs/s/Stata/Stata-17-GCCcore-10.3.0.eb index 66676cb2c6a..0ef24a2a86e 100644 --- a/easybuild/easyconfigs/s/Stata/Stata-17-GCCcore-10.3.0.eb +++ b/easybuild/easyconfigs/s/Stata/Stata-17-GCCcore-10.3.0.eb @@ -13,7 +13,7 @@ checksums = ['744314cdac7ba7316c82dccebe7c7de8f7fab68841d8fa7de13f8eb4472e6015'] dependencies = [ ('libpng', '1.6.37'), - ('ncurses', '6.2'), + ('ncurses', '5.9', '', True), ] sanity_check_commands = ['stata -h']