* NOT RELEASED YET.
* debian/patches/support_gcc10: Additionally tweak ncbifile.cpp to avoid
narrowing errors on some platforms (i386, for one).
+ * debian/patches/tune_32bit_lmdb_defaults (new): Conditionalize default
+ map size to avoid allocation failures on 32-bit platforms.
+ (Closes: #969608.)
- -- Aaron M. Ucko <ucko@debian.org> Sun, 06 Sep 2020 22:57:35 -0400
+ -- Aaron M. Ucko <ucko@debian.org> Sun, 06 Sep 2020 23:01:38 -0400
ncbi-blast+ (2.10.0-1) unstable; urgency=medium
--- /dev/null
+Index: b/c++/include/objtools/blast/seqdb_writer/writedb_lmdb.hpp
+===================================================================
+--- a/c++/include/objtools/blast/seqdb_writer/writedb_lmdb.hpp
++++ b/c++/include/objtools/blast/seqdb_writer/writedb_lmdb.hpp
+@@ -48,6 +48,11 @@ USING_SCOPE(objects);
+
+ BEGIN_NCBI_SCOPE
+
++#if NCBI_PLATFORM_BITS >= 64
++# define NCBI_WRITEDB_DEFAULT_MAP_SIZE 300 * 1000 * 1000 * 1000
++#else
++# define NCBI_WRITEDB_DEFAULT_MAP_SIZE 1000 * 1000 * 1000
++#endif
+
+ /// This class supports creation of a string accession to integer OID
+ /// lmdb database
+@@ -59,7 +64,8 @@ public:
+
+ /// Constructor for LMDB write access
+ /// @param dbname Database name
+- CWriteDB_LMDB(const string& dbname, Uint8 map_size = 300000000000, Uint8 capacity = 500000);
++ CWriteDB_LMDB(const string& dbname, Uint8 map_size = NCBI_WRITEDB_DEFAULT_MAP_SIZE,
++ Uint8 capacity = 500000);
+
+ // Destructor
+ ~CWriteDB_LMDB();
+@@ -130,7 +136,8 @@ public:
+
+ /// Constructor for LMDB write access
+ /// @param dbname Database name
+- CWriteDB_TaxID(const string& dbname, Uint8 map_size = 300000000000, Uint8 capacity = 500000);
++ CWriteDB_TaxID(const string& dbname, Uint8 map_size = NCBI_WRITEDB_DEFAULT_MAP_SIZE,
++ Uint8 capacity = 500000);
+
+ // Destructor
+ ~CWriteDB_TaxID();