diff options
Diffstat (limited to 'meta-oe/recipes-extended/minifi-cpp')
12 files changed, 431 insertions, 288 deletions
diff --git a/meta-oe/recipes-extended/minifi-cpp/files/0001-Do-not-use-bundled-packages.patch b/meta-oe/recipes-extended/minifi-cpp/files/0001-Do-not-use-bundled-packages.patch index b997d6ce7d..68fd1ee3e0 100644 --- a/meta-oe/recipes-extended/minifi-cpp/files/0001-Do-not-use-bundled-packages.patch +++ b/meta-oe/recipes-extended/minifi-cpp/files/0001-Do-not-use-bundled-packages.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 65923a872e44cb461ef1a03374057351f0bc5efe Mon Sep 17 00:00:00 2001 | 1 | From 4952f03d150770ff06f9a12ff42d8de680407649 Mon Sep 17 00:00:00 2001 |
2 | From: Yi Zhao <yi.zhao@windriver.com> | 2 | From: Yi Zhao <yi.zhao@windriver.com> |
3 | Date: Tue, 19 Mar 2024 19:39:04 +0800 | 3 | Date: Tue, 19 Mar 2024 19:39:04 +0800 |
4 | Subject: [PATCH] Do not use bundled packages | 4 | Subject: [PATCH] Do not use bundled packages |
@@ -10,60 +10,27 @@ Upstream-Status: Inappropriate [embedded specific] | |||
10 | 10 | ||
11 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | 11 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> |
12 | --- | 12 | --- |
13 | CMakeLists.txt | 23 ++++++----------------- | 13 | CMakeLists.txt | 3 +-- |
14 | extensions/libarchive/CMakeLists.txt | 7 ++----- | 14 | cmake/GetBZip2.cmake | 3 +++ |
15 | 2 files changed, 8 insertions(+), 22 deletions(-) | 15 | cmake/GetCatch2.cmake | 4 ++++ |
16 | cmake/GetCivetWeb.cmake | 3 +++ | ||
17 | cmake/GetFmt.cmake | 3 +++ | ||
18 | cmake/GetLibCURL.cmake | 3 +++ | ||
19 | cmake/GetLibXml2.cmake | 3 +++ | ||
20 | cmake/GetOpenSSL.cmake | 3 +++ | ||
21 | cmake/GetRocksDB.cmake | 4 ++++ | ||
22 | cmake/GetSpdlog.cmake | 4 ++++ | ||
23 | cmake/GetZLIB.cmake | 3 +++ | ||
24 | cmake/GetZstd.cmake | 4 ++++ | ||
25 | extensions/libarchive/CMakeLists.txt | 6 ++---- | ||
26 | 13 files changed, 40 insertions(+), 6 deletions(-) | ||
16 | 27 | ||
17 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 28 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
18 | index 13a2b992..8a1dd6d9 100644 | 29 | index 50e31d871..fc1718dfd 100644 |
19 | --- a/CMakeLists.txt | 30 | --- a/CMakeLists.txt |
20 | +++ b/CMakeLists.txt | 31 | +++ b/CMakeLists.txt |
21 | @@ -222,9 +222,7 @@ else() | 32 | @@ -265,8 +265,7 @@ include(GetSpdlog) |
22 | endif() | 33 | get_spdlog() |
23 | |||
24 | if (NOT DISABLE_BZIP2 AND (NOT DISABLE_LIBARCHIVE OR (NOT DISABLE_ROCKSDB AND NOT WIN32))) | ||
25 | - include(BundledBZip2) | ||
26 | - use_bundled_bzip2(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}) | ||
27 | - list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/bzip2/dummy") | ||
28 | + find_package(BZip2 REQUIRED) | ||
29 | endif() | ||
30 | |||
31 | if(NOT WIN32) | ||
32 | @@ -247,9 +245,7 @@ endif() | ||
33 | |||
34 | # OpenSSL | ||
35 | if (NOT OPENSSL_OFF) | ||
36 | - include(BundledOpenSSL) | ||
37 | - use_openssl("${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}") | ||
38 | - list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/ssl") | ||
39 | + find_package(OpenSSL REQUIRED) | ||
40 | |||
41 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DOPENSSL_SUPPORT") | ||
42 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DOPENSSL_SUPPORT") | ||
43 | @@ -262,9 +258,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSODIUM_STATIC=1") | ||
44 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSODIUM_STATIC=1") | ||
45 | |||
46 | # zlib | ||
47 | -include(BundledZLIB) | ||
48 | -use_bundled_zlib(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) | ||
49 | -list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/zlib/dummy") | ||
50 | +find_package(ZLIB REQUIRED) | ||
51 | |||
52 | # uthash | ||
53 | add_library(ut INTERFACE) | ||
54 | @@ -272,9 +266,7 @@ target_include_directories(ut SYSTEM INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/thir | ||
55 | |||
56 | # cURL | ||
57 | if(NOT DISABLE_CURL) | ||
58 | - include(BundledLibcURL) | ||
59 | - use_bundled_curl(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) | ||
60 | - list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/curl/dummy") | ||
61 | + find_package(CURL REQUIRED) | ||
62 | else() | ||
63 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_CURL") | ||
64 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_CURL") | ||
65 | @@ -285,8 +277,7 @@ include(BundledSpdlog) | ||
66 | use_bundled_spdlog(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) | ||
67 | 34 | ||
68 | # yaml-cpp | 35 | # yaml-cpp |
69 | -include(BundledYamlCpp) | 36 | -include(BundledYamlCpp) |
@@ -72,27 +39,162 @@ index 13a2b992..8a1dd6d9 100644 | |||
72 | 39 | ||
73 | # concurrentqueue | 40 | # concurrentqueue |
74 | add_library(concurrentqueue INTERFACE) | 41 | add_library(concurrentqueue INTERFACE) |
75 | @@ -357,9 +348,7 @@ include(Extensions) | 42 | diff --git a/cmake/GetBZip2.cmake b/cmake/GetBZip2.cmake |
76 | add_subdirectory(libminifi) | 43 | index 2a7d47e9e..754122895 100644 |
77 | 44 | --- a/cmake/GetBZip2.cmake | |
78 | if ((ENABLE_OPENWSMAN AND NOT DISABLE_CIVET AND NOT DISABLE_CURL) OR ENABLE_ALL OR ENABLE_AZURE) | 45 | +++ b/cmake/GetBZip2.cmake |
79 | - include(BundledLibXml2) | 46 | @@ -23,5 +23,8 @@ function(get_bzip2 SOURCE_DIR BINARY_DIR) |
80 | - use_bundled_libxml2(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) | 47 | message("Using CMake to build bzip2 from source") |
81 | - list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/libxml2/dummy") | 48 | include(BundledBZip2) |
82 | + find_package(LibXml2 REQUIRED) | 49 | use_bundled_bzip2(${SOURCE_DIR} ${BINARY_DIR}) |
83 | endif() | 50 | + elseif(MINIFI_BZIP2_SOURCE STREQUAL "SYSTEM") |
84 | 51 | + message("Using bzip2 provided by system") | |
85 | if (ENABLE_ALL OR ENABLE_PROMETHEUS OR NOT DISABLE_CIVET) | 52 | + find_package(BZip2 REQUIRED) |
53 | endif() | ||
54 | endfunction(get_bzip2) | ||
55 | diff --git a/cmake/GetCatch2.cmake b/cmake/GetCatch2.cmake | ||
56 | index d6c1d6acc..ec11b0a77 100644 | ||
57 | --- a/cmake/GetCatch2.cmake | ||
58 | +++ b/cmake/GetCatch2.cmake | ||
59 | @@ -23,5 +23,9 @@ function(get_catch2) | ||
60 | elseif(MINIFI_CATCH2_SOURCE STREQUAL "BUILD") | ||
61 | message("Using CMake to build Catch2 from source") | ||
62 | include(Catch2) | ||
63 | + elseif(MINIFI_CATCH2_SOURCE STREQUAL "SYSTEM") | ||
64 | + message("Using Catch2 provided by system") | ||
65 | + find_package(Catch2 REQUIRED) | ||
66 | + add_library(Catch2WithMain ALIAS Catch2::Catch2WithMain) | ||
67 | endif() | ||
68 | endfunction(get_catch2) | ||
69 | diff --git a/cmake/GetCivetWeb.cmake b/cmake/GetCivetWeb.cmake | ||
70 | index f30d22289..8fc39a0e2 100644 | ||
71 | --- a/cmake/GetCivetWeb.cmake | ||
72 | +++ b/cmake/GetCivetWeb.cmake | ||
73 | @@ -22,5 +22,8 @@ function(get_civetweb) | ||
74 | elseif(MINIFI_CIVETWEB_SOURCE STREQUAL "BUILD") | ||
75 | message("Using CMake to build CivetWeb from source") | ||
76 | include(CivetWeb) | ||
77 | + elseif(MINIFI_CIVETWEB_SOURCE STREQUAL "SYSTEM") | ||
78 | + message("Using CivetWeb provided by system") | ||
79 | + find_package(civetweb REQUIRED) | ||
80 | endif() | ||
81 | endfunction(get_civetweb) | ||
82 | diff --git a/cmake/GetFmt.cmake b/cmake/GetFmt.cmake | ||
83 | index f4f28458d..579a63897 100644 | ||
84 | --- a/cmake/GetFmt.cmake | ||
85 | +++ b/cmake/GetFmt.cmake | ||
86 | @@ -22,5 +22,8 @@ function(get_fmt) | ||
87 | elseif(MINIFI_FMT_SOURCE STREQUAL "BUILD") | ||
88 | message("Using CMake to build Fmt from source") | ||
89 | include(fmt) | ||
90 | + elseif(MINIFI_FMT_SOURCE STREQUAL "SYSTEM") | ||
91 | + message("Using Fmt provided by system") | ||
92 | + find_package(fmt REQUIRED) | ||
93 | endif() | ||
94 | endfunction(get_fmt) | ||
95 | diff --git a/cmake/GetLibCURL.cmake b/cmake/GetLibCURL.cmake | ||
96 | index afd38f3c9..0eac59ec4 100644 | ||
97 | --- a/cmake/GetLibCURL.cmake | ||
98 | +++ b/cmake/GetLibCURL.cmake | ||
99 | @@ -23,5 +23,8 @@ function(get_curl SOURCE_DIR BINARY_DIR) | ||
100 | message("Using CMake to build libcurl from source") | ||
101 | include(BundledLibcURL) | ||
102 | use_bundled_curl(${SOURCE_DIR} ${BINARY_DIR}) | ||
103 | + elseif(MINIFI_LIBCURL_SOURCE STREQUAL "SYSTEM") | ||
104 | + message("Using libcurl provided by system") | ||
105 | + find_package(CURL REQUIRED) | ||
106 | endif() | ||
107 | endfunction(get_curl SOURCE_DIR BINARY_DIR) | ||
108 | diff --git a/cmake/GetLibXml2.cmake b/cmake/GetLibXml2.cmake | ||
109 | index 5915b117d..18048715d 100644 | ||
110 | --- a/cmake/GetLibXml2.cmake | ||
111 | +++ b/cmake/GetLibXml2.cmake | ||
112 | @@ -23,5 +23,8 @@ function(get_libxml2 SOURCE_DIR BINARY_DIR) | ||
113 | message("Using CMake to build libxml2 from source") | ||
114 | include(BundledLibXml2) | ||
115 | use_bundled_libxml2(${SOURCE_DIR} ${BINARY_DIR}) | ||
116 | + elseif(MINIFI_LIBXML2_SOURCE STREQUAL "SYSTEM") | ||
117 | + message("Using libxml2 provided by system") | ||
118 | + find_package(libxml2 REQUIRED) | ||
119 | endif() | ||
120 | endfunction(get_libxml2) | ||
121 | diff --git a/cmake/GetOpenSSL.cmake b/cmake/GetOpenSSL.cmake | ||
122 | index 58132c6bf..2b142f94e 100644 | ||
123 | --- a/cmake/GetOpenSSL.cmake | ||
124 | +++ b/cmake/GetOpenSSL.cmake | ||
125 | @@ -23,5 +23,8 @@ function(get_openssl SOURCE_DIR BINARY_DIR) | ||
126 | message("Using CMake to build OpenSSL from source") | ||
127 | include(BundledOpenSSL) | ||
128 | use_openssl(${SOURCE_DIR} ${BINARY_DIR}) | ||
129 | + elseif(MINIFI_OPENSSL_SOURCE STREQUAL "SYSTEM") | ||
130 | + message("Using OpenSSL provided by system") | ||
131 | + find_package(OpenSSL REQUIRED) | ||
132 | endif() | ||
133 | endfunction(get_openssl) | ||
134 | diff --git a/cmake/GetRocksDB.cmake b/cmake/GetRocksDB.cmake | ||
135 | index 0968afc38..3ca1fe565 100644 | ||
136 | --- a/cmake/GetRocksDB.cmake | ||
137 | +++ b/cmake/GetRocksDB.cmake | ||
138 | @@ -30,5 +30,9 @@ function(get_rocksdb SOURCE_DIR BINARY_DIR) | ||
139 | list(APPEND CMAKE_MODULE_PATH "${SOURCE_DIR}/cmake/rocksdb/sys") | ||
140 | find_package(RocksDB REQUIRED) | ||
141 | endif() | ||
142 | + elseif(MINIFI_ROCKSDB_SOURCE STREQUAL "SYSTEM") | ||
143 | + message("Using RocksDB provided by system") | ||
144 | + list(APPEND CMAKE_MODULE_PATH "${SOURCE_DIR}/cmake/rocksdb/sys") | ||
145 | + find_package(RocksDB REQUIRED) | ||
146 | endif() | ||
147 | endfunction(get_rocksdb SOURCE_DIR BINARY_DIR) | ||
148 | diff --git a/cmake/GetSpdlog.cmake b/cmake/GetSpdlog.cmake | ||
149 | index 747894984..6255e31bf 100644 | ||
150 | --- a/cmake/GetSpdlog.cmake | ||
151 | +++ b/cmake/GetSpdlog.cmake | ||
152 | @@ -27,5 +27,9 @@ function(get_spdlog) | ||
153 | elseif(MINIFI_SPDLOG_SOURCE STREQUAL "BUILD") | ||
154 | message("Using CMake to build spdlog from source") | ||
155 | include(Spdlog) | ||
156 | + elseif(MINIFI_SPDLOG_SOURCE STREQUAL "SYSTEM") | ||
157 | + message("Using spdlog provided by system") | ||
158 | + find_package(spdlog REQUIRED) | ||
159 | + add_library(spdlog ALIAS spdlog::spdlog) | ||
160 | endif() | ||
161 | endfunction(get_spdlog) | ||
162 | diff --git a/cmake/GetZLIB.cmake b/cmake/GetZLIB.cmake | ||
163 | index 6e7bea1e3..c15e2246a 100644 | ||
164 | --- a/cmake/GetZLIB.cmake | ||
165 | +++ b/cmake/GetZLIB.cmake | ||
166 | @@ -23,5 +23,8 @@ function(get_zlib SOURCE_DIR BINARY_DIR) | ||
167 | message("Using CMake to build zlib from source") | ||
168 | include(BundledZLIB) | ||
169 | use_bundled_zlib(${SOURCE_DIR} ${BINARY_DIR}) | ||
170 | + elseif(MINIFI_ZLIB_SOURCE STREQUAL "SYSTEM") | ||
171 | + message("Using zlib provided by system") | ||
172 | + find_package(ZLIB REQUIRED) | ||
173 | endif() | ||
174 | endfunction(get_zlib) | ||
175 | diff --git a/cmake/GetZstd.cmake b/cmake/GetZstd.cmake | ||
176 | index a0334b02d..0e7600c22 100644 | ||
177 | --- a/cmake/GetZstd.cmake | ||
178 | +++ b/cmake/GetZstd.cmake | ||
179 | @@ -23,5 +23,9 @@ function(get_zstd) | ||
180 | elseif(MINIFI_ZSTD_SOURCE STREQUAL "BUILD") | ||
181 | message("Using CMake to build zstd from source") | ||
182 | include(Zstd) | ||
183 | + elseif(MINIFI_ZSTD_SOURCE STREQUAL "SYSTEM") | ||
184 | + message("Using zstd provided by system") | ||
185 | + find_package(zstd REQUIRED) | ||
186 | + add_library(zstd::zstd ALIAS zstd::libzstd_static) | ||
187 | endif() | ||
188 | endfunction(get_zstd) | ||
86 | diff --git a/extensions/libarchive/CMakeLists.txt b/extensions/libarchive/CMakeLists.txt | 189 | diff --git a/extensions/libarchive/CMakeLists.txt b/extensions/libarchive/CMakeLists.txt |
87 | index 2b89d3ea..49e13e21 100644 | 190 | index bf7b2a7f5..eb6b71091 100644 |
88 | --- a/extensions/libarchive/CMakeLists.txt | 191 | --- a/extensions/libarchive/CMakeLists.txt |
89 | +++ b/extensions/libarchive/CMakeLists.txt | 192 | +++ b/extensions/libarchive/CMakeLists.txt |
90 | @@ -22,13 +22,10 @@ if (DISABLE_LIBARCHIVE) | 193 | @@ -22,12 +22,10 @@ if (NOT ENABLE_LIBARCHIVE) |
91 | endif() | 194 | endif() |
92 | 195 | ||
93 | if (NOT DISABLE_LZMA) | 196 | if (ENABLE_LZMA) |
94 | - include(BundledLibLZMA) | 197 | - include(LibLZMA) |
95 | - use_bundled_liblzma(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}) | ||
96 | - list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/liblzma/dummy") | 198 | - list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/liblzma/dummy") |
97 | + find_package(LibLZMA REQUIRED) | 199 | + find_package(LibLZMA REQUIRED) |
98 | endif() | 200 | endif() |
@@ -104,5 +206,5 @@ index 2b89d3ea..49e13e21 100644 | |||
104 | include(${CMAKE_SOURCE_DIR}/extensions/ExtensionHeader.txt) | 206 | include(${CMAKE_SOURCE_DIR}/extensions/ExtensionHeader.txt) |
105 | 207 | ||
106 | -- | 208 | -- |
107 | 2.25.1 | 209 | 2.34.1 |
108 | 210 | ||
diff --git a/meta-oe/recipes-extended/minifi-cpp/files/0001-libminifi-Rename-mutex_-to-mtx_-member-of-Concurrent.patch b/meta-oe/recipes-extended/minifi-cpp/files/0001-libminifi-Rename-mutex_-to-mtx_-member-of-Concurrent.patch deleted file mode 100644 index a09a17bf2c..0000000000 --- a/meta-oe/recipes-extended/minifi-cpp/files/0001-libminifi-Rename-mutex_-to-mtx_-member-of-Concurrent.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | From cd2b5362fe2e63dff3666ce72da27979fe06a519 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 28 May 2024 22:24:52 -0700 | ||
4 | Subject: [PATCH] libminifi: Rename mutex_ to mtx_ member of ConcurrentQueue | ||
5 | |||
6 | Fixes | ||
7 | libminifi/include/utils/MinifiConcurrentQueue.h:48:75: error: no member named 'mutex_' in 'ConcurrentQueue<T>'; did you mean 'mtx_'? | ||
8 | | 48 | : ConcurrentQueue(std::move(other), std::lock_guard<std::mutex>(other.mutex_)) {} | ||
9 | | | ^~~~~~ | ||
10 | | | mtx_ | ||
11 | | libminifi/include/utils/MinifiConcurrentQueue.h:140:22: note: 'mtx_' declared here | ||
12 | | 140 | mutable std::mutex mtx_; | ||
13 | | | ^ | ||
14 | | 1 error generated. | ||
15 | |||
16 | Upstream-Status: Submitted [https://github.com/apache/nifi-minifi-cpp/pull/1803] | ||
17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
18 | --- | ||
19 | libminifi/include/utils/MinifiConcurrentQueue.h | 2 +- | ||
20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/libminifi/include/utils/MinifiConcurrentQueue.h b/libminifi/include/utils/MinifiConcurrentQueue.h | ||
23 | index 8abc0ec93..1db58080b 100644 | ||
24 | --- a/libminifi/include/utils/MinifiConcurrentQueue.h | ||
25 | +++ b/libminifi/include/utils/MinifiConcurrentQueue.h | ||
26 | @@ -45,7 +45,7 @@ class ConcurrentQueue { | ||
27 | ConcurrentQueue(const ConcurrentQueue& other) = delete; | ||
28 | ConcurrentQueue& operator=(const ConcurrentQueue& other) = delete; | ||
29 | ConcurrentQueue(ConcurrentQueue&& other) | ||
30 | - : ConcurrentQueue(std::move(other), std::lock_guard<std::mutex>(other.mutex_)) {} | ||
31 | + : ConcurrentQueue(std::move(other), std::lock_guard<std::mutex>(other.mtx_)) {} | ||
32 | |||
33 | ConcurrentQueue& operator=(ConcurrentQueue&& other) { | ||
34 | if (this != &other) { | ||
35 | -- | ||
36 | 2.45.1 | ||
37 | |||
diff --git a/meta-oe/recipes-extended/minifi-cpp/files/0002-Fix-osspuuid-build.patch b/meta-oe/recipes-extended/minifi-cpp/files/0002-Fix-osspuuid-build.patch index 65c52c6337..537beb85d3 100644 --- a/meta-oe/recipes-extended/minifi-cpp/files/0002-Fix-osspuuid-build.patch +++ b/meta-oe/recipes-extended/minifi-cpp/files/0002-Fix-osspuuid-build.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 4e8e1943541d3b887ba86dc1b488cbb058c7d1cd Mon Sep 17 00:00:00 2001 | 1 | From 429b2b357e5142e2b845da95bdd38e8fc1229831 Mon Sep 17 00:00:00 2001 |
2 | From: Yi Zhao <yi.zhao@windriver.com> | 2 | From: Yi Zhao <yi.zhao@windriver.com> |
3 | Date: Tue, 19 Mar 2024 20:48:25 +0800 | 3 | Date: Tue, 19 Mar 2024 20:48:25 +0800 |
4 | Subject: [PATCH] Fix osspuuid build | 4 | Subject: [PATCH] Fix osspuuid build |
@@ -16,7 +16,7 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | |||
16 | create mode 100644 thirdparty/ossp-uuid/ossp-uuid-cross-compile-fix.patch | 16 | create mode 100644 thirdparty/ossp-uuid/ossp-uuid-cross-compile-fix.patch |
17 | 17 | ||
18 | diff --git a/cmake/BundledOSSPUUID.cmake b/cmake/BundledOSSPUUID.cmake | 18 | diff --git a/cmake/BundledOSSPUUID.cmake b/cmake/BundledOSSPUUID.cmake |
19 | index c4fa1523..1faf2e5c 100644 | 19 | index 747e52c27..fb6e2164d 100644 |
20 | --- a/cmake/BundledOSSPUUID.cmake | 20 | --- a/cmake/BundledOSSPUUID.cmake |
21 | +++ b/cmake/BundledOSSPUUID.cmake | 21 | +++ b/cmake/BundledOSSPUUID.cmake |
22 | @@ -23,10 +23,12 @@ function(use_bundled_osspuuid SOURCE_DIR BINARY_DIR) | 22 | @@ -23,10 +23,12 @@ function(use_bundled_osspuuid SOURCE_DIR BINARY_DIR) |
@@ -33,16 +33,16 @@ index c4fa1523..1faf2e5c 100644 | |||
33 | 33 | ||
34 | # Define byproducts | 34 | # Define byproducts |
35 | set(BYPRODUCTS "lib/libuuid.a" | 35 | set(BYPRODUCTS "lib/libuuid.a" |
36 | @@ -39,7 +41,7 @@ function(use_bundled_osspuuid SOURCE_DIR BINARY_DIR) | 36 | @@ -45,7 +47,7 @@ function(use_bundled_osspuuid SOURCE_DIR BINARY_DIR) |
37 | ENDFOREACH(BYPRODUCT) | 37 | if(APPLE) |
38 | 38 | string(APPEND ADDITIONAL_COMPILER_FLAGS "-isysroot ${CMAKE_OSX_SYSROOT} ") | |
39 | # Build project | 39 | endif() |
40 | - set(CONFIGURE_COMMAND ./configure "CC=${CMAKE_C_COMPILER}" "CXX=${CMAKE_CXX_COMPILER}" "CFLAGS=${PASSTHROUGH_CMAKE_C_FLAGS} -fPIC" "CXXFLAGS=${PASSTHROUGH_CMAKE_CXX_FLAGS} -fPIC" --enable-shared=no --with-cxx --without-perl --without-php --without-pgsql "--prefix=${BINARY_DIR}/thirdparty/ossp-uuid-install") | 40 | - set(CONFIGURE_COMMAND ./configure "CC=${CMAKE_C_COMPILER}" "CXX=${CMAKE_CXX_COMPILER}" "CFLAGS=${PASSTHROUGH_CMAKE_C_FLAGS} ${ADDITIONAL_COMPILER_FLAGS}" "CXXFLAGS=${PASSTHROUGH_CMAKE_CXX_FLAGS} ${ADDITIONAL_COMPILER_FLAGS}" --enable-shared=no --with-cxx --without-perl --without-php --without-pgsql "--prefix=${BINARY_DIR}/thirdparty/ossp-uuid-install") |
41 | + set(CONFIGURE_COMMAND ac_cv_va_copy=C99 ./configure --host=${HOST_SYS} --build=${BUILD_SYS} "CC=${CMAKE_C_COMPILER}" "CXX=${CMAKE_CXX_COMPILER}" "CFLAGS=${PASSTHROUGH_CMAKE_C_FLAGS} -fPIC" "CXXFLAGS=${PASSTHROUGH_CMAKE_CXX_FLAGS} -fPIC" --enable-shared=no --with-cxx --without-perl --without-php --without-pgsql "--prefix=${BINARY_DIR}/thirdparty/ossp-uuid-install") | 41 | + set(CONFIGURE_COMMAND ac_cv_va_copy=C99 ./configure --host=${HOST_SYS} --build=${BUILD_SYS} "CC=${CMAKE_C_COMPILER}" "CXX=${CMAKE_CXX_COMPILER}" "CFLAGS=${PASSTHROUGH_CMAKE_C_FLAGS} -fPIC" "CXXFLAGS=${PASSTHROUGH_CMAKE_CXX_FLAGS} -fPIC" --enable-shared=no --with-cxx --without-perl --without-php --without-pgsql "--prefix=${BINARY_DIR}/thirdparty/ossp-uuid-install") |
42 | |||
42 | string(TOLOWER "${CMAKE_BUILD_TYPE}" build_type) | 43 | string(TOLOWER "${CMAKE_BUILD_TYPE}" build_type) |
43 | if(NOT build_type MATCHES debug) | 44 | if(build_type MATCHES debug) |
44 | list(APPEND CONFIGURE_COMMAND --enable-debug=yes) | 45 | @@ -54,10 +56,8 @@ function(use_bundled_osspuuid SOURCE_DIR BINARY_DIR) |
45 | @@ -47,10 +49,8 @@ function(use_bundled_osspuuid SOURCE_DIR BINARY_DIR) | ||
46 | 46 | ||
47 | ExternalProject_Add( | 47 | ExternalProject_Add( |
48 | ossp-uuid-external | 48 | ossp-uuid-external |
@@ -56,7 +56,7 @@ index c4fa1523..1faf2e5c 100644 | |||
56 | UPDATE_COMMAND "" | 56 | UPDATE_COMMAND "" |
57 | diff --git a/thirdparty/ossp-uuid/ossp-uuid-cross-compile-fix.patch b/thirdparty/ossp-uuid/ossp-uuid-cross-compile-fix.patch | 57 | diff --git a/thirdparty/ossp-uuid/ossp-uuid-cross-compile-fix.patch b/thirdparty/ossp-uuid/ossp-uuid-cross-compile-fix.patch |
58 | new file mode 100644 | 58 | new file mode 100644 |
59 | index 00000000..b8d7b0bb | 59 | index 000000000..b8d7b0bba |
60 | --- /dev/null | 60 | --- /dev/null |
61 | +++ b/thirdparty/ossp-uuid/ossp-uuid-cross-compile-fix.patch | 61 | +++ b/thirdparty/ossp-uuid/ossp-uuid-cross-compile-fix.patch |
62 | @@ -0,0 +1,13 @@ | 62 | @@ -0,0 +1,13 @@ |
@@ -74,5 +74,5 @@ index 00000000..b8d7b0bb | |||
74 | + if [ ".$opt_o" != . ]; then | 74 | + if [ ".$opt_o" != . ]; then |
75 | + if [ ".$opt_t" = .yes ]; then | 75 | + if [ ".$opt_t" = .yes ]; then |
76 | -- | 76 | -- |
77 | 2.25.1 | 77 | 2.34.1 |
78 | 78 | ||
diff --git a/meta-oe/recipes-extended/minifi-cpp/files/0003-Fix-libsodium-build.patch b/meta-oe/recipes-extended/minifi-cpp/files/0003-Fix-libsodium-build.patch index a08962724e..10d9965ef4 100644 --- a/meta-oe/recipes-extended/minifi-cpp/files/0003-Fix-libsodium-build.patch +++ b/meta-oe/recipes-extended/minifi-cpp/files/0003-Fix-libsodium-build.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 1c697e4d75f0045d5364d622960ff8047a4ad3ec Mon Sep 17 00:00:00 2001 | 1 | From a19e548826e65a95a55ac6b9c12a83d3dcc0010d Mon Sep 17 00:00:00 2001 |
2 | From: Yi Zhao <yi.zhao@windriver.com> | 2 | From: Yi Zhao <yi.zhao@windriver.com> |
3 | Date: Tue, 19 Mar 2024 20:56:05 +0800 | 3 | Date: Tue, 19 Mar 2024 20:56:05 +0800 |
4 | Subject: [PATCH] Fix libsodium build | 4 | Subject: [PATCH] Fix libsodium build |
@@ -14,7 +14,7 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | |||
14 | 1 file changed, 2 insertions(+), 4 deletions(-) | 14 | 1 file changed, 2 insertions(+), 4 deletions(-) |
15 | 15 | ||
16 | diff --git a/cmake/BundledLibSodium.cmake b/cmake/BundledLibSodium.cmake | 16 | diff --git a/cmake/BundledLibSodium.cmake b/cmake/BundledLibSodium.cmake |
17 | index 3a3daf41..d851f753 100644 | 17 | index 98d05b737..4f0faa879 100644 |
18 | --- a/cmake/BundledLibSodium.cmake | 18 | --- a/cmake/BundledLibSodium.cmake |
19 | +++ b/cmake/BundledLibSodium.cmake | 19 | +++ b/cmake/BundledLibSodium.cmake |
20 | @@ -58,14 +58,12 @@ function(use_bundled_libsodium SOURCE_DIR BINARY_DIR) | 20 | @@ -58,14 +58,12 @@ function(use_bundled_libsodium SOURCE_DIR BINARY_DIR) |
@@ -26,7 +26,7 @@ index 3a3daf41..d851f753 100644 | |||
26 | 26 | ||
27 | ExternalProject_Add( | 27 | ExternalProject_Add( |
28 | libsodium-external | 28 | libsodium-external |
29 | - URL "${LIBSODIUM_OFFICIAL_MIRROR_URL} ${LIBSODIUM_GITHUB_MIRROR_URL} ${LIBSODIUM_GENTOO_MIRROR_URL}" | 29 | - URL "${LIBSODIUM_OFFICIAL_MIRROR_URL}" "${LIBSODIUM_GITHUB_MIRROR_URL}" "${LIBSODIUM_GENTOO_MIRROR_URL}" |
30 | - URL_HASH ${LIBSODIUM_URL_HASH} | 30 | - URL_HASH ${LIBSODIUM_URL_HASH} |
31 | BUILD_IN_SOURCE true | 31 | BUILD_IN_SOURCE true |
32 | - SOURCE_DIR "${BINARY_DIR}/thirdparty/libsodium-src" | 32 | - SOURCE_DIR "${BINARY_DIR}/thirdparty/libsodium-src" |
@@ -35,5 +35,5 @@ index 3a3daf41..d851f753 100644 | |||
35 | CMAKE_COMMAND "" | 35 | CMAKE_COMMAND "" |
36 | UPDATE_COMMAND "" | 36 | UPDATE_COMMAND "" |
37 | -- | 37 | -- |
38 | 2.25.1 | 38 | 2.34.1 |
39 | 39 | ||
diff --git a/meta-oe/recipes-extended/minifi-cpp/files/0004-Fix-spdlog-build.patch b/meta-oe/recipes-extended/minifi-cpp/files/0004-Fix-spdlog-build.patch deleted file mode 100644 index 177c6adee6..0000000000 --- a/meta-oe/recipes-extended/minifi-cpp/files/0004-Fix-spdlog-build.patch +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | From 8a5fe73f722718aa5c9a467c28a26913771f7208 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Tue, 19 Mar 2024 20:57:37 +0800 | ||
4 | Subject: [PATCH] Fix spdlog build | ||
5 | |||
6 | * Specify CMAKE_INSTALL_LIBDIR to fix multilib build. | ||
7 | * Do not download spdlog source during compile. | ||
8 | |||
9 | Upstream-Status: Inappropriate [embedded specific] | ||
10 | |||
11 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
12 | --- | ||
13 | cmake/BundledSpdlog.cmake | 4 ++-- | ||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/cmake/BundledSpdlog.cmake b/cmake/BundledSpdlog.cmake | ||
17 | index 974cbbaa..c0c45688 100644 | ||
18 | --- a/cmake/BundledSpdlog.cmake | ||
19 | +++ b/cmake/BundledSpdlog.cmake | ||
20 | @@ -35,11 +35,12 @@ function(use_bundled_spdlog SOURCE_DIR BINARY_DIR) | ||
21 | endif() | ||
22 | |||
23 | # Set build options | ||
24 | - set(SPDLOG_SOURCE_DIR "${BINARY_DIR}/thirdparty/spdlog-src") | ||
25 | + set(SPDLOG_SOURCE_DIR "${SOURCE_DIR}/thirdparty/spdlog-src") | ||
26 | set(SPDLOG_INSTALL_DIR "${BINARY_DIR}/thirdparty/spdlog-install") | ||
27 | set(SPDLOG_LIBRARY "${SPDLOG_INSTALL_DIR}/${BYPRODUCT}") | ||
28 | set(SPDLOG_CMAKE_ARGS ${PASSTHROUGH_CMAKE_ARGS} | ||
29 | "-DCMAKE_INSTALL_PREFIX=${SPDLOG_INSTALL_DIR}" | ||
30 | + "-DCMAKE_INSTALL_LIBDIR=${LIBDIR}" | ||
31 | "-DSPDLOG_BUILD_EXAMPLE=OFF" | ||
32 | "-DSPDLOG_BUILD_TESTS=OFF" | ||
33 | "-DSPDLOG_BUILD_TESTING=OFF" | ||
34 | @@ -49,7 +50,6 @@ function(use_bundled_spdlog SOURCE_DIR BINARY_DIR) | ||
35 | # Build project | ||
36 | ExternalProject_Add( | ||
37 | spdlog-external | ||
38 | - URL "https://github.com/gabime/spdlog/archive/v1.8.0.zip" | ||
39 | SOURCE_DIR "${SPDLOG_SOURCE_DIR}" | ||
40 | CMAKE_ARGS ${SPDLOG_CMAKE_ARGS} | ||
41 | BUILD_BYPRODUCTS "${SPDLOG_LIBRARY}" | ||
42 | -- | ||
43 | 2.25.1 | ||
44 | |||
diff --git a/meta-oe/recipes-extended/minifi-cpp/files/0005-Pass-noline-flag-to-flex.patch b/meta-oe/recipes-extended/minifi-cpp/files/0004-Pass-noline-flag-to-flex.patch index 53939131ff..344e8839e7 100644 --- a/meta-oe/recipes-extended/minifi-cpp/files/0005-Pass-noline-flag-to-flex.patch +++ b/meta-oe/recipes-extended/minifi-cpp/files/0004-Pass-noline-flag-to-flex.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 083babbd6c6cc6f31530fbac0227c1d426fb0863 Mon Sep 17 00:00:00 2001 | 1 | From 229137659501ae51774dcb3249f94545bdd6e21f Mon Sep 17 00:00:00 2001 |
2 | From: Yi Zhao <yi.zhao@windriver.com> | 2 | From: Yi Zhao <yi.zhao@windriver.com> |
3 | Date: Tue, 19 Mar 2024 21:00:59 +0800 | 3 | Date: Tue, 19 Mar 2024 21:00:59 +0800 |
4 | Subject: [PATCH] Pass --noline flag to flex | 4 | Subject: [PATCH] Pass --noline flag to flex |
@@ -14,18 +14,18 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | |||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
15 | 15 | ||
16 | diff --git a/extensions/expression-language/CMakeLists.txt b/extensions/expression-language/CMakeLists.txt | 16 | diff --git a/extensions/expression-language/CMakeLists.txt b/extensions/expression-language/CMakeLists.txt |
17 | index 775b4116..84edc617 100644 | 17 | index c179ab3ef..7f507b03a 100644 |
18 | --- a/extensions/expression-language/CMakeLists.txt | 18 | --- a/extensions/expression-language/CMakeLists.txt |
19 | +++ b/extensions/expression-language/CMakeLists.txt | 19 | +++ b/extensions/expression-language/CMakeLists.txt |
20 | @@ -77,7 +77,7 @@ flex_target( | 20 | @@ -103,7 +103,7 @@ flex_target( |
21 | el-scanner | 21 | el-scanner |
22 | ${CMAKE_CURRENT_SOURCE_DIR}/Scanner.ll | 22 | ${CMAKE_CURRENT_SOURCE_DIR}/Scanner.ll |
23 | ${CMAKE_CURRENT_SOURCE_DIR}/Scanner.cpp | 23 | ${CMAKE_BINARY_DIR}/el-generated/Scanner.cpp |
24 | - COMPILE_FLAGS --c++ | 24 | - COMPILE_FLAGS --c++ |
25 | + COMPILE_FLAGS "--c++ --noline" | 25 | + COMPILE_FLAGS "--c++ --noline" |
26 | ) | 26 | ) |
27 | 27 | ||
28 | add_flex_bison_dependency(el-scanner el-parser) | 28 | set(EL_GENERATED_INCLUDE_DIR ${CMAKE_BINARY_DIR}/el-generated) |
29 | -- | 29 | -- |
30 | 2.25.1 | 30 | 2.34.1 |
31 | 31 | ||
diff --git a/meta-oe/recipes-extended/minifi-cpp/files/0005-generateVersion.sh-set-correct-buildrev.patch b/meta-oe/recipes-extended/minifi-cpp/files/0005-generateVersion.sh-set-correct-buildrev.patch new file mode 100644 index 0000000000..2e78b1087e --- /dev/null +++ b/meta-oe/recipes-extended/minifi-cpp/files/0005-generateVersion.sh-set-correct-buildrev.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 1861170c6de3dd851324debf3a6eaeff4d8d8bce Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Fri, 14 Mar 2025 20:26:38 +0800 | ||
4 | Subject: [PATCH] generateVersion.sh: set correct buildrev | ||
5 | |||
6 | Since this script is run outside the source directory, git log can not | ||
7 | get the commit id, so buildrev is not set correctly. Fix the issue by | ||
8 | adding -C option. | ||
9 | |||
10 | Upstream-Status: Inappropriate [embedded specific] | ||
11 | |||
12 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
13 | --- | ||
14 | generateVersion.sh | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/generateVersion.sh b/generateVersion.sh | ||
18 | index ff25afba8..0b50a1693 100755 | ||
19 | --- a/generateVersion.sh | ||
20 | +++ b/generateVersion.sh | ||
21 | @@ -28,7 +28,7 @@ buildident=$8 | ||
22 | date=$(date +%s) | ||
23 | |||
24 | if [ -d "${src_dir}"/.git ]; then | ||
25 | - buildrev=$(git log -1 --pretty=format:"%H") | ||
26 | + buildrev=$(git -C "${src_dir}" log -1 --pretty=format:"%H") | ||
27 | else | ||
28 | buildrev="Unknown" | ||
29 | fi | ||
30 | -- | ||
31 | 2.34.1 | ||
32 | |||
diff --git a/meta-oe/recipes-extended/minifi-cpp/files/0007-CMakeLists.txt-do-not-use-ccache.patch b/meta-oe/recipes-extended/minifi-cpp/files/0006-CMakeLists.txt-do-not-use-ccache.patch index 73a59f2a84..055a3e7b57 100644 --- a/meta-oe/recipes-extended/minifi-cpp/files/0007-CMakeLists.txt-do-not-use-ccache.patch +++ b/meta-oe/recipes-extended/minifi-cpp/files/0006-CMakeLists.txt-do-not-use-ccache.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 44867a8e4100a7296b98e0e850d950d24b980959 Mon Sep 17 00:00:00 2001 | 1 | From bbe5c95ef1755c4804c4561c03cafedeb004cb36 Mon Sep 17 00:00:00 2001 |
2 | From: Yi Zhao <yi.zhao@windriver.com> | 2 | From: Yi Zhao <yi.zhao@windriver.com> |
3 | Date: Thu, 21 Mar 2024 10:18:39 +0800 | 3 | Date: Thu, 21 Mar 2024 10:18:39 +0800 |
4 | Subject: [PATCH] CMakeLists.txt: do not use ccache | 4 | Subject: [PATCH] CMakeLists.txt: do not use ccache |
@@ -11,10 +11,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | |||
11 | 1 file changed, 6 insertions(+), 6 deletions(-) | 11 | 1 file changed, 6 insertions(+), 6 deletions(-) |
12 | 12 | ||
13 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 13 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
14 | index 8a1dd6d91..8a5314544 100644 | 14 | index fc1718dfd..70c94c2ff 100644 |
15 | --- a/CMakeLists.txt | 15 | --- a/CMakeLists.txt |
16 | +++ b/CMakeLists.txt | 16 | +++ b/CMakeLists.txt |
17 | @@ -82,12 +82,12 @@ if (USE_REAL_ODBC_TEST_DRIVER) | 17 | @@ -84,12 +84,12 @@ if (MINIFI_USE_REAL_ODBC_TEST_DRIVER) |
18 | endif() | 18 | endif() |
19 | 19 | ||
20 | # Use ccache if present | 20 | # Use ccache if present |
@@ -31,8 +31,8 @@ index 8a1dd6d91..8a5314544 100644 | |||
31 | +# message("-- Found ccache: ${CCACHE_FOUND}") | 31 | +# message("-- Found ccache: ${CCACHE_FOUND}") |
32 | +#endif(CCACHE_FOUND) | 32 | +#endif(CCACHE_FOUND) |
33 | 33 | ||
34 | # Use gold linker if instructed | 34 | # Check for exec info before we enable the backtrace features. |
35 | if (UNIX AND USE_GOLD_LINKER AND NOT APPLE ) | 35 | CHECK_INCLUDE_FILE("execinfo.h" HAS_EXECINFO) |
36 | -- | 36 | -- |
37 | 2.25.1 | 37 | 2.34.1 |
38 | 38 | ||
diff --git a/meta-oe/recipes-extended/minifi-cpp/files/0006-OsUtils.h-add-missing-header-cstdint-for-int64_t.patch b/meta-oe/recipes-extended/minifi-cpp/files/0006-OsUtils.h-add-missing-header-cstdint-for-int64_t.patch deleted file mode 100644 index 38893e74ac..0000000000 --- a/meta-oe/recipes-extended/minifi-cpp/files/0006-OsUtils.h-add-missing-header-cstdint-for-int64_t.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | From 08d1b4b66fedde97eefb5e3ff6aa98fd02be7c21 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Wed, 20 Mar 2024 10:03:14 +0800 | ||
4 | Subject: [PATCH] OsUtils.h: add missing header <cstdint> for int64_t | ||
5 | |||
6 | Fix build with musl: | ||
7 | libminifi/include/utils/OsUtils.h:31:1: error: 'int64_t' does not name a type | ||
8 | 31 | int64_t getCurrentProcessPhysicalMemoryUsage(); | ||
9 | | ^~~~~~~ | ||
10 | libminifi/include/utils/OsUtils.h:22:1: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'? | ||
11 | 21 | #include <system_error> | ||
12 | +++ |+#include <cstdint> | ||
13 | 22 | | ||
14 | |||
15 | Upstream-Status: Pending | ||
16 | |||
17 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
18 | --- | ||
19 | libminifi/include/utils/OsUtils.h | 1 + | ||
20 | 1 file changed, 1 insertion(+) | ||
21 | |||
22 | diff --git a/libminifi/include/utils/OsUtils.h b/libminifi/include/utils/OsUtils.h | ||
23 | index a7117233..5e623d1a 100644 | ||
24 | --- a/libminifi/include/utils/OsUtils.h | ||
25 | +++ b/libminifi/include/utils/OsUtils.h | ||
26 | @@ -19,6 +19,7 @@ | ||
27 | #include <string> | ||
28 | #include <optional> | ||
29 | #include <system_error> | ||
30 | +#include <cstdint> | ||
31 | |||
32 | struct sockaddr; | ||
33 | |||
34 | -- | ||
35 | 2.25.1 | ||
36 | |||
diff --git a/meta-oe/recipes-extended/minifi-cpp/files/0007-libsodium-aarch64-set-compiler-attributes-after-including-arm_.patch b/meta-oe/recipes-extended/minifi-cpp/files/0007-libsodium-aarch64-set-compiler-attributes-after-including-arm_.patch new file mode 100644 index 0000000000..792a7888e3 --- /dev/null +++ b/meta-oe/recipes-extended/minifi-cpp/files/0007-libsodium-aarch64-set-compiler-attributes-after-including-arm_.patch | |||
@@ -0,0 +1,141 @@ | |||
1 | From 3a59f8e5331bb6be5d298bc5c136a79102196c1d Mon Sep 17 00:00:00 2001 | ||
2 | From: Frank Denis <github@pureftpd.org> | ||
3 | Date: Fri, 20 Oct 2023 13:47:57 +0200 | ||
4 | Subject: [PATCH] aarch64: set compiler attributes *after* including | ||
5 | <arm_neon.h> | ||
6 | |||
7 | Fixes #1321 | ||
8 | |||
9 | Upstream-Status: Backport | ||
10 | [https://github.com/jedisct1/libsodium/commit/8f453f41f8834e0fe47610f2a3e03e696ddb3450] | ||
11 | |||
12 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
13 | --- | ||
14 | thirdparty/libsodium-stable/configure.ac | 11 ++++++----- | ||
15 | .../crypto_aead/aegis128l/aegis128l_armcrypto.c | 12 ++++++------ | ||
16 | .../crypto_aead/aegis256/aegis256_armcrypto.c | 12 ++++++------ | ||
17 | .../aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c | 12 ++++++------ | ||
18 | 4 files changed, 24 insertions(+), 23 deletions(-) | ||
19 | |||
20 | diff --git a/thirdparty/libsodium-stable/configure.ac b/thirdparty/libsodium-stable/configure.ac | ||
21 | index df83ef512..be67d3417 100644 | ||
22 | --- a/thirdparty/libsodium-stable/configure.ac | ||
23 | +++ b/thirdparty/libsodium-stable/configure.ac | ||
24 | @@ -398,11 +398,6 @@ AS_IF([test "x$EMSCRIPTEN" = "x"], [ | ||
25 | have_armcrypto=no | ||
26 | AC_MSG_CHECKING(for ARM crypto instructions set) | ||
27 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[ | ||
28 | - #ifdef __clang__ | ||
29 | - # pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function) | ||
30 | - #elif defined(__GNUC__) | ||
31 | - # pragma GCC target("+simd+crypto") | ||
32 | - #endif | ||
33 | #ifndef __ARM_FEATURE_CRYPTO | ||
34 | # define __ARM_FEATURE_CRYPTO 1 | ||
35 | #endif | ||
36 | @@ -411,6 +406,12 @@ AS_IF([test "x$EMSCRIPTEN" = "x"], [ | ||
37 | #endif | ||
38 | |||
39 | #include <arm_neon.h> | ||
40 | + | ||
41 | + #ifdef __clang__ | ||
42 | + # pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function) | ||
43 | + #elif defined(__GNUC__) | ||
44 | + # pragma GCC target("+simd+crypto") | ||
45 | + #endif | ||
46 | ]], [[ | ||
47 | vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0)); | ||
48 | |||
49 | diff --git a/thirdparty/libsodium-stable/src/libsodium/crypto_aead/aegis128l/aegis128l_armcrypto.c b/thirdparty/libsodium-stable/src/libsodium/crypto_aead/aegis128l/aegis128l_armcrypto.c | ||
50 | index 825de8a1c..a01f60cbe 100644 | ||
51 | --- a/thirdparty/libsodium-stable/src/libsodium/crypto_aead/aegis128l/aegis128l_armcrypto.c | ||
52 | +++ b/thirdparty/libsodium-stable/src/libsodium/crypto_aead/aegis128l/aegis128l_armcrypto.c | ||
53 | @@ -17,12 +17,6 @@ | ||
54 | |||
55 | #include "aegis128l_armcrypto.h" | ||
56 | |||
57 | -#ifdef __clang__ | ||
58 | -#pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function) | ||
59 | -#elif defined(__GNUC__) | ||
60 | -#pragma GCC target("+simd+crypto") | ||
61 | -#endif | ||
62 | - | ||
63 | #ifndef __ARM_FEATURE_CRYPTO | ||
64 | #define __ARM_FEATURE_CRYPTO 1 | ||
65 | #endif | ||
66 | @@ -32,6 +26,12 @@ | ||
67 | |||
68 | #include <arm_neon.h> | ||
69 | |||
70 | +#ifdef __clang__ | ||
71 | +#pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function) | ||
72 | +#elif defined(__GNUC__) | ||
73 | +#pragma GCC target("+simd+crypto") | ||
74 | +#endif | ||
75 | + | ||
76 | #define AES_BLOCK_LENGTH 16 | ||
77 | |||
78 | typedef uint8x16_t aes_block_t; | ||
79 | diff --git a/thirdparty/libsodium-stable/src/libsodium/crypto_aead/aegis256/aegis256_armcrypto.c b/thirdparty/libsodium-stable/src/libsodium/crypto_aead/aegis256/aegis256_armcrypto.c | ||
80 | index e1ebd577a..058e2072b 100644 | ||
81 | --- a/thirdparty/libsodium-stable/src/libsodium/crypto_aead/aegis256/aegis256_armcrypto.c | ||
82 | +++ b/thirdparty/libsodium-stable/src/libsodium/crypto_aead/aegis256/aegis256_armcrypto.c | ||
83 | @@ -17,12 +17,6 @@ | ||
84 | |||
85 | #include "aegis256_armcrypto.h" | ||
86 | |||
87 | -#ifdef __clang__ | ||
88 | -#pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function) | ||
89 | -#elif defined(__GNUC__) | ||
90 | -#pragma GCC target("+simd+crypto") | ||
91 | -#endif | ||
92 | - | ||
93 | #ifndef __ARM_FEATURE_CRYPTO | ||
94 | #define __ARM_FEATURE_CRYPTO 1 | ||
95 | #endif | ||
96 | @@ -32,6 +26,12 @@ | ||
97 | |||
98 | #include <arm_neon.h> | ||
99 | |||
100 | +#ifdef __clang__ | ||
101 | +#pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function) | ||
102 | +#elif defined(__GNUC__) | ||
103 | +#pragma GCC target("+simd+crypto") | ||
104 | +#endif | ||
105 | + | ||
106 | #define AES_BLOCK_LENGTH 16 | ||
107 | |||
108 | typedef uint8x16_t aes_block_t; | ||
109 | diff --git a/thirdparty/libsodium-stable/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c b/thirdparty/libsodium-stable/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c | ||
110 | index 0a5a12811..aa76f5cd1 100644 | ||
111 | --- a/thirdparty/libsodium-stable/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c | ||
112 | +++ b/thirdparty/libsodium-stable/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c | ||
113 | @@ -19,12 +19,6 @@ | ||
114 | #define __vectorcall | ||
115 | #endif | ||
116 | |||
117 | -#ifdef __clang__ | ||
118 | -#pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function) | ||
119 | -#elif defined(__GNUC__) | ||
120 | -#pragma GCC target("+simd+crypto") | ||
121 | -#endif | ||
122 | - | ||
123 | #ifndef __ARM_FEATURE_CRYPTO | ||
124 | #define __ARM_FEATURE_CRYPTO 1 | ||
125 | #endif | ||
126 | @@ -34,6 +28,12 @@ | ||
127 | |||
128 | #include <arm_neon.h> | ||
129 | |||
130 | +#ifdef __clang__ | ||
131 | +#pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function) | ||
132 | +#elif defined(__GNUC__) | ||
133 | +#pragma GCC target("+simd+crypto") | ||
134 | +#endif | ||
135 | + | ||
136 | #define ABYTES crypto_aead_aes256gcm_ABYTES | ||
137 | #define NPUBBYTES crypto_aead_aes256gcm_NPUBBYTES | ||
138 | #define KEYBYTES crypto_aead_aes256gcm_KEYBYTES | ||
139 | -- | ||
140 | 2.34.1 | ||
141 | |||
diff --git a/meta-oe/recipes-extended/minifi-cpp/files/0008-libsodium-aarch64_crypto.patch b/meta-oe/recipes-extended/minifi-cpp/files/0008-libsodium-aarch64_crypto.patch deleted file mode 100644 index c2c51148f6..0000000000 --- a/meta-oe/recipes-extended/minifi-cpp/files/0008-libsodium-aarch64_crypto.patch +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | Move target #pragma after arm_neon.h include | ||
2 | |||
3 | Fix per android/ndk#1945 | ||
4 | |||
5 | If the pragma is done before the header include, | ||
6 | when using clang compiler attribute may apply to the functions in arm_neon.h | ||
7 | |||
8 | Upstream-Status: Submitted [https://github.com/jedisct1/libsodium/pull/1321] | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- a/thirdparty/libsodium-stable/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c | ||
12 | +++ b/thirdparty/libsodium-stable/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c | ||
13 | @@ -19,12 +19,6 @@ | ||
14 | #define __vectorcall | ||
15 | #endif | ||
16 | |||
17 | -#ifdef __clang__ | ||
18 | -#pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function) | ||
19 | -#elif defined(__GNUC__) | ||
20 | -#pragma GCC target("+simd+crypto") | ||
21 | -#endif | ||
22 | - | ||
23 | #ifndef __ARM_FEATURE_CRYPTO | ||
24 | #define __ARM_FEATURE_CRYPTO 1 | ||
25 | #endif | ||
26 | @@ -34,6 +28,12 @@ | ||
27 | |||
28 | #include <arm_neon.h> | ||
29 | |||
30 | +#ifdef __clang__ | ||
31 | +#pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function) | ||
32 | +#elif defined(__GNUC__) | ||
33 | +#pragma GCC target("+simd+crypto") | ||
34 | +#endif | ||
35 | + | ||
36 | #define ABYTES crypto_aead_aes256gcm_ABYTES | ||
37 | #define NPUBBYTES crypto_aead_aes256gcm_NPUBBYTES | ||
38 | #define KEYBYTES crypto_aead_aes256gcm_KEYBYTES | ||
diff --git a/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.15.0.bb b/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.99.1.bb index fca8d9e754..ab08322805 100644 --- a/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.15.0.bb +++ b/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.99.1.bb | |||
@@ -5,66 +5,74 @@ management, focusing on the collection of data at the source of its creation." | |||
5 | HOMEPAGE = "https://nifi.apache.org/minifi/index.html" | 5 | HOMEPAGE = "https://nifi.apache.org/minifi/index.html" |
6 | SECTION = "console/network" | 6 | SECTION = "console/network" |
7 | LICENSE = "Apache-2.0" | 7 | LICENSE = "Apache-2.0" |
8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=c62efdfb90a8aa4cc3bc15f56baa30b7" | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4c5fc3bbd872752266d21f5f167ce297" |
9 | 9 | ||
10 | SRC_URI = "git://github.com/apache/nifi-minifi-cpp.git;protocol=https;branch=main \ | 10 | SRC_URI = "git://github.com/apache/nifi-minifi-cpp.git;protocol=https;branch=main \ |
11 | git://github.com/martinmoene/expected-lite.git;protocol=https;branch=master;name=expected-lite;destsuffix=${S}/thirdparty/expected-lite-src \ | 11 | git://github.com/martinmoene/expected-lite.git;protocol=https;branch=master;name=expected-lite;destsuffix=${S}/thirdparty/expected-lite-src \ |
12 | git://github.com/ericniebler/range-v3.git;protocol=https;branch=master;name=range-v3;destsuffix=${S}/thirdparty/range-v3-src \ | 12 | git://github.com/ericniebler/range-v3.git;protocol=https;branch=master;name=range-v3;destsuffix=${S}/thirdparty/range-v3-src \ |
13 | git://github.com/Neargye/magic_enum.git;protocol=https;branch=master;name=magic-enum;destsuffix=${S}/thirdparty/magic-enum-src \ | 13 | git://github.com/Neargye/magic_enum.git;protocol=https;branch=master;name=magic-enum;destsuffix=${S}/thirdparty/magic-enum-src \ |
14 | git://github.com/jarro2783/cxxopts.git;protocol=https;branch=v2_2;name=cxxopts;destsuffix=${S}/thirdparty/cxxopts-src \ | 14 | git://github.com/p-ranav/argparse.git;protocol=https;branch=master;name=argparse;destsuffix=${S}/thirdparty/argparse-src \ |
15 | git://github.com/gsl-lite/gsl-lite.git;protocol=https;branch=master;name=gsl-lite;destsuffix=${S}/thirdparty/gsl-lite-src \ | 15 | git://github.com/gsl-lite/gsl-lite.git;protocol=https;branch=master;name=gsl-lite;destsuffix=${S}/thirdparty/gsl-lite-src \ |
16 | git://github.com/HowardHinnant/date.git;protocol=https;branch=master;name=date;destsuffix=${S}/thirdparty/date-src \ | 16 | git://github.com/HowardHinnant/date.git;protocol=https;branch=master;name=date;destsuffix=${S}/thirdparty/date-src \ |
17 | git://github.com/chriskohlhoff/asio.git;protocol=https;branch=master;name=asio;destsuffix=${S}/thirdparty/asio-src \ | 17 | git://github.com/chriskohlhoff/asio.git;protocol=https;branch=master;name=asio;destsuffix=${S}/thirdparty/asio-src \ |
18 | git://github.com/fmtlib/fmt.git;protocol=https;branch=master;name=fmt;destsuffix=${S}/thirdparty/fmt-src \ | ||
18 | git://github.com/gabime/spdlog.git;protocol=https;branch=v1.x;name=spdlog;destsuffix=${S}/thirdparty/spdlog-src \ | 19 | git://github.com/gabime/spdlog.git;protocol=https;branch=v1.x;name=spdlog;destsuffix=${S}/thirdparty/spdlog-src \ |
19 | git://github.com/civetweb/civetweb.git;protocol=https;branch=master;name=civetweb;destsuffix=${S}/thirdparty/civetweb-src \ | ||
20 | ${DEBIAN_MIRROR}/main/o/ossp-uuid/ossp-uuid_1.6.2.orig.tar.gz;name=ossp-uuid;subdir=${S}/thirdparty \ | 20 | ${DEBIAN_MIRROR}/main/o/ossp-uuid/ossp-uuid_1.6.2.orig.tar.gz;name=ossp-uuid;subdir=${S}/thirdparty \ |
21 | https://download.libsodium.org/libsodium/releases/libsodium-1.0.19.tar.gz;name=libsodium;subdir=${S}/thirdparty \ | 21 | https://download.libsodium.org/libsodium/releases/libsodium-1.0.19.tar.gz;name=libsodium;subdir=${S}/thirdparty \ |
22 | file://0001-Do-not-use-bundled-packages.patch \ | 22 | file://0001-Do-not-use-bundled-packages.patch \ |
23 | file://0002-Fix-osspuuid-build.patch \ | 23 | file://0002-Fix-osspuuid-build.patch \ |
24 | file://0003-Fix-libsodium-build.patch \ | 24 | file://0003-Fix-libsodium-build.patch \ |
25 | file://0004-Fix-spdlog-build.patch \ | 25 | file://0004-Pass-noline-flag-to-flex.patch \ |
26 | file://0005-Pass-noline-flag-to-flex.patch \ | 26 | file://0005-generateVersion.sh-set-correct-buildrev.patch \ |
27 | file://0006-OsUtils.h-add-missing-header-cstdint-for-int64_t.patch \ | 27 | file://0006-CMakeLists.txt-do-not-use-ccache.patch \ |
28 | file://0007-CMakeLists.txt-do-not-use-ccache.patch \ | 28 | file://0007-libsodium-aarch64-set-compiler-attributes-after-including-arm_.patch \ |
29 | file://0008-libsodium-aarch64_crypto.patch \ | ||
30 | file://0001-libminifi-Rename-mutex_-to-mtx_-member-of-Concurrent.patch \ | ||
31 | file://systemd-volatile.conf \ | 29 | file://systemd-volatile.conf \ |
32 | file://sysvinit-volatile.conf \ | 30 | file://sysvinit-volatile.conf \ |
33 | " | 31 | " |
34 | 32 | ||
35 | SRCREV = "9b55dc0c0f17a190f3e9ade87070a28faf542c25" | 33 | # minifi-cpp: 0.99.1 |
34 | SRCREV = "78d53ed154c71f1fabbaff0366d44ed3b32754e6" | ||
35 | # expected-lite: 0.6.3 | ||
36 | SRCREV_expected-lite = "c8ffab649ba56e43c731b7017a69ddaebe2e1893" | 36 | SRCREV_expected-lite = "c8ffab649ba56e43c731b7017a69ddaebe2e1893" |
37 | # range-v3: 0.12.0 | ||
37 | SRCREV_range-v3 = "a81477931a8aa2ad025c6bda0609f38e09e4d7ec" | 38 | SRCREV_range-v3 = "a81477931a8aa2ad025c6bda0609f38e09e4d7ec" |
38 | SRCREV_magic-enum = "e1ea11a93d0bdf6aae415124ded6126220fa4f28" | 39 | # magic-enum: 0.9.6 |
39 | SRCREV_cxxopts = "302302b30839505703d37fb82f536c53cf9172fa" | 40 | SRCREV_magic-enum = "dd6a39d0ba1852cf06907e0f0573a2a10d23c2ad" |
41 | # argparse: 3.0 | ||
42 | SRCREV_argparse = "af442b4da0cd7a07b56fa709bd16571889dc7fda" | ||
43 | # gsl-lite: 0.41.0 | ||
40 | SRCREV_gsl-lite = "755ba124b54914e672737acace6a9314f59e8d6f" | 44 | SRCREV_gsl-lite = "755ba124b54914e672737acace6a9314f59e8d6f" |
41 | SRCREV_date = "6e921e1b1d21e84a5c82416ba7ecd98e33a436d0" | 45 | # date: 3.0.3 |
46 | SRCREV_date = "5bdb7e6f31fac909c090a46dbd9fea27b6e609a4" | ||
47 | # asio: 1.29.0 | ||
42 | SRCREV_asio = "814f67e730e154547aea3f4d99f709cbdf1ea4a0" | 48 | SRCREV_asio = "814f67e730e154547aea3f4d99f709cbdf1ea4a0" |
43 | SRCREV_spdlog = "7c02e204c92545f869e2f04edaab1f19fe8b19fd" | 49 | # fmt: 11.1.4 |
44 | SRCREV_civetweb = "d7ba35bbb649209c66e582d5a0244ba988a15159" | 50 | SRCREV_fmt = "123913715afeb8a437e6388b4473fcc4753e1c9a" |
51 | # spdlog: 1.15.1 | ||
52 | SRCREV_spdlog = "f355b3d58f7067eee1706ff3c801c2361011f3d5" | ||
45 | 53 | ||
46 | SRCREV_FORMAT .= "_expected-lite_range-v3_magic-enum_cxxopts_gsl-lite_date_asio_spdlog_civetweb" | 54 | SRCREV_FORMAT .= "_expected-lite_range-v3_magic-enum_argparse_gsl-lite_date_asio_fmt_spdlog" |
47 | 55 | ||
56 | # ossp-uuid: 1.6.2 | ||
48 | SRC_URI[ossp-uuid.sha256sum] = "11a615225baa5f8bb686824423f50e4427acd3f70d394765bdff32801f0fd5b0" | 57 | SRC_URI[ossp-uuid.sha256sum] = "11a615225baa5f8bb686824423f50e4427acd3f70d394765bdff32801f0fd5b0" |
58 | # libsodium: 1.0.19 | ||
49 | SRC_URI[libsodium.sha256sum] = "018d79fe0a045cca07331d37bd0cb57b2e838c51bc48fd837a1472e50068bbea" | 59 | SRC_URI[libsodium.sha256sum] = "018d79fe0a045cca07331d37bd0cb57b2e838c51bc48fd837a1472e50068bbea" |
50 | 60 | ||
51 | S = "${UNPACKDIR}/git" | ||
52 | 61 | ||
53 | inherit pkgconfig cmake systemd | 62 | inherit pkgconfig cmake systemd |
54 | 63 | ||
55 | DEPENDS = "virtual/crypt bison-native flex-native flex openssl curl zlib xz bzip2 yaml-cpp" | 64 | DEPENDS = "virtual/crypt bison-native flex-native flex openssl curl zlib xz bzip2 yaml-cpp zstd lz4" |
56 | 65 | ||
57 | OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH" | 66 | OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH" |
58 | 67 | ||
68 | CXXFLAGS:append:toolchain-clang = " -Wno-error=c++11-narrowing-const-reference" | ||
59 | LDFLAGS:append:riscv32 = " -latomic" | 69 | LDFLAGS:append:riscv32 = " -latomic" |
60 | 70 | ||
61 | EXTRA_OECMAKE = " \ | 71 | EXTRA_OECMAKE = " \ |
62 | -DCMAKE_BUILD_TYPE=Release \ | 72 | -DCMAKE_BUILD_TYPE=Release \ |
63 | -DHOST_SYS=${HOST_SYS} -DBUILD_SYS=${BUILD_SYS} \ | 73 | -DHOST_SYS=${HOST_SYS} -DBUILD_SYS=${BUILD_SYS} \ |
64 | -DGCC_AR=${STAGING_BINDIR_TOOLCHAIN}/${AR} \ | ||
65 | -DGCC_RANLIB=${STAGING_BINDIR_TOOLCHAIN}/${RANLIB} \ | ||
66 | -DFLEX_TARGET_ARG_COMPILE_FLAGS='--noline' \ | 74 | -DFLEX_TARGET_ARG_COMPILE_FLAGS='--noline' \ |
67 | -DBISON_TARGET_ARG_COMPILE_FLAGS='--no-lines --file-prefix-map=${S}=${TARGET_DBGSRC_DIR}' \ | 75 | -DBISON_TARGET_ARG_COMPILE_FLAGS='--no-lines --file-prefix-map=${S}=${TARGET_DBGSRC_DIR} --file-prefix-map=${B}=${TARGET_DBGSRC_DIR}' \ |
68 | -DENABLE_ENCRYPT_CONFIG=ON \ | 76 | -DENABLE_ENCRYPT_CONFIG=ON \ |
69 | -DENABLE_LUA_SCRIPTING=OFF \ | 77 | -DENABLE_LUA_SCRIPTING=OFF \ |
70 | -DENABLE_PYTHON_SCRIPTING=OFF \ | 78 | -DENABLE_PYTHON_SCRIPTING=OFF \ |
@@ -73,35 +81,49 @@ EXTRA_OECMAKE = " \ | |||
73 | -DENABLE_GCP=OFF \ | 81 | -DENABLE_GCP=OFF \ |
74 | -DENABLE_KUBERNETES=OFF \ | 82 | -DENABLE_KUBERNETES=OFF \ |
75 | -DENABLE_MQTT=OFF \ | 83 | -DENABLE_MQTT=OFF \ |
84 | -DENABLE_GRAFANA_LOKI=OFF \ | ||
85 | -DENABLE_GRPC_FOR_LOKI=OFF \ | ||
76 | -DENABLE_ELASTICSEARCH=OFF \ | 86 | -DENABLE_ELASTICSEARCH=OFF \ |
77 | -DENABLE_SQL=OFF \ | 87 | -DENABLE_SQL=OFF \ |
78 | -DENABLE_PROMETHEUS=OFF \ | 88 | -DENABLE_PROMETHEUS=OFF \ |
79 | -DENABLE_PROCFS=OFF \ | 89 | -DENABLE_PROCFS=OFF \ |
80 | -DENABLE_SPLUNK=OFF \ | 90 | -DENABLE_SPLUNK=OFF \ |
81 | -DENABLE_OPC=OFF \ | 91 | -DENABLE_OPC=OFF \ |
82 | -DENABLE_LIBRDKAFKA=OFF \ | 92 | -DENABLE_KAFKA=OFF \ |
83 | -DDISABLE_CURL=OFF \ | 93 | -DENABLE_BZIP2=ON \ |
84 | -DDISABLE_BZIP2=OFF \ | 94 | -DENABLE_LZMA=ON \ |
85 | -DDISABLE_LZMA=OFF \ | ||
86 | -DDISABLE_JEMALLOC=ON \ | ||
87 | -DSKIP_TESTS=ON \ | 95 | -DSKIP_TESTS=ON \ |
96 | -DMINIFI_OPENSSL_SOURCE=SYSTEM \ | ||
97 | -DMINIFI_LIBCURL_SOURCE=SYSTEM \ | ||
98 | -DMINIFI_ZSTD_SOURCE=SYSTEM \ | ||
99 | -DMINIFI_BZIP2_SOURCE=SYSTEM \ | ||
100 | -DMINIFI_LIBXML2_SOURCE=SYSTEM \ | ||
101 | -DMINIFI_CATCH2_SOURCE=SYSTEM \ | ||
102 | -DMINIFI_ZLIB_SOURCE=SYSTEM \ | ||
103 | -DMINIFI_FMT_SOURCE=BUILD \ | ||
104 | -DMINIFI_SPDLOG_SOURCE=BUILD \ | ||
88 | -DFETCHCONTENT_SOURCE_DIR_GSL-LITE=${S}/thirdparty/gsl-lite-src \ | 105 | -DFETCHCONTENT_SOURCE_DIR_GSL-LITE=${S}/thirdparty/gsl-lite-src \ |
89 | -DFETCHCONTENT_SOURCE_DIR_DATE_SRC=${S}/thirdparty/date-src \ | 106 | -DFETCHCONTENT_SOURCE_DIR_DATE_SRC=${S}/thirdparty/date-src \ |
90 | -DFETCHCONTENT_SOURCE_DIR_EXPECTED-LITE=${S}/thirdparty/expected-lite-src \ | 107 | -DFETCHCONTENT_SOURCE_DIR_EXPECTED-LITE=${S}/thirdparty/expected-lite-src \ |
91 | -DFETCHCONTENT_SOURCE_DIR_RANGE-V3_SRC=${S}/thirdparty/range-v3-src \ | 108 | -DFETCHCONTENT_SOURCE_DIR_RANGE-V3_SRC=${S}/thirdparty/range-v3-src \ |
92 | -DFETCHCONTENT_SOURCE_DIR_MAGIC_ENUM=${S}/thirdparty/magic-enum-src \ | 109 | -DFETCHCONTENT_SOURCE_DIR_MAGIC_ENUM=${S}/thirdparty/magic-enum-src \ |
93 | -DFETCHCONTENT_SOURCE_DIR_ASIO=${S}/thirdparty/asio-src \ | 110 | -DFETCHCONTENT_SOURCE_DIR_ASIO=${S}/thirdparty/asio-src \ |
94 | -DFETCHCONTENT_SOURCE_DIR_CXXOPTS_SRC=${S}/thirdparty/cxxopts-src \ | 111 | -DFETCHCONTENT_SOURCE_DIR_ARGPARSE=${S}/thirdparty/argparse-src \ |
95 | -DFETCHCONTENT_SOURCE_DIR_CIVETWEB=${S}/thirdparty/civetweb-src \ | 112 | -DFETCHCONTENT_SOURCE_DIR_FMT=${S}/thirdparty/fmt-src \ |
113 | -DFETCHCONTENT_SOURCE_DIR_SPDLOG=${S}/thirdparty/spdlog-src \ | ||
96 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-DENABLE_SYSTEMD=ON', '-DENABLE_SYSTEMD=OFF', d)} \ | 114 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-DENABLE_SYSTEMD=ON', '-DENABLE_SYSTEMD=OFF', d)} \ |
97 | " | 115 | " |
98 | 116 | ||
99 | PACKAGECONFIG ??= "civetweb libarchive rocksdb expression-language" | 117 | PACKAGECONFIG ??= "libarchive expression-language" |
100 | PACKAGECONFIG[civetweb] = "-DDISABLE_CIVET=OFF,-DDISABLE_CIVET=ON" | 118 | |
101 | PACKAGECONFIG[openwsman] = "-DENABLE_OPENWSMAN=ON,-DENABLE_OPENWSMAN=OFF,libxml2" | 119 | # rocksdb is not compatible with libc-musl:powerpc & armv5 |
102 | PACKAGECONFIG[libarchive] = "-DDISABLE_LIBARCHIVE=OFF,-DDISABLE_LIBARCHIVE=ON,libarchive" | 120 | PACKAGECONFIG:remove:libc-musl:powerpc = "rocksdb" |
103 | PACKAGECONFIG[rocksdb] = "-DDISABLE_ROCKSDB=OFF -DBUILD_ROCKSDB=OFF,-DDISABLE_ROCKSDB=ON,rocksdb" | 121 | PACKAGECONFIG:remove:armv5 = "rocksdb" |
104 | PACKAGECONFIG[expression-language] = "-DDISABLE_EXPRESSION_LANGUAGE=OFF, -DDISABLE_EXPRESSION_LANGUAGE=ON" | 122 | |
123 | PACKAGECONFIG[libarchive] = "-DENABLE_LIBARCHIVE=ON,-DENABLE_LIBARCHIVE=OFF,libarchive" | ||
124 | PACKAGECONFIG[expression-language] = "-DENABLE_EXPRESSION_LANGUAGE=ON, -DENABLE_EXPRESSION_LANGUAGE=OFF" | ||
125 | PACKAGECONFIG[civetweb] = "-DENABLE_CIVET=ON -DMINIFI_CIVETWEB_SOURCE=SYSTEM,-DENABLE_CIVET=OFF,civetweb" | ||
126 | PACKAGECONFIG[rocksdb] = "-DENABLE_ROCKSDB=ON -DBUILD_ROCKSDB=OFF -DMINIFI_ROCKSDB_SOURCE=SYSTEM,-DENABLE_ROCKSDB=OFF,rocksdb" | ||
105 | 127 | ||
106 | SYSTEMD_PACKAGES = "minifi-cpp" | 128 | SYSTEMD_PACKAGES = "minifi-cpp" |
107 | SYSTEMD_SERVICE:${PN} = "minifi.service" | 129 | SYSTEMD_SERVICE:${PN} = "minifi.service" |
@@ -141,9 +163,9 @@ do_install() { | |||
141 | install -m 755 ${WORKDIR}/minifi-install/usr/extensions/*.so ${D}${libdir}/minifi-extensions | 163 | install -m 755 ${WORKDIR}/minifi-install/usr/extensions/*.so ${D}${libdir}/minifi-extensions |
142 | 164 | ||
143 | install -m 755 -d ${D}${libexecdir}/minifi-python | 165 | install -m 755 -d ${D}${libexecdir}/minifi-python |
144 | for i in examples google h2o; do | 166 | install -m 755 -d ${D}${libexecdir}/minifi-python-examples |
145 | cp -rf ${WORKDIR}/minifi-install/usr/minifi-python/${i} ${D}${libexecdir}/minifi-python | 167 | cp -rf ${WORKDIR}/minifi-install/usr/minifi-python/* ${D}${libexecdir}/minifi-python/ |
146 | done | 168 | cp -rf ${WORKDIR}/minifi-install/usr/minifi-python-examples/* ${D}${libexecdir}/minifi-python-examples/ |
147 | 169 | ||
148 | sed -i "s|MINIFI_HOME=.*|MINIFI_HOME=${MINIFI_HOME}|g" ${D}${MINIFI_BIN}/minifi.sh | 170 | sed -i "s|MINIFI_HOME=.*|MINIFI_HOME=${MINIFI_HOME}|g" ${D}${MINIFI_BIN}/minifi.sh |
149 | sed -i "s|bin_dir=.*|bin_dir=${MINIFI_BIN}|g" ${D}${MINIFI_BIN}/minifi.sh | 171 | sed -i "s|bin_dir=.*|bin_dir=${MINIFI_BIN}|g" ${D}${MINIFI_BIN}/minifi.sh |
@@ -197,6 +219,7 @@ FILES:${PN}-dev = "" | |||
197 | FILES:${PN} += "${libdir}/libcore-minifi.so \ | 219 | FILES:${PN} += "${libdir}/libcore-minifi.so \ |
198 | ${libdir}/minifi-extensions \ | 220 | ${libdir}/minifi-extensions \ |
199 | ${libexecdir}/minifi-python \ | 221 | ${libexecdir}/minifi-python \ |
222 | ${libexecdir}/minifi-python-examples \ | ||
200 | " | 223 | " |
201 | 224 | ||
202 | INSANE_SKIP:${PN} += "dev-deps" | 225 | INSANE_SKIP:${PN} += "dev-deps" |