diff options
-rw-r--r-- | meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2-dependency.patch | 25 | ||||
-rw-r--r-- | meta-oe/recipes-support/poco/poco/0002-remove-providers-unitialization.patch | 35 | ||||
-rw-r--r-- | meta-oe/recipes-support/poco/poco_1.12.0.bb (renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb) | 11 |
3 files changed, 68 insertions, 3 deletions
diff --git a/meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2-dependency.patch b/meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2-dependency.patch new file mode 100644 index 0000000000..1a9d23cee4 --- /dev/null +++ b/meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2-dependency.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From f049898c8bf058ed187de8e5fab20abeaab1f3b6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alex Fabijanic <alex@pocoproject.org> | ||
3 | Date: Sat, 9 Jul 2022 19:13:04 +0200 | ||
4 | Subject: [PATCH] fix(cmake): PocoFoundationConfig.cmake should now check for | ||
5 | PCRE2 #3677 | ||
6 | |||
7 | Upstream-Status: Backport [https://github.com/pocoproject/poco/issues/3677] | ||
8 | |||
9 | --- | ||
10 | Foundation/cmake/PocoFoundationConfig.cmake | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/Foundation/cmake/PocoFoundationConfig.cmake b/Foundation/cmake/PocoFoundationConfig.cmake | ||
14 | index 46c2d3fc00..82c5788940 100644 | ||
15 | --- a/Foundation/cmake/PocoFoundationConfig.cmake | ||
16 | +++ b/Foundation/cmake/PocoFoundationConfig.cmake | ||
17 | @@ -2,7 +2,7 @@ if(@POCO_UNBUNDLED@) | ||
18 | include(CMakeFindDependencyMacro) | ||
19 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") | ||
20 | find_dependency(ZLIB REQUIRED) | ||
21 | - find_dependency(PCRE REQUIRED) | ||
22 | + find_dependency(PCRE2 REQUIRED) | ||
23 | endif() | ||
24 | |||
25 | include("${CMAKE_CURRENT_LIST_DIR}/PocoFoundationTargets.cmake") | ||
diff --git a/meta-oe/recipes-support/poco/poco/0002-remove-providers-unitialization.patch b/meta-oe/recipes-support/poco/poco/0002-remove-providers-unitialization.patch new file mode 100644 index 0000000000..7d24b79f14 --- /dev/null +++ b/meta-oe/recipes-support/poco/poco/0002-remove-providers-unitialization.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From c976c32e5249cb8a2433e7abfa095c1fe8dc4f8e Mon Sep 17 00:00:00 2001 | ||
2 | From: Alex Fabijanic <alex@pocoproject.org> | ||
3 | Date: Wed, 13 Jul 2022 12:53:52 +0200 | ||
4 | Subject: [PATCH] fix(OpenSSLInitializer): remove providers unitialization | ||
5 | #3562 #3567 | ||
6 | |||
7 | Upstream-Status: Backport [https://github.com/pocoproject/poco/issues/3562] | ||
8 | |||
9 | --- | ||
10 | Crypto/src/OpenSSLInitializer.cpp | 12 ------------ | ||
11 | 1 file changed, 12 deletions(-) | ||
12 | |||
13 | diff --git a/Crypto/src/OpenSSLInitializer.cpp b/Crypto/src/OpenSSLInitializer.cpp | ||
14 | index 4678d22299..c537c3f9c2 100644 | ||
15 | --- a/Crypto/src/OpenSSLInitializer.cpp | ||
16 | +++ b/Crypto/src/OpenSSLInitializer.cpp | ||
17 | @@ -157,18 +157,6 @@ void OpenSSLInitializer::uninitialize() | ||
18 | #endif | ||
19 | delete [] _mutexes; | ||
20 | #endif | ||
21 | - | ||
22 | -#if OPENSSL_VERSION_NUMBER >= 0x30000000L | ||
23 | - OSSL_PROVIDER* provider = nullptr; | ||
24 | - if ((provider = _defaultProvider.exchange(nullptr))) | ||
25 | - { | ||
26 | - OSSL_PROVIDER_unload(provider); | ||
27 | - } | ||
28 | - if ((provider = _legacyProvider.exchange(nullptr))) | ||
29 | - { | ||
30 | - OSSL_PROVIDER_unload(provider); | ||
31 | - } | ||
32 | -#endif | ||
33 | } | ||
34 | } | ||
35 | |||
diff --git a/meta-oe/recipes-support/poco/poco_1.11.3.bb b/meta-oe/recipes-support/poco/poco_1.12.0.bb index 757fa89837..6fff0707d3 100644 --- a/meta-oe/recipes-support/poco/poco_1.11.3.bb +++ b/meta-oe/recipes-support/poco/poco_1.12.0.bb | |||
@@ -6,13 +6,15 @@ LICENSE = "BSL-1.0" | |||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4267f48fc738f50380cbeeb76f95cebc" | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4267f48fc738f50380cbeeb76f95cebc" |
7 | 7 | ||
8 | # These dependencies are required by Foundation | 8 | # These dependencies are required by Foundation |
9 | DEPENDS = "libpcre zlib" | 9 | DEPENDS = "libpcre2 zlib" |
10 | 10 | ||
11 | SRC_URI = " \ | 11 | SRC_URI = " \ |
12 | git://github.com/pocoproject/poco.git;branch=master;protocol=https \ | 12 | git://github.com/pocoproject/poco.git;branch=master;protocol=https \ |
13 | file://0001-fix-unbundled-PCRE2-dependency.patch \ | ||
14 | file://0002-remove-providers-unitialization.patch \ | ||
13 | file://run-ptest \ | 15 | file://run-ptest \ |
14 | " | 16 | " |
15 | SRCREV = "191cbdc97e1d9de023b8a65e0dc844911c06f6a8" | 17 | SRCREV = "4ba8595ed83841d1fa240716b5652adc3772c36b" |
16 | 18 | ||
17 | UPSTREAM_CHECK_GITTAGREGEX = "poco-(?P<pver>\d+(\.\d+)+)" | 19 | UPSTREAM_CHECK_GITTAGREGEX = "poco-(?P<pver>\d+(\.\d+)+)" |
18 | 20 | ||
@@ -23,7 +25,7 @@ inherit cmake ptest | |||
23 | # By default the most commonly used poco components are built | 25 | # By default the most commonly used poco components are built |
24 | # Foundation is built anyway and doesn't need to be listed explicitly | 26 | # Foundation is built anyway and doesn't need to be listed explicitly |
25 | # these don't have dependencies outside oe-core | 27 | # these don't have dependencies outside oe-core |
26 | PACKAGECONFIG ??= "XML JSON MongoDB PDF Util Net NetSSL Crypto JWT Data DataSQLite Zip Encodings Redis" | 28 | PACKAGECONFIG ??= "XML JSON MongoDB PDF Util Net NetSSL Crypto JWT Data DataSQLite Zip Encodings Redis Prometheus" |
27 | 29 | ||
28 | PACKAGECONFIG[XML] = "-DENABLE_XML=ON,-DENABLE_XML=OFF,expat" | 30 | PACKAGECONFIG[XML] = "-DENABLE_XML=ON,-DENABLE_XML=OFF,expat" |
29 | PACKAGECONFIG[JSON] = "-DENABLE_JSON=ON,-DENABLE_JSON=OFF" | 31 | PACKAGECONFIG[JSON] = "-DENABLE_JSON=ON,-DENABLE_JSON=OFF" |
@@ -39,6 +41,7 @@ PACKAGECONFIG[DataSQLite] = "-DENABLE_DATA_SQLITE=ON -DSQLITE3_LIBRARY:STRING=sq | |||
39 | PACKAGECONFIG[Zip] = "-DENABLE_ZIP=ON,-DENABLE_ZIP=OFF" | 41 | PACKAGECONFIG[Zip] = "-DENABLE_ZIP=ON,-DENABLE_ZIP=OFF" |
40 | PACKAGECONFIG[Encodings] = "-DENABLE_ENCODINGS=ON,-DENABLE_ENCODINGS=OFF" | 42 | PACKAGECONFIG[Encodings] = "-DENABLE_ENCODINGS=ON,-DENABLE_ENCODINGS=OFF" |
41 | PACKAGECONFIG[Redis] = "-DENABLE_REDIS=ON,-DENABLE_REDIS=OFF" | 43 | PACKAGECONFIG[Redis] = "-DENABLE_REDIS=ON,-DENABLE_REDIS=OFF" |
44 | PACKAGECONFIG[Prometheus] = "-DENABLE_PROMETHEUS=ON,-DENABLE_PROMETHEUS=OFF" | ||
42 | 45 | ||
43 | # Additional components not build by default, | 46 | # Additional components not build by default, |
44 | # they might have dependencies not included in oe-core | 47 | # they might have dependencies not included in oe-core |
@@ -47,6 +50,8 @@ PACKAGECONFIG[mod_poco] = "-DENABLE_APACHECONNECTOR=ON,-DENABLE_APACHECONNECTOR= | |||
47 | PACKAGECONFIG[CppParser] = "-DENABLE_CPPPARSER=ON,-DENABLE_CPPPARSER=OFF" | 50 | PACKAGECONFIG[CppParser] = "-DENABLE_CPPPARSER=ON,-DENABLE_CPPPARSER=OFF" |
48 | PACKAGECONFIG[DataMySQL] = "-DENABLE_DATA_MYSQL=ON -DMYSQL_LIB:STRING=mysqlclient_r,-DENABLE_DATA_MYSQL=OFF,mariadb" | 51 | PACKAGECONFIG[DataMySQL] = "-DENABLE_DATA_MYSQL=ON -DMYSQL_LIB:STRING=mysqlclient_r,-DENABLE_DATA_MYSQL=OFF,mariadb" |
49 | PACKAGECONFIG[DataODBC] = "-DENABLE_DATA_ODBC=ON,-DENABLE_DATA_ODBC=OFF,libiodbc" | 52 | PACKAGECONFIG[DataODBC] = "-DENABLE_DATA_ODBC=ON,-DENABLE_DATA_ODBC=OFF,libiodbc" |
53 | PACKAGECONFIG[ActiveRecord] = "-DENABLE_ACTIVERECORD=ON,-DENABLE_ACTIVERECORD=OFF" | ||
54 | PACKAGECONFIG[ActiveRecordCompiler] = "-DENABLE_ACTIVERECORD_COMPILER=ON,-DENABLE_ACTIVERECORD_COMPILER=OFF" | ||
50 | PACKAGECONFIG[PageCompiler] = "-DENABLE_PAGECOMPILER=ON,-DENABLE_PAGECOMPILER=OFF" | 55 | PACKAGECONFIG[PageCompiler] = "-DENABLE_PAGECOMPILER=ON,-DENABLE_PAGECOMPILER=OFF" |
51 | PACKAGECONFIG[PageCompilerFile2Page] = "-DENABLE_PAGECOMPILER_FILE2PAGE=ON,-DENABLE_PAGECOMPILER_FILE2PAGE=OFF" | 56 | PACKAGECONFIG[PageCompilerFile2Page] = "-DENABLE_PAGECOMPILER_FILE2PAGE=ON,-DENABLE_PAGECOMPILER_FILE2PAGE=OFF" |
52 | PACKAGECONFIG[SevenZip] = "-DENABLE_SEVENZIP=ON,-DENABLE_SEVENZIP=OFF" | 57 | PACKAGECONFIG[SevenZip] = "-DENABLE_SEVENZIP=ON,-DENABLE_SEVENZIP=OFF" |