diff options
Diffstat (limited to 'media-sound/guitarix/files/guitarix-0.44.1-zita-resampler-1.10.patch')
-rw-r--r-- | media-sound/guitarix/files/guitarix-0.44.1-zita-resampler-1.10.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/media-sound/guitarix/files/guitarix-0.44.1-zita-resampler-1.10.patch b/media-sound/guitarix/files/guitarix-0.44.1-zita-resampler-1.10.patch new file mode 100644 index 000000000000..1eed9bafda27 --- /dev/null +++ b/media-sound/guitarix/files/guitarix-0.44.1-zita-resampler-1.10.patch @@ -0,0 +1,35 @@ +From 4c15aea1425ef19a5d68387e60abfab830fed20b Mon Sep 17 00:00:00 2001 +From: Alexander Tsoy <alexander@tsoy.me> +Date: Thu, 15 Jun 2023 22:05:29 +0300 +Subject: [PATCH] Fix major version detection of zita-resampler >=1.10 + +https://github.com/brummer10/guitarix/pull/129 + +Fixes #122 +--- + waftools/zita-resampler.py | 9 +++++---- + 1 file changed, 5 insertions(+), 4 deletions(-) + +diff --git a/waftools/zita-resampler.py b/waftools/zita-resampler.py +index 1cd49a2a..ba5bbc7c 100644 +--- a/waftools/zita-resampler.py ++++ b/waftools/zita-resampler.py +@@ -18,10 +18,11 @@ def configure(conf): + code=""" + #include <zita-resampler/resampler.h> + #include <zita-resampler/resampler-table.h> +- #if ZITA_RESAMPLER_MAJOR_VERSION != %d +- #error +- #endif +- int main(){ return 0; } ++ int main() { ++ int maj = zita_resampler_major_version(); ++ if (maj == %d) { return 0; }; ++ return 1; ++ } + """ % expected_zita_resampler_version + conf.check_cxx( + fragment=code, +-- +2.39.3 + |