diff --git a/recipes/seqan3/fix_glibcxx_debug.patch b/recipes/seqan3/fix_glibcxx_debug.patch new file mode 100644 index 0000000000000..529cc94d0f3f9 --- /dev/null +++ b/recipes/seqan3/fix_glibcxx_debug.patch @@ -0,0 +1,25 @@ +From 47b77ef92911ff1667f4487edb3961f0c28f407b Mon Sep 17 00:00:00 2001 +From: Simon Gene Gottlieb +Date: Wed, 17 Jan 2024 12:09:11 +0100 +Subject: [PATCH] [FIX] Do not use constexpr vector with _GLIBCXX_DEBUG + +--- + include/seqan3/core/platform.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/seqan3/core/platform.hpp b/include/seqan3/core/platform.hpp +index 1fd92faa7..e0c7687fe 100644 +--- a/include/seqan3/core/platform.hpp ++++ b/include/seqan3/core/platform.hpp +@@ -252,7 +252,7 @@ static_assert(sdsl::sdsl_version_major == 3, "Only version 3 of the SDSL is supp + #endif + + //!\brief Our char literals returning std::vector should be constexpr if constexpr std::vector is supported. +-#if defined(__cpp_lib_constexpr_vector) && __cpp_lib_constexpr_vector >= 201907L ++#if __cpp_lib_constexpr_vector >= 201907L && !defined(_GLIBCXX_DEBUG) + # define SEQAN3_WORKAROUND_LITERAL constexpr + #else + # define SEQAN3_WORKAROUND_LITERAL inline +-- +2.43.0 + diff --git a/recipes/seqan3/meta.yaml b/recipes/seqan3/meta.yaml index c5f14a78f7ae3..abb3a201426e9 100644 --- a/recipes/seqan3/meta.yaml +++ b/recipes/seqan3/meta.yaml @@ -8,10 +8,12 @@ package: source: url: https://github.com/seqan/{{ name|lower }}/releases/download/{{ version }}/seqan3-{{ version }}-Source.tar.xz sha256: da2fb621268ebc52b9cc26087e96f4a94109db1f4f28d363d19c7c9cdbd788b1 + patches: + - fix_glibcxx_debug.patch # Fix will be included in 3.4.0 build: noarch: generic - number: 0 + number: 1 run_exports: - {{ pin_subpackage('seqan3', max_pin="x") }}