From ca6e5e46db2ba794ec3d5ca5a8b18b4a0acb94fb Mon Sep 17 00:00:00 2001
From: Alexandre Strube <a.strube@fz-juelich.de>
Date: Fri, 28 Oct 2022 14:54:38 +0200
Subject: [PATCH] deps for pytorch

---
 .../l/LAME/LAME-3.100-GCCcore-11.3.0.eb       | 36 +++++++++++++++++
 .../l/libyaml/libyaml-0.2.5-GCCcore-11.3.0.eb | 25 ++++++++++++
 .../m/MPFR/MPFR-4.1.0-GCCcore-11.3.0.eb       | 39 +++++++++++++++++++
 .../p/PyYAML/PyYAML-6.0-GCCcore-11.3.0.eb     | 27 +++++++++++++
 .../x/x264/x264-20220620-GCCcore-11.3.0.eb    | 33 ++++++++++++++++
 bin/gcc11ize.py                               |  8 +++-
 6 files changed, 166 insertions(+), 2 deletions(-)
 create mode 100644 Golden_Repo/l/LAME/LAME-3.100-GCCcore-11.3.0.eb
 create mode 100644 Golden_Repo/l/libyaml/libyaml-0.2.5-GCCcore-11.3.0.eb
 create mode 100644 Golden_Repo/m/MPFR/MPFR-4.1.0-GCCcore-11.3.0.eb
 create mode 100644 Golden_Repo/p/PyYAML/PyYAML-6.0-GCCcore-11.3.0.eb
 create mode 100644 Golden_Repo/x/x264/x264-20220620-GCCcore-11.3.0.eb

