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 ee0f86d41 MINIFICPP-2940 Fix Azure and grpc Conan build issues (#2294)
ee0f86d41 is described below

commit ee0f86d41a394414bef1e507ecfc10b4cb1470cb
Author: Gabor Gyimesi <[email protected]>
AuthorDate: Wed Nov 11 10:41:30 2026 +0100

    MINIFICPP-2940 Fix Azure and grpc Conan build issues (#2294)
    
    - Apply existing patches for Azure in Conan build
    - Disable systemd in grpc library to avoid linking it unnecessarily
---
 thirdparty/azure-sdk-cpp/all/conanfile.py           |  6 +++++-
 .../all/patches/fix-openssl-helper.patch            |  6 +++---
 .../include-cinttypes-for-uint8_t-gcc15-fix.patch   | 21 ++++++++-------------
 thirdparty/grpc/all/conanfile.py                    |  1 +
 4 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/thirdparty/azure-sdk-cpp/all/conanfile.py 
b/thirdparty/azure-sdk-cpp/all/conanfile.py
index 9b166df40..96a44c30a 100644
--- a/thirdparty/azure-sdk-cpp/all/conanfile.py
+++ b/thirdparty/azure-sdk-cpp/all/conanfile.py
@@ -19,7 +19,7 @@ from conan import ConanFile
 from conan.errors import ConanInvalidConfiguration
 from conan.tools.build import check_min_cppstd
 from conan.tools.cmake import CMakeToolchain, CMake, CMakeDeps, cmake_layout
-from conan.tools.files import get, copy, rmdir, replace_in_file
+from conan.tools.files import get, copy, rmdir, replace_in_file, 
export_conandata_patches, apply_conandata_patches
 from conan.tools.scm import Version
 import glob
 import os
@@ -50,8 +50,12 @@ class AzureSDKForCppConan(ConanFile):
         "transport_curl": True
     }
 
+    def export_sources(self):
+        export_conandata_patches(self)
+
     def source(self):
         get(self, **self.conan_data["sources"][self.version], strip_root=True)
+        apply_conandata_patches(self)
         for cmake_file in glob.glob(os.path.join(self.source_folder, "sdk", 
"identity", "azure-identity", "**", "CMakeLists.txt"), recursive=True):
             replace_in_file(self, cmake_file,
                             "set(CMAKE_CXX_STANDARD 14)",
diff --git a/thirdparty/azure-sdk-cpp/all/patches/fix-openssl-helper.patch 
b/thirdparty/azure-sdk-cpp/all/patches/fix-openssl-helper.patch
index d6c1c2c6c..7d6aeeb56 100644
--- a/thirdparty/azure-sdk-cpp/all/patches/fix-openssl-helper.patch
+++ b/thirdparty/azure-sdk-cpp/all/patches/fix-openssl-helper.patch
@@ -1,10 +1,10 @@
 There seems to be an issue with the c++17 make_openssl_unique implementation 
in the Azure SDK: https://github.com/Azure/azure-sdk-for-cpp/issues/6697
 
 diff --git 
a/sdk/attestation/azure-security-attestation/src/private/crypto/openssl/openssl_helpers.hpp
 
b/sdk/attestation/azure-security-attestation/src/private/crypto/openssl/openssl_helpers.hpp
-index a52791cea..5734bb76c 100644
+index 3bcd3ae..08a0664 100644
 --- 
a/sdk/attestation/azure-security-attestation/src/private/crypto/openssl/openssl_helpers.hpp
 +++ 
b/sdk/attestation/azure-security-attestation/src/private/crypto/openssl/openssl_helpers.hpp
-@@ -39,19 +39,6 @@ namespace Azure { namespace Security { namespace 
Attestation { namespace _detail
+@@ -46,19 +46,6 @@ namespace Azure { namespace Security { namespace 
Attestation { namespace _detail
    using openssl_evp_pkey = openssl_unique_ptr<EVP_PKEY>;
    using openssl_bio = openssl_unique_ptr<BIO>;
  
@@ -24,7 +24,7 @@ index a52791cea..5734bb76c 100644
    template <typename Api, typename... Args>
    auto make_openssl_unique(Api& OpensslApi, Args&&... args)
    {
-@@ -62,7 +49,6 @@ namespace Azure { namespace Security { namespace Attestation 
{ namespace _detail
+@@ -69,7 +56,6 @@ namespace Azure { namespace Security { namespace Attestation 
{ namespace _detail
                                                      // what OpensslApi 
returned
      return openssl_unique_ptr<T>{raw};
    }
diff --git 
a/thirdparty/azure-sdk-cpp/all/patches/include-cinttypes-for-uint8_t-gcc15-fix.patch
 
b/thirdparty/azure-sdk-cpp/all/patches/include-cinttypes-for-uint8_t-gcc15-fix.patch
index 851026db6..53c785a2f 100644
--- 
a/thirdparty/azure-sdk-cpp/all/patches/include-cinttypes-for-uint8_t-gcc15-fix.patch
+++ 
b/thirdparty/azure-sdk-cpp/all/patches/include-cinttypes-for-uint8_t-gcc15-fix.patch
@@ -3,15 +3,11 @@ From: Martin Zink <[email protected]>
 Date: Tue, 19 Aug 2025 15:28:50 +0200
 Subject: [PATCH 1/1] include cinttypes for uint8_t (gcc15 fix)
 
----
- .../azure-security-attestation/src/private/crypto/inc/crypto.hpp | 1 +
- 1 file changed, 1 insertion(+)
-
 diff --git 
a/sdk/attestation/azure-security-attestation/src/private/crypto/inc/crypto.hpp 
b/sdk/attestation/azure-security-attestation/src/private/crypto/inc/crypto.hpp
-index 9a98f204e..95260d243 100644
+index 7da309d..5082fb7 100644
 --- 
a/sdk/attestation/azure-security-attestation/src/private/crypto/inc/crypto.hpp
 +++ 
b/sdk/attestation/azure-security-attestation/src/private/crypto/inc/crypto.hpp
-@@ -6,6 +6,7 @@
+@@ -8,6 +8,7 @@
  #include <memory>
  #include <string>
  #include <vector>
@@ -19,16 +15,15 @@ index 9a98f204e..95260d243 100644
  
  namespace Azure { namespace Security { namespace Attestation { namespace 
_detail {
    /**
--- 
-2.50.1
-
---- 
a/sdk/storage/azure-storage-common/inc/azure/storage/common/internal/structured_message_helper.hpp
 2026-05-12 12:38:20.000000000 +0200
-+++ 
b/sdk/storage/azure-storage-common/inc/azure/storage/common/internal/structured_message_helper.hpp
 2026-05-19 12:56:55.877826558 +0200
+diff --git 
a/sdk/storage/azure-storage-common/inc/azure/storage/common/internal/structured_message_helper.hpp
 
b/sdk/storage/azure-storage-common/inc/azure/storage/common/internal/structured_message_helper.hpp
+index 2707504..99c0f42 100644
+--- 
a/sdk/storage/azure-storage-common/inc/azure/storage/common/internal/structured_message_helper.hpp
++++ 
b/sdk/storage/azure-storage-common/inc/azure/storage/common/internal/structured_message_helper.hpp
 @@ -7,6 +7,7 @@
  #include <functional>
  #include <memory>
  #include <vector>
 +#include <cinttypes>
-
+ 
  namespace Azure { namespace Storage { namespace _internal {
-
+ 
diff --git a/thirdparty/grpc/all/conanfile.py b/thirdparty/grpc/all/conanfile.py
index 345f26eba..cd90b960e 100644
--- a/thirdparty/grpc/all/conanfile.py
+++ b/thirdparty/grpc/all/conanfile.py
@@ -173,6 +173,7 @@ class GrpcConan(ConanFile):
         tc.cache_variables["gRPC_PROTOBUF_PROVIDER"] = "package"
         tc.cache_variables["gRPC_ABSL_PROVIDER"] = "package"
         tc.cache_variables["gRPC_OPENTELEMETRY_PROVIDER"] = "package"
+        tc.cache_variables["gRPC_USE_SYSTEMD"] = "OFF"
 
         tc.cache_variables["gRPC_BUILD_GRPC_CPP_PLUGIN"] = 
self.options.cpp_plugin
         tc.cache_variables["gRPC_BUILD_GRPC_CSHARP_PLUGIN"] = 
self.options.csharp_plugin

Reply via email to