From eb2cad990bcd498a4add2a19a6637d652d55483d Mon Sep 17 00:00:00 2001
From: Alexandre Strube <a.strube@fz-juelich.de>
Date: Tue, 20 Dec 2022 12:06:11 +0100
Subject: [PATCH] torchaudio 0.12

---
 Golden_Repo/t/torchaudio/standard-libs-deps.patch      | 10 +++++-----
 ...2a-CUDA-11.7.eb => torchaudio-0.12.1-foss-2022a.eb} |  8 ++------
 2 files changed, 7 insertions(+), 11 deletions(-)
 rename Golden_Repo/t/torchaudio/{torchaudio-0.13.1-foss-2022a-CUDA-11.7.eb => torchaudio-0.12.1-foss-2022a.eb} (92%)

diff --git a/Golden_Repo/t/torchaudio/standard-libs-deps.patch b/Golden_Repo/t/torchaudio/standard-libs-deps.patch
index 0dd03282e..7151c4a8a 100644
--- a/Golden_Repo/t/torchaudio/standard-libs-deps.patch
+++ b/Golden_Repo/t/torchaudio/standard-libs-deps.patch
@@ -1,11 +1,11 @@
---- audio/setup.py.orig	2022-08-23 14:56:12.672462283 +0200
-+++ audio/setup.py	2022-08-23 14:56:30.086523956 +0200
-@@ -105,7 +105,7 @@
+--- audio/setup.py.orig	2022-12-19 18:01:56.099161316 +0100
++++ audio/setup.py	2022-12-19 18:02:59.140087696 +0100
+@@ -106,7 +106,7 @@
  
  def _parse_sources():
      third_party_dir = ROOT_DIR / "third_party"
--    libs = ["zlib", "bzip2", "lzma", "boost", "sox"]
+-    libs = ["zlib", "bzip2", "lzma", "sox"]
 +    libs = ["lzma"]
      archive_dir = third_party_dir / "archives"
      archive_dir.mkdir(exist_ok=True)
-     for lib in libs:
+     for lib in libs:
\ No newline at end of file
diff --git a/Golden_Repo/t/torchaudio/torchaudio-0.13.1-foss-2022a-CUDA-11.7.eb b/Golden_Repo/t/torchaudio/torchaudio-0.12.1-foss-2022a.eb
similarity index 92%
rename from Golden_Repo/t/torchaudio/torchaudio-0.13.1-foss-2022a-CUDA-11.7.eb
rename to Golden_Repo/t/torchaudio/torchaudio-0.12.1-foss-2022a.eb
index 972122d97..5f76b30a9 100644
--- a/Golden_Repo/t/torchaudio/torchaudio-0.13.1-foss-2022a-CUDA-11.7.eb
+++ b/Golden_Repo/t/torchaudio/torchaudio-0.12.1-foss-2022a.eb
@@ -1,7 +1,7 @@
 easyblock = 'PythonPackage'
 
 name = 'torchaudio'
-version = '0.13.0'
+version = '0.12.1'
 
 homepage = 'https://github.com/pytorch/audio'
 description = """ Data manipulation and transformation for audio signal
@@ -20,9 +20,6 @@ sources = [{
     },
 }]
 patches = ['standard-libs-deps.patch']
-checksums = [
-
-]
 
 builddependencies = [
     ('Boost', '1.79.0'),
@@ -33,12 +30,11 @@ dependencies = [
     ('Python', '3.10.4'),
     ('SciPy-bundle', '2022.05', '', ('gcccoremkl', '11.3.0-2022.1.0')),
     ('CUDA', '11.7', '', SYSTEM),
-    ('PyTorch', '1.12.0', '-CUDA-%(cudaver)s'),
+    ('PyTorch', '1.12.0', '-CUDA-11.7'),
     ('SoX', '14.4.2'),
     ('zlib', '1.2.12'),
     ('bzip2', '1.0.8'),
     ('librosa', '0.9.2', '', ('gcccoremkl', '11.3.0-2022.1.0')),
-
 ]
 
 download_dep_fail = True
-- 
GitLab