diff --git a/Golden_Repo/l/LAME/LAME-3.100-GCCcore-11.3.0.eb b/Golden_Repo/l/LAME/LAME-3.100-GCCcore-11.3.0.eb
new file mode 100644
index 000000000..f067051ff
--- /dev/null
+++ b/Golden_Repo/l/LAME/LAME-3.100-GCCcore-11.3.0.eb
@@ -0,0 +1,36 @@
+easyblock = 'ConfigureMake'
+
+name = 'LAME'
+version = '3.100'
+
+homepage = 'http://lame.sourceforge.net/'
+description = """LAME is a high quality MPEG Audio Layer III (MP3) encoder licensed under the LGPL."""
+
+toolchain = {'name': 'GCCcore', 'version': '11.3.0'}
+
+source_urls = ['https://sourceforge.net/projects/lame/files/lame/%(version_major_minor)s/']
+sources = [SOURCELOWER_TAR_GZ]
+patches = ['LAME-3.99.5_check-tgetent.patch']
+checksums = [
+    'ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e',  # lame-3.100.tar.gz
+    '8bfb6a73f2db1511baf90fbd7174f11043ec4b592a4917edc30ccfb53bf37256',  # LAME-3.99.5_check-tgetent.patch
+]
+
+builddependencies = [
+    ('binutils', '2.38'),
+    ('Autotools', '20220317'),
+]
+
+dependencies = [('ncurses', '6.3')]
+
+preconfigopts = "autoconf && "
+
+# configure is broken: add workaround to find libncurses...
+configure_cmd_prefix = "FRONTEND_LDADD='-L${EBROOTNCURSES}/lib' "
+
+sanity_check_paths = {
+    'files': ['bin/lame', 'include/lame/lame.h', 'lib/libmp3lame.%s' % SHLIB_EXT],
+    'dirs': [],
+}
+
+moduleclass = 'data'
diff --git a/Golden_Repo/l/libyaml/libyaml-0.2.5-GCCcore-11.3.0.eb b/Golden_Repo/l/libyaml/libyaml-0.2.5-GCCcore-11.3.0.eb
new file mode 100644
index 000000000..3b7e5265d
--- /dev/null
+++ b/Golden_Repo/l/libyaml/libyaml-0.2.5-GCCcore-11.3.0.eb
@@ -0,0 +1,25 @@
+easyblock = 'ConfigureMake'
+
+name = 'libyaml'
+version = '0.2.5'
+
+homepage = 'https://pyyaml.org/wiki/LibYAML'
+description = "LibYAML is a YAML parser and emitter written in C."
+
+toolchain = {'name': 'GCCcore', 'version': '11.3.0'}
+
+source_urls = ['https://pyyaml.org/download/%(name)s/']
+sources = ['yaml-%(version)s.tar.gz']
+checksums = ['c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4']
+
+builddependencies = [
+    ('binutils', '2.38'),
+]
+
+
+sanity_check_paths = {
+    'files': ['include/yaml.h', 'lib/libyaml.a', 'lib/libyaml.%s' % SHLIB_EXT],
+    'dirs': ['lib/pkgconfig'],
+}
+
+moduleclass = 'lib'
diff --git a/Golden_Repo/m/MPFR/MPFR-4.1.0-GCCcore-11.3.0.eb b/Golden_Repo/m/MPFR/MPFR-4.1.0-GCCcore-11.3.0.eb
new file mode 100644
index 000000000..7d929a2fd
--- /dev/null
+++ b/Golden_Repo/m/MPFR/MPFR-4.1.0-GCCcore-11.3.0.eb
@@ -0,0 +1,39 @@
+easyblock = 'ConfigureMake'
+
+name = 'MPFR'
+version = '4.1.0'
+
+homepage = 'https://www.mpfr.org'
+
+description = """
+ The MPFR library is a C library for multiple-precision floating-point
+ computations with correct rounding.
+"""
+
+toolchain = {'name': 'GCCcore', 'version': '11.3.0'}
+
+source_urls = ['https://www.mpfr.org/mpfr-%(version)s/']
+sources = [SOURCELOWER_TAR_BZ2]
+checksums = ['feced2d430dd5a97805fa289fed3fc8ff2b094c02d05287fd6133e7f1f0ec926']
+
+builddependencies = [
+    ('binutils', '2.38'),
+]
+
+dependencies = [
+    ('GMP', '6.2.1'),
+]
+
+runtest = 'check'
+
+# copy libmpfr.so* to <installdir>/lib to make sure that it  is picked up by tests
+# when EasyBuild is configured with --rpath, and clean up afterwards (let 'make install' do its job)
+pretestopts = "mkdir -p %%(installdir)s/lib && cp -a src/.libs/libmpfr.%s* %%(installdir)s/lib && " % SHLIB_EXT
+testopts = " && rm -r %(installdir)s/lib"
+
+sanity_check_paths = {
+    'files': ['lib/libmpfr.%s' % SHLIB_EXT, 'include/mpfr.h'],
+    'dirs': [],
+}
+
+moduleclass = 'math'
diff --git a/Golden_Repo/p/PyYAML/PyYAML-6.0-GCCcore-11.3.0.eb b/Golden_Repo/p/PyYAML/PyYAML-6.0-GCCcore-11.3.0.eb
new file mode 100644
index 000000000..0c55d6c41
--- /dev/null
+++ b/Golden_Repo/p/PyYAML/PyYAML-6.0-GCCcore-11.3.0.eb
@@ -0,0 +1,27 @@
+easyblock = 'PythonPackage'
+
+name = 'PyYAML'
+version = '6.0'
+
+homepage = 'https://github.com/yaml/pyyaml'
+description = "PyYAML is a YAML parser and emitter for the Python programming language."
+
+toolchain = {'name': 'GCCcore', 'version': '11.3.0'}
+
+sources = [SOURCE_TAR_GZ]
+checksums = ['68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2']
+
+builddependencies = [
+    ('binutils', '2.38'),
+]
+dependencies = [
+    ('Python', '3.10.4'),
+    ('libyaml', '0.2.5'),
+]
+
+download_dep_fail = True
+sanity_pip_check = True
+use_pip = True
+options = {'modulename': 'yaml'}
+
+moduleclass = 'lib'
diff --git a/Golden_Repo/x/x264/x264-20220620-GCCcore-11.3.0.eb b/Golden_Repo/x/x264/x264-20220620-GCCcore-11.3.0.eb
new file mode 100644
index 000000000..2b05023e8
--- /dev/null
+++ b/Golden_Repo/x/x264/x264-20220620-GCCcore-11.3.0.eb
@@ -0,0 +1,33 @@
+easyblock = 'ConfigureMake'
+
+name = 'x264'
+version = '20220620'
+
+homepage = 'https://www.videolan.org/developers/x264.html'
+description = """
+ x264 is a free software library and application for encoding video streams
+ into the H.264/MPEG-4 AVC compression format, and is released under the
+ terms of the GNU GPL.
+"""
+
+toolchain = {'name': 'GCCcore', 'version': '11.3.0'}
+
+source_urls = ['https://code.videolan.org/videolan/%(name)s/-/archive/5db6aa6c/']
+sources = [{'download_filename': '%(name)s-5db6aa6c.tar.gz', 'filename': SOURCE_TAR_GZ}]
+checksums = ['9b5543a5f114f4c6905a2319ea4c2063d6ebd2db209b41642086df3c1f7b6f50']
+
+builddependencies = [
+    ('binutils', '2.38'),
+    ('pkgconf', '1.8.0'),
+    ('NASM', '2.15.05'),
+]
+
+configopts = " --enable-shared --enable-static --disable-bashcompletion"
+
+
+sanity_check_paths = {
+    'files': ['bin/%(name)s', 'include/x264_config.h', 'include/%(name)s.h', 'lib/libx264.a', 'lib/libx264.so'],
+    'dirs': [],
+}
+
+moduleclass = 'vis'
diff --git a/bin/gcc11ize.py b/bin/gcc11ize.py
index e5ecaea5c..595f97bcb 100755
--- a/bin/gcc11ize.py
+++ b/bin/gcc11ize.py
@@ -94,7 +94,7 @@ releases = {
     'expat':                    ['2.4.1',           '2.4.1'],
     'expecttest':               ['0.1.3',           '0.1.3'],
     'Extrae':                   ['3.8.3',           '3.8.3'],
-    'FFmpeg':                   ['4.4.1',           '4.4.1'],
+    'FFmpeg':                   ['4.4.1',           '4.4.2'],
     'FFTW':                     ['3.3.10',          '3.3.10'],
     'Fiona':                    ['1.8.20',          '1.8.20'],
     'Flask':                    ['2.0.2',           '2.0.2'],
@@ -228,6 +228,8 @@ releases = {
     'libunwind':                ['1.4,0',           '1.5.0'],
     'libxc':                    ['5.1.5',           '5.1.6'],
     'libxml2':                  ['2.9.10',          '2.9.13'],
+    'libyaml':                  ['0.2.5',           '0.2.5'],
+    'LAME':                     ['3.100',           '3.100'],
     'LLVM':                     ['10.0.1',          '13.0.0'],
     'M4':                       ['1.4.18',          '1.4.19'],
     'Mako':                     ['1.1.3',           '1.1.4'],
@@ -256,6 +258,7 @@ releases = {
     'pyproj':                   ['2.6.1.post1',     '3.3.0'],
     'Python':                   ['3.8.5',           '3.9.6'],
     'PyTorch':                  ['1.8.1',           '1.11'],
+    'PyYAML':                   ['5.4.1',           '6.0'],
     'Qhull':                    ['2020.1',          '2020.2'],
     'Qt5':                      ['5.14.2',          '5.15.2'],
     'RDFlib':                   ['5.0.0',           '6.0.2'],
@@ -277,7 +280,8 @@ releases = {
     'UDUNITS':                  ['2.2.26',          '2.2.28'],
     'uftp':                     ['1.4.1',           '1.4.2'],
     'X11':                      ['20200222',        '20210802'],
-    'x264':                     ['20200912',        '20210613'],
+    'x264':                     ['20210613',        '20220620'],
+    'x265':                     ['3.4',             '3.5'],
     'XServer':                  ['1.20.9',          '1.20.13'],
     'zlib':                     ['1.2.11',          '1.2.12'],
     'zstd':                     ['1.4.9',           '1.5.0'],
-- 
GitLab