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

fgerlits 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 a06d0d872 MINIFICPP-2897 Fix LMDB patch command on Windows (#2256)
a06d0d872 is described below

commit a06d0d8727fcd573a0252d5cf9b6c355ede1bc10
Author: Gabor Gyimesi <[email protected]>
AuthorDate: Wed Sep 9 14:03:44 2026 +0200

    MINIFICPP-2897 Fix LMDB patch command on Windows (#2256)
---
 cmake/LMDB.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/LMDB.cmake b/cmake/LMDB.cmake
index 194186c8a..c3f172f71 100644
--- a/cmake/LMDB.cmake
+++ b/cmake/LMDB.cmake
@@ -22,7 +22,7 @@ if (WIN32)
     set(PATCH_FILE_2 
"${CMAKE_SOURCE_DIR}/thirdparty/lmdb/all/patches/fix-windows-symbols.patch")
     set(PC ${Bash_EXECUTABLE}  -c "set -x &&\
         (\\\"${Patch_EXECUTABLE}\\\" -p0 -R -s -f --dry-run -i 
\\\"${PATCH_FILE_1}\\\" || \\\"${Patch_EXECUTABLE}\\\" -p0 -N -i 
\\\"${PATCH_FILE_1}\\\") &&\
-        (\\\"${Patch_EXECUTABLE}\\\" -p0 -R -s -f --dry-run -i 
\\\"${PATCH_FILE_2}\\\" || \\\"${Patch_EXECUTABLE}\\\" -p0 -N -i 
\\\"${PATCH_FILE_2}\\\")")
+        (\\\"${Patch_EXECUTABLE}\\\" -p1 -R -s -f --dry-run -i 
\\\"${PATCH_FILE_2}\\\" || \\\"${Patch_EXECUTABLE}\\\" -p1 -N -i 
\\\"${PATCH_FILE_2}\\\")")
 else()
     set(PC ${Bash_EXECUTABLE}  -c "set -x &&\
         (\\\"${Patch_EXECUTABLE}\\\" -p0 -R -s -f --dry-run -i 
\\\"${PATCH_FILE_1}\\\" || \\\"${Patch_EXECUTABLE}\\\" -p0 -N -i 
\\\"${PATCH_FILE_1}\\\")")

Reply via email to