Description: Revert seqan2 namespace to seqan for compatibility with
 libseqan2-dev 2.4.0 present in the build environment. SeqAn 2.4.0 only
 provides the "seqan" namespace; the "seqan2" alias exists only in newer
 SeqAn releases, so code using "seqan2" (introduced by the 0003 patch
 targeting SeqAn 2.5.0) fails to compile with the available library.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-09-14

--- lambda-align-1.0.3.orig/src/lambda.cpp
+++ lambda-align-1.0.3/src/lambda.cpp
@@ -33,7 +33,7 @@
 #include "holders.hpp"
 #include "lambda.hpp"
 
-using namespace seqan2;
+using namespace seqan;
 
 // inline BlastFormatFile
 // _fileType(LambdaOptions const & options)
@@ -116,15 +116,15 @@ realMain(LambdaOptions
 int main(int argc, char const ** argv)
 {
     // Parse the command line.
-    seqan2::ArgumentParser parser;
+    seqan::ArgumentParser parser;
     LambdaOptions options;
-    seqan2::ArgumentParser::ParseResult res = parseCommandLine(options, argc, argv);
+    seqan::ArgumentParser::ParseResult res = parseCommandLine(options, argc, argv);
 
     // If there was an error parsing or built-in argument parser functionality
     // was triggered then we exit the program.  The return code is 1 if there
     // were errors and 0 if there were none.
-    if (res != seqan2::ArgumentParser::PARSE_OK)
-        return res == seqan2::ArgumentParser::PARSE_ERROR;
+    if (res != seqan::ArgumentParser::PARSE_OK)
+        return res == seqan::ArgumentParser::PARSE_ERROR;
 
     if (std::string(CMAKE_BUILD_TYPE) != "Release")
         std::cerr << "WARNING: This binary is not built in release mode and will be much slower than it should be!\n";
--- lambda-align-1.0.3.orig/src/lambda.hpp
+++ lambda-align-1.0.3/src/lambda.hpp
@@ -42,7 +42,7 @@
 #include "match.hpp"
 #include "misc.hpp"
 
-using namespace seqan2;
+using namespace seqan;
 
 // ============================================================================
 // Forwards
--- lambda-align-1.0.3.orig/src/lambda_indexer.cpp
+++ lambda-align-1.0.3/src/lambda_indexer.cpp
@@ -30,7 +30,7 @@
 
 #include "lambda_indexer.hpp"
 
-using namespace seqan2;
+using namespace seqan;
 
 // ==========================================================================
 // Forwards
@@ -72,15 +72,15 @@ realMain(LambdaIndexerOptions     const
 int main(int argc, char const ** argv)
 {
     // Parse the command line.
-    seqan2::ArgumentParser parser;
+    seqan::ArgumentParser parser;
     LambdaIndexerOptions options;
-    seqan2::ArgumentParser::ParseResult res = parseCommandLine(options, argc, argv);
+    seqan::ArgumentParser::ParseResult res = parseCommandLine(options, argc, argv);
 
     // If there was an error parsing or built-in argument parser functionality
     // was triggered then we exit the program.  The return code is 1 if there
     // were errors and 0 if there were none.
-    if (res != seqan2::ArgumentParser::PARSE_OK)
-        return res == seqan2::ArgumentParser::PARSE_ERROR;
+    if (res != seqan::ArgumentParser::PARSE_OK)
+        return res == seqan::ArgumentParser::PARSE_ERROR;
 
     if (std::string(CMAKE_BUILD_TYPE) != "Release")
         std::cerr << "WARNING: This binary is not built in release mode and will be much slower than it should be!\n";
--- lambda-align-1.0.3.orig/src/lambda_indexer.hpp
+++ lambda-align-1.0.3/src/lambda_indexer.hpp
@@ -37,7 +37,7 @@
 #include "radix_inplace.h"
 #include "lambda_indexer_misc.hpp"
 
-using namespace seqan2;
+using namespace seqan;
 
 // --------------------------------------------------------------------------
 // Function loadSubj()
--- lambda-align-1.0.3.orig/src/match.hpp
+++ lambda-align-1.0.3/src/match.hpp
@@ -28,7 +28,7 @@
 
 #include "options.hpp"
 
-using namespace seqan2;
+using namespace seqan;
 
 //-----------------------------------------------------------------------------
 //                  Finder
--- lambda-align-1.0.3.orig/src/misc.hpp
+++ lambda-align-1.0.3/src/misc.hpp
@@ -33,7 +33,7 @@
 
 #include "options.hpp"
 
-using namespace seqan2;
+using namespace seqan;
 
 // ============================================================================
 // Forwards
@@ -78,8 +78,8 @@ template <typename TAlph>
 inline std::basic_ostream<char> &
 operator<<(std::basic_ostream<char> & out,
            const Iter<const String<SimpleType<unsigned char,TAlph>,
-                                    seqan2::Packed<> >,
-                      seqan2::Packed<> > it)
+                                    seqan::Packed<> >,
+                      seqan::Packed<> > it)
 {
     out << *it;
     return out;
--- lambda-align-1.0.3.orig/src/options.hpp
+++ lambda-align-1.0.3/src/options.hpp
@@ -69,7 +69,7 @@ using SizeTypePos_ = typename SizeTypePo
 
 
 // suffix array overloads
-namespace seqan2
+namespace seqan
 {
 
 template<typename TSpec1, typename TSpec2, typename TSpec3>
@@ -111,7 +111,7 @@ struct FormattedFileContext<FormattedFil
 
 }
 
-using namespace seqan2;
+using namespace seqan;
 
 // Index Specs
 struct LambdaFMIndexConfig
--- lambda-align-1.0.3.orig/src/output.hpp
+++ lambda-align-1.0.3/src/output.hpp
@@ -25,7 +25,7 @@
 #include <seqan/blast.h>
 #include <seqan/bam_io.h>
 
-using namespace seqan2;
+using namespace seqan;
 
 template <typename TVoidSpec = void>
 struct SamBamExtraTags
@@ -313,7 +313,7 @@ myWriteHeader(TGH & globalHolder, TLambd
     } else // SAM or BAM
     {
         open(globalHolder.outfileBam, toCString(options.output));
-        auto & context          = seqan2::context(globalHolder.outfileBam);
+        auto & context          = seqan::context(globalHolder.outfileBam);
         auto & subjSeqLengths   = contigLengths(context);
         auto & subjIds          = contigNames(context);
 
@@ -408,7 +408,7 @@ myWriteHeader(TGH & globalHolder, TLambd
         {
             // we only write the header records that we actually created ourselves
             for (unsigned i = 0; i < length(header); ++i)
-                write(globalHolder.outfileBam.iter, header[i], seqan2::context(globalHolder.outfileBam), Sam());
+                write(globalHolder.outfileBam.iter, header[i], seqan::context(globalHolder.outfileBam), Sam());
         }
         else
         {
--- lambda-align-1.0.3.orig/src/radix_inplace.h
+++ lambda-align-1.0.3/src/radix_inplace.h
@@ -49,7 +49,7 @@
 #endif
 //TODO(h-2): for clang use std::experimenta::parallel if available
 
-namespace seqan2
+namespace seqan
 {
 
 // ==========================================================================

