summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-extended/minifi-cpp/files/0001-CMakeLists.txt-use-curl-local-source-tarball.patch34
-rw-r--r--meta-oe/recipes-extended/minifi-cpp/files/0002-cmake-LibreSSL.cmake-use-libressl-local-source-tarba.patch32
-rw-r--r--meta-oe/recipes-extended/minifi-cpp/files/0003-cmake-BundledOSSPUUID.cmake-use-ossp-uuid-local-sour.patch34
-rw-r--r--meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.7.0.bb14
4 files changed, 114 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/minifi-cpp/files/0001-CMakeLists.txt-use-curl-local-source-tarball.patch b/meta-oe/recipes-extended/minifi-cpp/files/0001-CMakeLists.txt-use-curl-local-source-tarball.patch
new file mode 100644
index 0000000000..183a006e81
--- /dev/null
+++ b/meta-oe/recipes-extended/minifi-cpp/files/0001-CMakeLists.txt-use-curl-local-source-tarball.patch
@@ -0,0 +1,34 @@
1From 8d99edeefb23c9d7574a0b5a0e2e3f41b0433490 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Thu, 10 Sep 2020 16:14:10 +0800
4Subject: [PATCH] CMakeLists.txt: use curl local source tarball
5
6Do not download curl source during compile.
7
8Upstream-Status: Inappropriate [embedded specific]
9
10Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
11---
12 CMakeLists.txt | 6 +-----
13 1 file changed, 1 insertion(+), 5 deletions(-)
14
15diff --git a/CMakeLists.txt b/CMakeLists.txt
16index 7cd550fb..215a4ef4 100644
17--- a/CMakeLists.txt
18+++ b/CMakeLists.txt
19@@ -314,11 +314,7 @@ endif()
20
21 ExternalProject_Add(
22 curl-external
23- GIT_REPOSITORY "https://github.com/curl/curl.git"
24- GIT_TAG "f3294d9d86e6a7915a967efff2842089b8b0d071" # Version 7.64.0
25- SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/thirdparty/curl-src"
26- LIST_SEPARATOR % # This is needed for passing semicolon-separated lists
27- TLS_VERIFY OFF
28+ SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/curl-7.64.0"
29 CMAKE_ARGS ${PASSTHROUGH_CMAKE_ARGS}
30 "-DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/thirdparty/curl-install"
31 "-DCMAKE_INSTALL_LIBDIR=lib${LIBSUFFIX}"
32--
332.17.1
34
diff --git a/meta-oe/recipes-extended/minifi-cpp/files/0002-cmake-LibreSSL.cmake-use-libressl-local-source-tarba.patch b/meta-oe/recipes-extended/minifi-cpp/files/0002-cmake-LibreSSL.cmake-use-libressl-local-source-tarba.patch
new file mode 100644
index 0000000000..da5ee97540
--- /dev/null
+++ b/meta-oe/recipes-extended/minifi-cpp/files/0002-cmake-LibreSSL.cmake-use-libressl-local-source-tarba.patch
@@ -0,0 +1,32 @@
1From 5a5317044b0039e9e19aabcecb7b666a3f13e136 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Thu, 10 Sep 2020 15:08:19 +0800
4Subject: [PATCH] cmake/LibreSSL.cmake: use libressl local source tarball
5
6Do not download libressl source during compile.
7
8Upstream-Status: Inappropriate [embedded specific]
9
10Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
11---
12 cmake/LibreSSL.cmake | 4 +---
13 1 file changed, 1 insertion(+), 3 deletions(-)
14
15diff --git a/cmake/LibreSSL.cmake b/cmake/LibreSSL.cmake
16index 57319e40..bab30129 100644
17--- a/cmake/LibreSSL.cmake
18+++ b/cmake/LibreSSL.cmake
19@@ -43,9 +43,7 @@ function(use_libre_ssl SOURCE_DIR BINARY_DIR)
20
21 ExternalProject_Add(
22 libressl-portable
23- URL https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.8.3.tar.gz https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.8.3.tar.gz https://gentoo.osuosl.org/distfiles/libressl-2.8.3.tar.gz
24- URL_HASH "SHA256=9b640b13047182761a99ce3e4f000be9687566e0828b4a72709e9e6a3ef98477"
25- SOURCE_DIR "${BINARY_DIR}/thirdparty/libressl-src"
26+ SOURCE_DIR "${SOURCE_DIR}/thirdparty/libressl-2.8.3"
27 PATCH_COMMAND ${PATCH}
28 CMAKE_ARGS ${PASSTHROUGH_CMAKE_ARGS}
29 "-DCMAKE_INSTALL_PREFIX=${BINARY_DIR}/thirdparty/libressl-install"
30--
312.17.1
32
diff --git a/meta-oe/recipes-extended/minifi-cpp/files/0003-cmake-BundledOSSPUUID.cmake-use-ossp-uuid-local-sour.patch b/meta-oe/recipes-extended/minifi-cpp/files/0003-cmake-BundledOSSPUUID.cmake-use-ossp-uuid-local-sour.patch
new file mode 100644
index 0000000000..a39e15b791
--- /dev/null
+++ b/meta-oe/recipes-extended/minifi-cpp/files/0003-cmake-BundledOSSPUUID.cmake-use-ossp-uuid-local-sour.patch
@@ -0,0 +1,34 @@
1From 74ade26f7ccd0dbc4ad97cb3082204118a67c92b Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Thu, 10 Sep 2020 15:12:41 +0800
4Subject: [PATCH] cmake/BundledOSSPUUID.cmake: use ossp-uuid local source
5 tarball
6
7Do not download ossp-uuid source during compile.
8
9Upstream-Status: Inappropriate [embedded specific]
10
11Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
12---
13 cmake/BundledOSSPUUID.cmake | 4 +---
14 1 file changed, 1 insertion(+), 3 deletions(-)
15
16diff --git a/cmake/BundledOSSPUUID.cmake b/cmake/BundledOSSPUUID.cmake
17index 1103156d..0cf4bac0 100644
18--- a/cmake/BundledOSSPUUID.cmake
19+++ b/cmake/BundledOSSPUUID.cmake
20@@ -47,10 +47,8 @@ function(use_bundled_osspuuid SOURCE_DIR BINARY_DIR)
21
22 ExternalProject_Add(
23 ossp-uuid-external
24- URL "https://deb.debian.org/debian/pool/main/o/ossp-uuid/ossp-uuid_1.6.2.orig.tar.gz"
25- URL_HASH "SHA256=11a615225baa5f8bb686824423f50e4427acd3f70d394765bdff32801f0fd5b0"
26 BUILD_IN_SOURCE true
27- SOURCE_DIR "${BINARY_DIR}/thirdparty/ossp-uuid-src"
28+ SOURCE_DIR "${SOURCE_DIR}/thirdparty/uuid-1.6.2"
29 BUILD_COMMAND make
30 CMAKE_COMMAND ""
31 UPDATE_COMMAND ""
32--
332.17.1
34
diff --git a/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.7.0.bb b/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.7.0.bb
index 37036ebbb4..d6f92128ce 100644
--- a/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.7.0.bb
+++ b/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.7.0.bb
@@ -12,6 +12,9 @@ RDEPENDS_${PN} = "python3-core"
12 12
13SRCREV = "aa42957a2e227df41510047cece3cd606dc1cb6a" 13SRCREV = "aa42957a2e227df41510047cece3cd606dc1cb6a"
14SRC_URI = "git://github.com/apache/nifi-minifi-cpp.git \ 14SRC_URI = "git://github.com/apache/nifi-minifi-cpp.git \
15 https://curl.haxx.se/download/curl-7.64.0.tar.bz2;name=curl;subdir=git/thirdparty \
16 https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.8.3.tar.gz;name=libressl;subdir=git/thirdparty \
17 ${DEBIAN_MIRROR}/main/o/ossp-uuid/ossp-uuid_1.6.2.orig.tar.gz;name=ossp-uuid;subdir=git/thirdparty \
15 file://fix-minifi-compile.patch \ 18 file://fix-minifi-compile.patch \
16 file://fix-libressl-compile.patch \ 19 file://fix-libressl-compile.patch \
17 file://fix-libressl-avoid-BSWAP-assembly-for-ARM-v6.patch \ 20 file://fix-libressl-avoid-BSWAP-assembly-for-ARM-v6.patch \
@@ -21,10 +24,21 @@ SRC_URI = "git://github.com/apache/nifi-minifi-cpp.git \
21 file://fix-rocksdb-cross-compile.patch \ 24 file://fix-rocksdb-cross-compile.patch \
22 file://remove_const_due_to_std_lock_guard.patch \ 25 file://remove_const_due_to_std_lock_guard.patch \
23 file://0001-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch \ 26 file://0001-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch \
27 file://0001-CMakeLists.txt-use-curl-local-source-tarball.patch \
28 file://0002-cmake-LibreSSL.cmake-use-libressl-local-source-tarba.patch \
29 file://0003-cmake-BundledOSSPUUID.cmake-use-ossp-uuid-local-sour.patch \
24 file://minifi.service \ 30 file://minifi.service \
25 file://systemd-volatile.conf \ 31 file://systemd-volatile.conf \
26 file://sysvinit-volatile.conf \ 32 file://sysvinit-volatile.conf \
27 " 33 "
34
35SRC_URI[curl.md5sum] = "d0bcc586873cfef08b4b9594e5395a33"
36SRC_URI[curl.sha256sum] = "d573ba1c2d1cf9d8533fadcce480d778417964e8d04ccddcc76e591d544cf2eb"
37SRC_URI[libressl.md5sum] = "0f1127bd21b4aa8495a910379c2ad936"
38SRC_URI[libressl.sha256sum] = "9b640b13047182761a99ce3e4f000be9687566e0828b4a72709e9e6a3ef98477"
39SRC_URI[ossp-uuid.md5sum] = "5db0d43a9022a6ebbbc25337ae28942f"
40SRC_URI[ossp-uuid.sha256sum] = "11a615225baa5f8bb686824423f50e4427acd3f70d394765bdff32801f0fd5b0"
41
28S = "${WORKDIR}/git" 42S = "${WORKDIR}/git"
29 43
30inherit pkgconfig cmake systemd 44inherit pkgconfig cmake systemd