This is an automated email from the ASF dual-hosted git repository.

lordgamez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git


The following commit(s) were added to refs/heads/main by this push:
     new c7013c8ed MINIFICPP-2944 Add mirrors for LMDB source to avoid rate 
limit (#2301)
c7013c8ed is described below

commit c7013c8ed632a51c93cd5f1a9c0c512cbda387f9
Author: Gabor Gyimesi <[email protected]>
AuthorDate: Wed Nov 11 10:44:23 2026 +0100

    MINIFICPP-2944 Add mirrors for LMDB source to avoid rate limit (#2301)
    
    - Additionally upgrade LMDB version to 1.0.2
---
 cmake/LMDB.cmake                                   |  4 ++--
 conanfile.py                                       |  2 +-
 thirdparty/lmdb/all/conandata.yml                  | 11 +++++----
 thirdparty/lmdb/all/conanfile.py                   | 28 +++++++---------------
 .../lmdb/all/patches/fix-windows-symbols.patch     |  8 +++----
 thirdparty/lmdb/config.yml                         |  2 +-
 6 files changed, 24 insertions(+), 31 deletions(-)

diff --git a/cmake/LMDB.cmake b/cmake/LMDB.cmake
index c3f172f71..ba89704d5 100644
--- a/cmake/LMDB.cmake
+++ b/cmake/LMDB.cmake
@@ -30,8 +30,8 @@ endif()
 
 FetchContent_Declare(
         lmdb
-        URL      
https://github.com/LMDB/lmdb/archive/refs/tags/LMDB_1.0.1.tar.gz
-        URL_HASH 
SHA256=7ce1db4b8c13f60e0881f12537340c73fb5e0125dba4daa6649a2314341855db
+        URL      
https://github.com/LMDB/lmdb/archive/refs/tags/LMDB_1.0.2.tar.gz
+        URL_HASH 
SHA256=17e4cb8e80874fccc1ff6f7d5fdb62f029624967d001ff40c47c0fb7a5b42d7d
         PATCH_COMMAND "${PC}"
         SOURCE_SUBDIR "libraries/liblmdb"
         SYSTEM
diff --git a/conanfile.py b/conanfile.py
index 274b066d1..f3afa8296 100644
--- a/conanfile.py
+++ b/conanfile.py
@@ -214,7 +214,7 @@ class MiNiFiCppMain(ConanFile):
         if self.options.enable_all or self.options.enable_sql:
             self.requires("soci/4.1.4@minifi/develop")
         if self.options.enable_all or self.options.minifi_lmdb:
-            self.requires("lmdb/1.0.1@minifi/develop")
+            self.requires("lmdb/1.0.2@minifi/develop")
 
         if self.options.custom_malloc == "jemalloc":
             self.requires("jemalloc/5.3.1")
diff --git a/thirdparty/lmdb/all/conandata.yml 
b/thirdparty/lmdb/all/conandata.yml
index 229f4e5b9..0343a1dd8 100644
--- a/thirdparty/lmdb/all/conandata.yml
+++ b/thirdparty/lmdb/all/conandata.yml
@@ -14,10 +14,13 @@
 # limitations under the License.
 
 sources:
-  "1.0.1":
-    url: 
"https://git.openldap.org/openldap/openldap/-/archive/LMDB_1.0.1/openldap-LMDB_1.0.1.tar.gz";
-    sha256: "63a3cdcca69f4fd403b61fd5c5a51a119f1549d7b375b33f624e64df2933d336"
+  "1.0.2":
+    url:
+      - 
"https://git.openldap.org/openldap/openldap/-/archive/LMDB_1.0.2/openldap-LMDB_1.0.2.tar.gz";
+      - 
"https://github.com/openldap/openldap/archive/refs/tags/LMDB_1.0.2.tar.gz";
+      - 
"https://gitlab.com/openldap/openldap/-/archive/LMDB_1.0.2/openldap-LMDB_1.0.2.tar.gz";
+    sha256: "38a029bb3e29820380e18a2dfdbe906bbc5b322132c63274c5e4ed7833821752"
 patches:
-  "1.0.1":
+  "1.0.2":
     - patch_file: "patches/fix-windows-symbols.patch"
     - patch_file: "patches/add-cmake-file.patch"
diff --git a/thirdparty/lmdb/all/conanfile.py b/thirdparty/lmdb/all/conanfile.py
index d8d7d31cc..37c276e83 100644
--- a/thirdparty/lmdb/all/conanfile.py
+++ b/thirdparty/lmdb/all/conanfile.py
@@ -20,7 +20,7 @@ from conan.tools.cmake import CMake, CMakeToolchain, 
cmake_layout
 from conan.tools.files import copy, get, export_conandata_patches, 
apply_conandata_patches
 import os
 
-required_conan_version = ">=1.46.0"
+required_conan_version = ">=2.4"
 
 
 class lmdbConan(ConanFile):
@@ -41,24 +41,17 @@ class lmdbConan(ConanFile):
         "fPIC": True,
     }
 
+    exports_sources = ["CMakeLists.txt"]
+
     def config_options(self):
         if self.settings.os == "Windows":
             del self.options.fPIC
 
     def configure(self):
         if self.options.shared:
-            try:
-                del self.options.fPIC
-            except Exception:
-                pass
-        try:
-            del self.settings.compiler.libcxx
-        except Exception:
-            pass
-        try:
-            del self.settings.compiler.cppstd
-        except Exception:
-            pass
+            self.options.rm_safe("fPIC")
+        self.settings.rm_safe("compiler.libcxx")
+        self.settings.rm_safe("compiler.cppstd")
 
     def export_sources(self):
         export_conandata_patches(self)
@@ -67,7 +60,8 @@ class lmdbConan(ConanFile):
         cmake_layout(self, src_folder="src")
 
     def source(self):
-        get(self, **self.conan_data["sources"][self.version], 
destination=self.source_folder, strip_root=True)
+        get(self, **self.conan_data["sources"][self.version],
+            destination=self.source_folder, strip_root=True)
         apply_conandata_patches(self)
 
     def generate(self):
@@ -90,8 +84,4 @@ class lmdbConan(ConanFile):
         self.cpp_info.libs = ["lmdb"]
 
         if self.settings.os in ["Linux", "FreeBSD"]:
-            self.cpp_info.system_libs = ["pthread"]
-
-        bin_path = os.path.join(self.package_folder, "bin")
-        self.output.info(f"Appending PATH environment variable: {bin_path}")
-        self.env_info.PATH.append(bin_path)
+            self.cpp_info.system_libs = ["pthread", "dl"]
diff --git a/thirdparty/lmdb/all/patches/fix-windows-symbols.patch 
b/thirdparty/lmdb/all/patches/fix-windows-symbols.patch
index 0bb868103..db08b4959 100644
--- a/thirdparty/lmdb/all/patches/fix-windows-symbols.patch
+++ b/thirdparty/lmdb/all/patches/fix-windows-symbols.patch
@@ -1,5 +1,5 @@
 diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c
-index 23c86eb..2c5296a 100644
+index c20786d..018d3cd 100644
 --- a/libraries/liblmdb/mdb.c
 +++ b/libraries/liblmdb/mdb.c
 @@ -42,6 +42,7 @@
@@ -48,7 +48,7 @@ index 23c86eb..2c5296a 100644
  
  /** getpid() returns int; MinGW defines pid_t but MinGW64 typedefs it
   *  as int64 which is wrong. MSVC doesn't define it at all, so just
-@@ -5093,22 +5094,22 @@ mdb_env_map(MDB_env *env, void *addr)
+@@ -5094,22 +5095,22 @@ mdb_env_map(MDB_env *env, void *addr)
        LARGE_INTEGER fsize;
        fsize.LowPart = msize & 0xffffffff;
        fsize.HighPart = msize >> 16 >> 16;
@@ -75,7 +75,7 @@ index 23c86eb..2c5296a 100644
        if (rc)
                return mdb_nt2win32(rc);
        env->me_map = map;
-@@ -5468,18 +5469,18 @@ mdb_env_open2(MDB_env *env, int prev)
+@@ -5469,18 +5470,18 @@ mdb_env_open2(MDB_env *env, int prev)
        else
                env->me_pidquery = PROCESS_QUERY_INFORMATION;
        /* Grab functions we need from NTDLL */
@@ -101,7 +101,7 @@ index 23c86eb..2c5296a 100644
                        return MDB_PROBLEM;
        }
        env->me_ovs = 0;
-@@ -6951,7 +6952,7 @@ mdb_rpage_get(MDB_txn *txn, pgno_t pg0, int numpgs, 
MDB_page **ret, MDB_page **e
+@@ -6957,7 +6958,7 @@ mdb_rpage_get(MDB_txn *txn, pgno_t pg0, int numpgs, 
MDB_page **ret, MDB_page **e
  #define CHK_OFF(off)          off.QuadPart
  #define MAP(rc,env,addr,len,off)      \
        addr = NULL; \
diff --git a/thirdparty/lmdb/config.yml b/thirdparty/lmdb/config.yml
index 1a66a28dc..70fd2b778 100644
--- a/thirdparty/lmdb/config.yml
+++ b/thirdparty/lmdb/config.yml
@@ -14,5 +14,5 @@
 # limitations under the License.
 
 versions:
-  "1.0.1":
+  "1.0.2":
     folder: "all"

Reply via email to