poco: upgrade 1.11.3 -> 1.12.0
PATCH 1/1 poco: upgrade 1.11.3 -> 1.12.0
- switch from PCRE -> PCRE2
- add Prometheus library
- add option to enable/disable ActiveRecord (disabled by default)
---
.../0001-fix-unbundled-PCRE2-dependency.patch | 25 +++++++++++++
...0002-remove-providers-unitialization.patch | 35 +++++++++++++++++++
.../poco/{poco_1.11.3.bb => poco_1.12.0.bb} | 11 ++++--
3 files changed, 68 insertions(+), 3 deletions(-)
create mode 100644 meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2-dependency.patch
create mode 100644 meta-oe/recipes-support/poco/poco/0002-remove-providers-unitialization.patch
rename meta-oe/recipes-support/poco/{poco_1.11.3.bb => poco_1.12.0.bb} (89%)meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2-dependency.patch new file +25 -0
@@ -0,0 +1,25 @@ +From f049898c8bf058ed187de8e5fab20abeaab1f3b6 Mon Sep 17 00:00:00 2001 +From: Alex Fabijanic <[email protected]> +Date: Sat, 9 Jul 2022 19:13:04 +0200 +Subject: [PATCH] fix(cmake): PocoFoundationConfig.cmake should now check for + PCRE2 #3677 + +Upstream-Status: Backport [https://github.com/pocoproject/poco/issues/3677] + +--- + Foundation/cmake/PocoFoundationConfig.cmake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Foundation/cmake/PocoFoundationConfig.cmake b/Foundation/cmake/PocoFoundationConfig.cmake +index 46c2d3fc00..82c5788940 100644 +--- a/Foundation/cmake/PocoFoundationConfig.cmake ++++ b/Foundation/cmake/PocoFoundationConfig.cmake +@@ -2,7 +2,7 @@ if(@POCO_UNBUNDLED@) + include(CMakeFindDependencyMacro) + list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") + find_dependency(ZLIB REQUIRED) +- find_dependency(PCRE REQUIRED) ++ find_dependency(PCRE2 REQUIRED) + endif() + + include("${CMAKE_CURRENT_LIST_DIR}/PocoFoundationTargets.cmake")
meta-oe/recipes-support/poco/poco/0002-remove-providers-unitialization.patch new file +35 -0
@@ -0,0 +1,35 @@ +From c976c32e5249cb8a2433e7abfa095c1fe8dc4f8e Mon Sep 17 00:00:00 2001 +From: Alex Fabijanic <[email protected]> +Date: Wed, 13 Jul 2022 12:53:52 +0200 +Subject: [PATCH] fix(OpenSSLInitializer): remove providers unitialization + #3562 #3567 + +Upstream-Status: Backport [https://github.com/pocoproject/poco/issues/3562] + +--- + Crypto/src/OpenSSLInitializer.cpp | 12 ------------ + 1 file changed, 12 deletions(-) + +diff --git a/Crypto/src/OpenSSLInitializer.cpp b/Crypto/src/OpenSSLInitializer.cpp +index 4678d22299..c537c3f9c2 100644 +--- a/Crypto/src/OpenSSLInitializer.cpp ++++ b/Crypto/src/OpenSSLInitializer.cpp +@@ -157,18 +157,6 @@ void OpenSSLInitializer::uninitialize() + #endif + delete [] _mutexes; + #endif +- +-#if OPENSSL_VERSION_NUMBER >= 0x30000000L +- OSSL_PROVIDER* provider = nullptr; +- if ((provider = _defaultProvider.exchange(nullptr))) +- { +- OSSL_PROVIDER_unload(provider); +- } +- if ((provider = _legacyProvider.exchange(nullptr))) +- { +- OSSL_PROVIDER_unload(provider); +- } +-#endif + } + } +
meta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +8 -3
@@ -6,13 +6,15 @@ LICENSE = "BSL-1.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=4267f48fc738f50380cbeeb76f95cebc" # These dependencies are required by Foundation -DEPENDS = "libpcre zlib" +DEPENDS = "libpcre2 zlib" SRC_URI = " \ git://github.com/pocoproject/poco.git;branch=master;protocol=https \ + file://0001-fix-unbundled-PCRE2-dependency.patch \ + file://0002-remove-providers-unitialization.patch \ file://run-ptest \ " -SRCREV = "191cbdc97e1d9de023b8a65e0dc844911c06f6a8" +SRCREV = "4ba8595ed83841d1fa240716b5652adc3772c36b" UPSTREAM_CHECK_GITTAGREGEX = "poco-(?P<pver>\d+(\.\d+)+)"
@@ -23,7 +25,7 @@ inherit cmake ptest # By default the most commonly used poco components are built # Foundation is built anyway and doesn't need to be listed explicitly # these don't have dependencies outside oe-core -PACKAGECONFIG ??= "XML JSON MongoDB PDF Util Net NetSSL Crypto JWT Data DataSQLite Zip Encodings Redis" +PACKAGECONFIG ??= "XML JSON MongoDB PDF Util Net NetSSL Crypto JWT Data DataSQLite Zip Encodings Redis Prometheus" PACKAGECONFIG[XML] = "-DENABLE_XML=ON,-DENABLE_XML=OFF,expat" PACKAGECONFIG[JSON] = "-DENABLE_JSON=ON,-DENABLE_JSON=OFF"
@@ -39,6 +41,7 @@ PACKAGECONFIG[DataSQLite] = "-DENABLE_DATA_SQLITE=ON -DSQLITE3_LIBRARY:STRING=sq PACKAGECONFIG[Zip] = "-DENABLE_ZIP=ON,-DENABLE_ZIP=OFF" PACKAGECONFIG[Encodings] = "-DENABLE_ENCODINGS=ON,-DENABLE_ENCODINGS=OFF" PACKAGECONFIG[Redis] = "-DENABLE_REDIS=ON,-DENABLE_REDIS=OFF" +PACKAGECONFIG[Prometheus] = "-DENABLE_PROMETHEUS=ON,-DENABLE_PROMETHEUS=OFF" # Additional components not build by default, # they might have dependencies not included in oe-core
@@ -47,6 +50,8 @@ PACKAGECONFIG[mod_poco] = "-DENABLE_APACHECONNECTOR=ON,-DENABLE_APACHECONNECTOR= PACKAGECONFIG[CppParser] = "-DENABLE_CPPPARSER=ON,-DENABLE_CPPPARSER=OFF" PACKAGECONFIG[DataMySQL] = "-DENABLE_DATA_MYSQL=ON -DMYSQL_LIB:STRING=mysqlclient_r,-DENABLE_DATA_MYSQL=OFF,mariadb" PACKAGECONFIG[DataODBC] = "-DENABLE_DATA_ODBC=ON,-DENABLE_DATA_ODBC=OFF,libiodbc" +PACKAGECONFIG[ActiveRecord] = "-DENABLE_ACTIVERECORD=ON,-DENABLE_ACTIVERECORD=OFF" +PACKAGECONFIG[ActiveRecordCompiler] = "-DENABLE_ACTIVERECORD_COMPILER=ON,-DENABLE_ACTIVERECORD_COMPILER=OFF" PACKAGECONFIG[PageCompiler] = "-DENABLE_PAGECOMPILER=ON,-DENABLE_PAGECOMPILER=OFF" PACKAGECONFIG[PageCompilerFile2Page] = "-DENABLE_PAGECOMPILER_FILE2PAGE=ON,-DENABLE_PAGECOMPILER_FILE2PAGE=OFF" PACKAGECONFIG[SevenZip] = "-DENABLE_SEVENZIP=ON,-DENABLE_SEVENZIP=OFF"
Signature · 1 line
2.34.3
Hello Raj,
Would it be possible to put it into kirkstone as well?
Thanks,
Andrej
Quoted 174 lines · Andrej Valek
- switch from PCRE -> PCRE2
- add Prometheus library
- add option to enable/disable ActiveRecord (disabled by default)Signed-off-by Andrej Valek <[email protected]>---
.../0001-fix-unbundled-PCRE2-dependency.patch | 25 +++++++++++++ ...0002-remove-providers-unitialization.patch | 35
+++++++++++++++++++
.../poco/{poco_1.11.3.bb => poco_1.12.0.bb} | 11 ++++--3 files changed, 68 insertions(+), 3 deletions(-)create mode 100644 meta-oe/recipes-support/poco/poco/0001-fix- unbundled-PCRE2-dependency.patch
create mode 100644 meta-oe/recipes-support/poco/poco/0002-remove- providers-unitialization.patch
rename meta-oe/recipes-support/poco/{poco_1.11.3.bb => poco_1.12.0.bb} (89%)(quoted diff) +0
-0PCRE2-dependency.patch b/meta-oe/recipes-support/poco/poco/0001-fix- unbundled-PCRE2-dependency.patch
new file mode 100644
index 000000000..1a9d23ceemeta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +0
-0dependency.patch
meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +1
-0@@ -0,0 +1,25 @@ +From f049898c8bf058ed187de8e5fab20abeaab1f3b6 Mon Sep 17 00:00:002001
meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +3
-0+From: Alex Fabijanic <[email protected]> +Date: Sat, 9 Jul 2022 19:13:04 +0200 +Subject: [PATCH] fix(cmake): PocoFoundationConfig.cmake should nowcheck for
+ PCRE2 #3677meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +2
-0+ +Upstream-Status: Backport[https://github.com/pocoproject/poco/issues/3677]
meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +6
-0+ +--- + Foundation/cmake/PocoFoundationConfig.cmake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Foundation/cmake/PocoFoundationConfig.cmakeb/Foundation/cmake/PocoFoundationConfig.cmake
meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +12
-0+index 46c2d3fc00..82c5788940 100644 +--- a/Foundation/cmake/PocoFoundationConfig.cmake ++++ b/Foundation/cmake/PocoFoundationConfig.cmake +@@ -2,7 +2,7 @@ if(@POCO_UNBUNDLED@) + include(CMakeFindDependencyMacro) + list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") + find_dependency(ZLIB REQUIRED) +- find_dependency(PCRE REQUIRED) ++ find_dependency(PCRE2 REQUIRED) + endif() + + include("${CMAKE_CURRENT_LIST_DIR}/PocoFoundationTargets.cmake")(quoted diff) +0
-0unitialization.patch b/meta-oe/recipes-support/poco/poco/0002-remove- providers-unitialization.patch
new file mode 100644
index 000000000..7d24b79f1meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +0
-0unitialization.patch
meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +1
-0@@ -0,0 +1,35 @@ +From c976c32e5249cb8a2433e7abfa095c1fe8dc4f8e Mon Sep 17 00:00:002001
meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +3
-0+From: Alex Fabijanic <[email protected]> +Date: Wed, 13 Jul 2022 12:53:52 +0200 +Subject: [PATCH] fix(OpenSSLInitializer): remove providersunitialization
+ #3562 #3567meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +2
-0+ +Upstream-Status: Backport[https://github.com/pocoproject/poco/issues/3562]
meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +6
-0+ +--- + Crypto/src/OpenSSLInitializer.cpp | 12 ------------ + 1 file changed, 12 deletions(-) + +diff --git a/Crypto/src/OpenSSLInitializer.cppb/Crypto/src/OpenSSLInitializer.cpp
meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +22
-0+index 4678d22299..c537c3f9c2 100644 +--- a/Crypto/src/OpenSSLInitializer.cpp ++++ b/Crypto/src/OpenSSLInitializer.cpp +@@ -157,18 +157,6 @@ void OpenSSLInitializer::uninitialize() + #endif + delete [] _mutexes; + #endif +- +-#if OPENSSL_VERSION_NUMBER >= 0x30000000L +- OSSL_PROVIDER* provider = nullptr; +- if ((provider = _defaultProvider.exchange(nullptr))) +- { +- OSSL_PROVIDER_unload(provider); +- } +- if ((provider = _legacyProvider.exchange(nullptr))) +- { +- OSSL_PROVIDER_unload(provider); +- } +-#endif + } + } +meta- renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +0
-0oe/recipes-support/poco/poco_1.12.0.bb similarity index 89%
rename from meta-oe/recipes-support/poco/poco_1.11.3.bb rename to meta-oe/recipes-support/poco/poco_1.12.0.bb index757fa8983..6fff0707d100644meta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +0
-0@@ -6,13 +6,15 @@ LICENSE = "BSL-1.0"LIC_FILES_CHKSUM = "file://LICENSE;md5=4267f48fc738f50380cbeeb76f95cebc"
# These dependencies are required by Foundationmeta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +1
-1-DEPENDS = "libpcre zlib" +DEPENDS = "libpcre2 zlib"
SRC_URI = " \git://github.com/pocoproject/poco.git;branch=master;protocol=https\
+ file://0001-fix-unbundled-PCRE2-dependency.patch \
+ file://0002-remove-providers-unitialization.patch \
file://run-ptest \
"meta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +1
-1-SRCREV = "191cbdc97e1d9de023b8a65e0dc844911c06f6a8" +SRCREV = "4ba8595ed83841d1fa240716b5652adc3772c36b"
UPSTREAM_CHECK_GITTAGREGEX = "poco-(?P<pver>\d+(\.\d+)+)"meta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +0
-0@@ -23,7 +25,7 @@ inherit cmake ptest # By default the most commonly used poco components are built # Foundation is built anyway and doesn't need to be listedexplicitly
# these don't have dependencies outside oe-core -PACKAGECONFIG ??= "XML JSON MongoDB PDF Util Net NetSSL Crypto JWT Data DataSQLite Zip Encodings Redis" +PACKAGECONFIG ??= "XML JSON MongoDB PDF Util Net NetSSL Crypto JWT Data DataSQLite Zip Encodings Redis Prometheus" PACKAGECONFIG[XML] = "-DENABLE_XML=ON,-DENABLE_XML=OFF,expat" PACKAGECONFIG[JSON] = "-DENABLE_JSON=ON,-DENABLE_JSON=OFF"meta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +0
-0@@ -39,6 +41,7 @@ PACKAGECONFIG[DataSQLite] = "-DENABLE_DATA_SQLITE=ON -DSQLITE3_LIBRARY:STRING=sq PACKAGECONFIG[Zip] = "-DENABLE_ZIP=ON,-DENABLE_ZIP=OFF" PACKAGECONFIG[Encodings] = "-DENABLE_ENCODINGS=ON,- DENABLE_ENCODINGS=OFF"
PACKAGECONFIG[Redis] = "-DENABLE_REDIS=ON,-DENABLE_REDIS=OFF" +PACKAGECONFIG[Prometheus] = "-DENABLE_PROMETHEUS=ON,- DENABLE_PROMETHEUS=OFF"
# Additional components not build by default,# they might have dependencies not included in oe-coremeta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +0
-0@@ -47,6 +50,8 @@ PACKAGECONFIG[mod_poco] = "-DENABLE_APACHECONNECTOR=ON,-DENABLE_APACHECONNECTOR= PACKAGECONFIG[CppParser] = "-DENABLE_CPPPARSER=ON,- DENABLE_CPPPARSER=OFF"
PACKAGECONFIG[DataMySQL] = "-DENABLE_DATA_MYSQL=ON - DMYSQL_LIB:STRING=mysqlclient_r,-DENABLE_DATA_MYSQL=OFF,mariadb" PACKAGECONFIG[DataODBC] = "-DENABLE_DATA_ODBC=ON,- DENABLE_DATA_ODBC=OFF,libiodbc" +PACKAGECONFIG[ActiveRecord] = "-DENABLE_ACTIVERECORD=ON,- DENABLE_ACTIVERECORD=OFF" +PACKAGECONFIG[ActiveRecordCompiler] = "- DENABLE_ACTIVERECORD_COMPILER=ON,-DENABLE_ACTIVERECORD_COMPILER=OFF" PACKAGECONFIG[PageCompiler] = "-DENABLE_PAGECOMPILER=ON,- DENABLE_PAGECOMPILER=OFF" PACKAGECONFIG[PageCompilerFile2Page] = "- DENABLE_PAGECOMPILER_FILE2PAGE=ON,- DENABLE_PAGECOMPILER_FILE2PAGE=OFF" PACKAGECONFIG[SevenZip] = "-DENABLE_SEVENZIP=ON,- DENABLE_SEVENZIP=OFF"
Major version upgrades usually are avoided in release backports. Looking towards What Armin says
Quoted 184 lines · Andrej
Hello Raj,
Would it be possible to put it into kirkstone as well?
Thanks,
AndrejQuoted 174 lines · Andrej Valek
- switch from PCRE -> PCRE2
- add Prometheus library
- add option to enable/disable ActiveRecord (disabled by default)Signed-off-by Andrej Valek <[email protected]>--- .../0001-fix-unbundled-PCRE2-dependency.patch | 25 +++++++++++++ ...0002-remove-providers-unitialization.patch | 35 +++++++++++++++++++ .../poco/{poco_1.11.3.bb => poco_1.12.0.bb} | 11 ++++-- 3 files changed, 68 insertions(+), 3 deletions(-) create mode 100644 meta-oe/recipes-support/poco/poco/0001-fix- unbundled-PCRE2-dependency.patch create mode 100644 meta-oe/recipes-support/poco/poco/0002-remove- providers-unitialization.patch rename meta-oe/recipes-support/poco/{poco_1.11.3.bb =>poco_1.12.0.bb} (89%)
(quoted diff) +0
-0PCRE2-dependency.patch b/meta-oe/recipes-support/poco/poco/0001-fix- unbundled-PCRE2-dependency.patch
new file mode 100644
index 000000000..1a9d23ceemeta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +0
-0dependency.patch
meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +1
-0@@ -0,0 +1,25 @@ +From f049898c8bf058ed187de8e5fab20abeaab1f3b6 Mon Sep 17 00:00:002001
meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +3
-0+From: Alex Fabijanic <[email protected]> +Date: Sat, 9 Jul 2022 19:13:04 +0200 +Subject: [PATCH] fix(cmake): PocoFoundationConfig.cmake should nowcheck for
+ PCRE2 #3677meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +2
-0+ +Upstream-Status: Backport[https://github.com/pocoproject/poco/issues/3677]
meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +6
-0+ +--- + Foundation/cmake/PocoFoundationConfig.cmake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Foundation/cmake/PocoFoundationConfig.cmakeb/Foundation/cmake/PocoFoundationConfig.cmake
meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +12
-0+index 46c2d3fc00..82c5788940 100644 +--- a/Foundation/cmake/PocoFoundationConfig.cmake ++++ b/Foundation/cmake/PocoFoundationConfig.cmake +@@ -2,7 +2,7 @@ if(@POCO_UNBUNDLED@) + include(CMakeFindDependencyMacro) + list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") + find_dependency(ZLIB REQUIRED) +- find_dependency(PCRE REQUIRED) ++ find_dependency(PCRE2 REQUIRED) + endif() + + include("${CMAKE_CURRENT_LIST_DIR}/PocoFoundationTargets.cmake")(quoted diff) +0
-0unitialization.patch b/meta-oe/recipes-support/poco/poco/0002-remove- providers-unitialization.patch
new file mode 100644
index 000000000..7d24b79f1meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +0
-0unitialization.patch
meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +1
-0@@ -0,0 +1,35 @@ +From c976c32e5249cb8a2433e7abfa095c1fe8dc4f8e Mon Sep 17 00:00:002001
meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +3
-0+From: Alex Fabijanic <[email protected]> +Date: Wed, 13 Jul 2022 12:53:52 +0200 +Subject: [PATCH] fix(OpenSSLInitializer): remove providersunitialization
+ #3562 #3567meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +2
-0+ +Upstream-Status: Backport[https://github.com/pocoproject/poco/issues/3562]
meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +6
-0+ +--- + Crypto/src/OpenSSLInitializer.cpp | 12 ------------ + 1 file changed, 12 deletions(-) + +diff --git a/Crypto/src/OpenSSLInitializer.cppb/Crypto/src/OpenSSLInitializer.cpp
meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +22
-0+index 4678d22299..c537c3f9c2 100644 +--- a/Crypto/src/OpenSSLInitializer.cpp ++++ b/Crypto/src/OpenSSLInitializer.cpp +@@ -157,18 +157,6 @@ void OpenSSLInitializer::uninitialize() + #endif + delete [] _mutexes; + #endif +- +-#if OPENSSL_VERSION_NUMBER >= 0x30000000L +- OSSL_PROVIDER* provider = nullptr; +- if ((provider = _defaultProvider.exchange(nullptr))) +- { +- OSSL_PROVIDER_unload(provider); +- } +- if ((provider = _legacyProvider.exchange(nullptr))) +- { +- OSSL_PROVIDER_unload(provider); +- } +-#endif + } + } +meta- renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +0
-0oe/recipes-support/poco/poco_1.12.0.bb similarity index 89%
rename from meta-oe/recipes-support/poco/poco_1.11.3.bb rename to meta-oe/recipes-support/poco/poco_1.12.0.bb index757fa8983..6fff0707d100644meta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +0
-0@@ -6,13 +6,15 @@ LICENSE = "BSL-1.0" LIC_FILES_CHKSUM ="file://LICENSE;md5=4267f48fc738f50380cbeeb76f95cebc"
# These dependencies are required by Foundation
meta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +1
-1-DEPENDS = "libpcre zlib" +DEPENDS = "libpcre2 zlib" SRC_URI = " \
git://github.com/pocoproject/poco.git;branch=master;protocol=https\meta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +3
-1+ file://0001-fix-unbundled-PCRE2-dependency.patch \ + file://0002-remove-providers-unitialization.patch \ file://run-ptest \ " -SRCREV = "191cbdc97e1d9de023b8a65e0dc844911c06f6a8" +SRCREV = "4ba8595ed83841d1fa240716b5652adc3772c36b" UPSTREAM_CHECK_GITTAGREGEX = "poco-(?P<pver>\d+(\.\d+)+)"@@ -23,7 +25,7 @@ inherit cmake ptest # By default the most commonly used poco components are built # Foundation is built anyway and doesn't need to be listedexplicitly
# these don't have dependencies outside oe-core -PACKAGECONFIG ??= "XML JSON MongoDB PDF Util Net NetSSL Crypto JWT Data DataSQLite Zip Encodings Redis" +PACKAGECONFIG ??= "XML JSON MongoDB PDF Util Net NetSSL Crypto JWT Data DataSQLite Zip Encodings Redis Prometheus"PACKAGECONFIG[XML] = "-DENABLE_XML=ON,-DENABLE_XML=OFF,expat" PACKAGECONFIG[JSON] = "-DENABLE_JSON=ON,-DENABLE_JSON=OFF"
meta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +0
-0@@ -39,6 +41,7 @@ PACKAGECONFIG[DataSQLite] = "-DENABLE_DATA_SQLITE=ON -DSQLITE3_LIBRARY:STRING=sq
PACKAGECONFIG[Zip] = "-DENABLE_ZIP=ON,-DENABLE_ZIP=OFF" PACKAGECONFIG[Encodings] = "-DENABLE_ENCODINGS=ON,-
DENABLE_ENCODINGS=OFF"
PACKAGECONFIG[Redis] = "-DENABLE_REDIS=ON,-DENABLE_REDIS=OFF"
+PACKAGECONFIG[Prometheus] = "-DENABLE_PROMETHEUS=ON,- DENABLE_PROMETHEUS=OFF"# Additional components not build by default,
# they might have dependencies not included in oe-coremeta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +0
-0@@ -47,6 +50,8 @@ PACKAGECONFIG[mod_poco] = "-DENABLE_APACHECONNECTOR=ON,-DENABLE_APACHECONNECTOR=
PACKAGECONFIG[CppParser] = "-DENABLE_CPPPARSER=ON,-
DENABLE_CPPPARSER=OFF"
PACKAGECONFIG[DataMySQL] = "-DENABLE_DATA_MYSQL=ON -
DMYSQL_LIB:STRING=mysqlclient_r,-DENABLE_DATA_MYSQL=OFF,mariadb"
PACKAGECONFIG[DataODBC] = "-DENABLE_DATA_ODBC=ON,-
DENABLE_DATA_ODBC=OFF,libiodbc" +PACKAGECONFIG[ActiveRecord] = "-DENABLE_ACTIVERECORD=ON,- DENABLE_ACTIVERECORD=OFF" +PACKAGECONFIG[ActiveRecordCompiler] = "- DENABLE_ACTIVERECORD_COMPILER=ON,-DENABLE_ACTIVERECORD_COMPILER=OFF"
PACKAGECONFIG[PageCompiler] = "-DENABLE_PAGECOMPILER=ON,-
DENABLE_PAGECOMPILER=OFF"
PACKAGECONFIG[PageCompilerFile2Page] = "-
DENABLE_PAGECOMPILER_FILE2PAGE=ON,- DENABLE_PAGECOMPILER_FILE2PAGE=OFF"
PACKAGECONFIG[SevenZip] = "-DENABLE_SEVENZIP=ON,-
DENABLE_SEVENZIP=OFF"
it needs to link to libatomic on rv32 see
https://errors.yoctoproject.org/Errors/Details/660351/
Quoted 150 lines · Andrej Valek
- switch from PCRE -> PCRE2
- add Prometheus library
- add option to enable/disable ActiveRecord (disabled by default)Signed-off-by Andrej Valek <[email protected]>--- .../0001-fix-unbundled-PCRE2-dependency.patch | 25 +++++++++++++ ...0002-remove-providers-unitialization.patch | 35 +++++++++++++++++++ .../poco/{poco_1.11.3.bb => poco_1.12.0.bb} | 11 ++++-- 3 files changed, 68 insertions(+), 3 deletions(-) create mode 100644 meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2-dependency.patch create mode 100644 meta-oe/recipes-support/poco/poco/0002-remove-providers-unitialization.patch rename meta-oe/recipes-support/poco/{poco_1.11.3.bb => poco_1.12.0.bb} (89%)meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2-dependency.patch new file +25
-0@@ -0,0 +1,25 @@ +From f049898c8bf058ed187de8e5fab20abeaab1f3b6 Mon Sep 17 00:00:00 2001 +From: Alex Fabijanic <[email protected]> +Date: Sat, 9 Jul 2022 19:13:04 +0200 +Subject: [PATCH] fix(cmake): PocoFoundationConfig.cmake should now check for + PCRE2 #3677 + +Upstream-Status: Backport [https://github.com/pocoproject/poco/issues/3677] + +--- + Foundation/cmake/PocoFoundationConfig.cmake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Foundation/cmake/PocoFoundationConfig.cmake b/Foundation/cmake/PocoFoundationConfig.cmake +index 46c2d3fc00..82c5788940 100644 +--- a/Foundation/cmake/PocoFoundationConfig.cmake ++++ b/Foundation/cmake/PocoFoundationConfig.cmake +@@ -2,7 +2,7 @@ if(@POCO_UNBUNDLED@) + include(CMakeFindDependencyMacro) + list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") + find_dependency(ZLIB REQUIRED) +- find_dependency(PCRE REQUIRED) ++ find_dependency(PCRE2 REQUIRED) + endif() + + include("${CMAKE_CURRENT_LIST_DIR}/PocoFoundationTargets.cmake")meta-oe/recipes-support/poco/poco/0002-remove-providers-unitialization.patch new file +35
-0@@ -0,0 +1,35 @@ +From c976c32e5249cb8a2433e7abfa095c1fe8dc4f8e Mon Sep 17 00:00:00 2001 +From: Alex Fabijanic <[email protected]> +Date: Wed, 13 Jul 2022 12:53:52 +0200 +Subject: [PATCH] fix(OpenSSLInitializer): remove providers unitialization + #3562 #3567 + +Upstream-Status: Backport [https://github.com/pocoproject/poco/issues/3562] + +--- + Crypto/src/OpenSSLInitializer.cpp | 12 ------------ + 1 file changed, 12 deletions(-) + +diff --git a/Crypto/src/OpenSSLInitializer.cpp b/Crypto/src/OpenSSLInitializer.cpp +index 4678d22299..c537c3f9c2 100644 +--- a/Crypto/src/OpenSSLInitializer.cpp ++++ b/Crypto/src/OpenSSLInitializer.cpp +@@ -157,18 +157,6 @@ void OpenSSLInitializer::uninitialize() + #endif + delete [] _mutexes; + #endif +- +-#if OPENSSL_VERSION_NUMBER >= 0x30000000L +- OSSL_PROVIDER* provider = nullptr; +- if ((provider = _defaultProvider.exchange(nullptr))) +- { +- OSSL_PROVIDER_unload(provider); +- } +- if ((provider = _legacyProvider.exchange(nullptr))) +- { +- OSSL_PROVIDER_unload(provider); +- } +-#endif + } + } +meta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +8
-4@@ -6,13 +6,15 @@ LICENSE = "BSL-1.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=4267f48fc738f50380cbeeb76f95cebc" # These dependencies are required by Foundation -DEPENDS = "libpcre zlib" +DEPENDS = "libpcre2 zlib" SRC_URI = " \ git://github.com/pocoproject/poco.git;branch=master;protocol=https \ + file://0001-fix-unbundled-PCRE2-dependency.patch \ + file://0002-remove-providers-unitialization.patch \ file://run-ptest \ " -SRCREV = "191cbdc97e1d9de023b8a65e0dc844911c06f6a8" +SRCREV = "4ba8595ed83841d1fa240716b5652adc3772c36b" UPSTREAM_CHECK_GITTAGREGEX = "poco-(?P<pver>\d+(\.\d+)+)"@@ -23,7 +25,7 @@ inherit cmake ptest # By default the most commonly used poco components are built # Foundation is built anyway and doesn't need to be listed explicitly # these don't have dependencies outside oe-core -PACKAGECONFIG ??= "XML JSON MongoDB PDF Util Net NetSSL Crypto JWT Data DataSQLite Zip Encodings Redis" +PACKAGECONFIG ??= "XML JSON MongoDB PDF Util Net NetSSL Crypto JWT Data DataSQLite Zip Encodings Redis Prometheus" PACKAGECONFIG[XML] = "-DENABLE_XML=ON,-DENABLE_XML=OFF,expat" PACKAGECONFIG[JSON] = "-DENABLE_JSON=ON,-DENABLE_JSON=OFF"@@ -39,6 +41,7 @@ PACKAGECONFIG[DataSQLite] = "-DENABLE_DATA_SQLITE=ON -DSQLITE3_LIBRARY:STRING=sq PACKAGECONFIG[Zip] = "-DENABLE_ZIP=ON,-DENABLE_ZIP=OFF" PACKAGECONFIG[Encodings] = "-DENABLE_ENCODINGS=ON,-DENABLE_ENCODINGS=OFF" PACKAGECONFIG[Redis] = "-DENABLE_REDIS=ON,-DENABLE_REDIS=OFF" +PACKAGECONFIG[Prometheus] = "-DENABLE_PROMETHEUS=ON,-DENABLE_PROMETHEUS=OFF" # Additional components not build by default, # they might have dependencies not included in oe-core@@ -47,6 +50,8 @@ PACKAGECONFIG[mod_poco] = "-DENABLE_APACHECONNECTOR=ON,-DENABLE_APACHECONNECTOR= PACKAGECONFIG[CppParser] = "-DENABLE_CPPPARSER=ON,-DENABLE_CPPPARSER=OFF" PACKAGECONFIG[DataMySQL] = "-DENABLE_DATA_MYSQL=ON -DMYSQL_LIB:STRING=mysqlclient_r,-DENABLE_DATA_MYSQL=OFF,mariadb" PACKAGECONFIG[DataODBC] = "-DENABLE_DATA_ODBC=ON,-DENABLE_DATA_ODBC=OFF,libiodbc" +PACKAGECONFIG[ActiveRecord] = "-DENABLE_ACTIVERECORD=ON,-DENABLE_ACTIVERECORD=OFF" +PACKAGECONFIG[ActiveRecordCompiler] = "-DENABLE_ACTIVERECORD_COMPILER=ON,-DENABLE_ACTIVERECORD_COMPILER=OFF" PACKAGECONFIG[PageCompiler] = "-DENABLE_PAGECOMPILER=ON,-DENABLE_PAGECOMPILER=OFF" PACKAGECONFIG[PageCompilerFile2Page] = "-DENABLE_PAGECOMPILER_FILE2PAGE=ON,-DENABLE_PAGECOMPILER_FILE2PAGE=OFF" PACKAGECONFIG[SevenZip] = "-DENABLE_SEVENZIP=ON,-DENABLE_SEVENZIP=OFF" --2.34.3
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#97820): https://lists.openembedded.org/g/openembedded-devel/message/97820
Mute This Topic: https://lists.openembedded.org/mt/92356100/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Thanks,
To be honest, I didn't test it on this architecture. It's fine, that you've fixed it already
https://github.com/openembedded/meta-openembedded/commit/c7415233074c467f12d7100635499a3e1c50fb7c
.
Btw, new Ppoco version (1.12.1) have been released, but it has only 2 fixes, which we have patched already.
Regards,
Andrej
Quoted 196 lines · Khem Raj
it needs to link to libatomic on rv32 see
https://errors.yoctoproject.org/Errors/Details/660351/
Quoted 190 lines · Andrej Valek
- switch from PCRE -> PCRE2
- add Prometheus library
- add option to enable/disable ActiveRecord (disabled by default)Signed-off-by Andrej Valek <[email protected]>---
.../0001-fix-unbundled-PCRE2-dependency.patch | 25 +++++++++++++ ...0002-remove-providers-unitialization.patch | 35
+++++++++++++++++++
.../poco/{poco_1.11.3.bb => poco_1.12.0.bb} | 11 ++++--3 files changed, 68 insertions(+), 3 deletions(-)create mode 100644 meta-oe/recipes-support/poco/poco/0001-fix- unbundled-PCRE2-dependency.patch
create mode 100644 meta-oe/recipes-support/poco/poco/0002-remove- providers-unitialization.patch
rename meta-oe/recipes-support/poco/{poco_1.11.3.bb => poco_1.12.0.bb} (89%)(quoted diff) +0
-0PCRE2-dependency.patch b/meta-oe/recipes-support/poco/poco/0001-fix- unbundled-PCRE2-dependency.patch
new file mode 100644
index 000000000..1a9d23ceemeta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +0
-0dependency.patch
meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +1
-0@@ -0,0 +1,25 @@ +From f049898c8bf058ed187de8e5fab20abeaab1f3b6 Mon Sep 17 00:00:002001
meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +3
-0+From: Alex Fabijanic <[email protected]> +Date: Sat, 9 Jul 2022 19:13:04 +0200 +Subject: [PATCH] fix(cmake): PocoFoundationConfig.cmake should nowcheck for
+ PCRE2 #3677meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +2
-0+ +Upstream-Status: Backport[https://github.com/pocoproject/poco/issues/3677]
meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +6
-0+ +--- + Foundation/cmake/PocoFoundationConfig.cmake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Foundation/cmake/PocoFoundationConfig.cmakeb/Foundation/cmake/PocoFoundationConfig.cmake
meta-oe/recipes-support/poco/poco/0001-fix-unbundled-PCRE2- new file +12
-0+index 46c2d3fc00..82c5788940 100644 +--- a/Foundation/cmake/PocoFoundationConfig.cmake ++++ b/Foundation/cmake/PocoFoundationConfig.cmake +@@ -2,7 +2,7 @@ if(@POCO_UNBUNDLED@) + include(CMakeFindDependencyMacro) + list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") + find_dependency(ZLIB REQUIRED) +- find_dependency(PCRE REQUIRED) ++ find_dependency(PCRE2 REQUIRED) + endif() + + include("${CMAKE_CURRENT_LIST_DIR}/PocoFoundationTargets.cmake")(quoted diff) +0
-0unitialization.patch b/meta-oe/recipes-support/poco/poco/0002-remove- providers-unitialization.patch
new file mode 100644
index 000000000..7d24b79f1meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +0
-0unitialization.patch
meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +1
-0@@ -0,0 +1,35 @@ +From c976c32e5249cb8a2433e7abfa095c1fe8dc4f8e Mon Sep 17 00:00:002001
meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +3
-0+From: Alex Fabijanic <[email protected]> +Date: Wed, 13 Jul 2022 12:53:52 +0200 +Subject: [PATCH] fix(OpenSSLInitializer): remove providersunitialization
+ #3562 #3567meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +2
-0+ +Upstream-Status: Backport[https://github.com/pocoproject/poco/issues/3562]
meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +6
-0+ +--- + Crypto/src/OpenSSLInitializer.cpp | 12 ------------ + 1 file changed, 12 deletions(-) + +diff --git a/Crypto/src/OpenSSLInitializer.cppb/Crypto/src/OpenSSLInitializer.cpp
meta-oe/recipes-support/poco/poco/0002-remove-providers- new file +22
-0+index 4678d22299..c537c3f9c2 100644 +--- a/Crypto/src/OpenSSLInitializer.cpp ++++ b/Crypto/src/OpenSSLInitializer.cpp +@@ -157,18 +157,6 @@ void OpenSSLInitializer::uninitialize() + #endif + delete [] _mutexes; + #endif +- +-#if OPENSSL_VERSION_NUMBER >= 0x30000000L +- OSSL_PROVIDER* provider = nullptr; +- if ((provider = _defaultProvider.exchange(nullptr))) +- { +- OSSL_PROVIDER_unload(provider); +- } +- if ((provider = _legacyProvider.exchange(nullptr))) +- { +- OSSL_PROVIDER_unload(provider); +- } +-#endif + } + } +meta- renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +0
-0oe/recipes-support/poco/poco_1.12.0.bb similarity index 89%
rename from meta-oe/recipes-support/poco/poco_1.11.3.bb rename to meta-oe/recipes-support/poco/poco_1.12.0.bb index757fa8983..6fff0707d100644meta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +0
-0@@ -6,13 +6,15 @@ LICENSE = "BSL-1.0"LIC_FILES_CHKSUM = "file://LICENSE;md5=4267f48fc738f50380cbeeb76f95cebc"
# These dependencies are required by Foundation
meta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +1
-1-DEPENDS = "libpcre zlib" +DEPENDS = "libpcre2 zlib"SRC_URI = " \
git://github.com/pocoproject/poco.git;branch=master;protocol=https\
+ file://0001-fix-unbundled-PCRE2-dependency.patch \
+ file://0002-remove-providers-unitialization.patch \
file://run-ptest \
"meta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +1
-1-SRCREV = "191cbdc97e1d9de023b8a65e0dc844911c06f6a8" +SRCREV = "4ba8595ed83841d1fa240716b5652adc3772c36b"UPSTREAM_CHECK_GITTAGREGEX = "poco-(?P<pver>\d+(\.\d+)+)"
meta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +0
-0@@ -23,7 +25,7 @@ inherit cmake ptest # By default the most commonly used poco components are built # Foundation is built anyway and doesn't need to be listedexplicitly
# these don't have dependencies outside oe-core -PACKAGECONFIG ??= "XML JSON MongoDB PDF Util Net NetSSL Crypto JWT Data DataSQLite Zip Encodings Redis" +PACKAGECONFIG ??= "XML JSON MongoDB PDF Util Net NetSSL Crypto JWT Data DataSQLite Zip Encodings Redis Prometheus"PACKAGECONFIG[XML] = "-DENABLE_XML=ON,-DENABLE_XML=OFF,expat" PACKAGECONFIG[JSON] = "-DENABLE_JSON=ON,-DENABLE_JSON=OFF"
meta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +0
-0@@ -39,6 +41,7 @@ PACKAGECONFIG[DataSQLite] = "-DENABLE_DATA_SQLITE=ON -DSQLITE3_LIBRARY:STRING=sq PACKAGECONFIG[Zip] = "-DENABLE_ZIP=ON,-DENABLE_ZIP=OFF" PACKAGECONFIG[Encodings] = "-DENABLE_ENCODINGS=ON,- DENABLE_ENCODINGS=OFF"
PACKAGECONFIG[Redis] = "-DENABLE_REDIS=ON,-DENABLE_REDIS=OFF" +PACKAGECONFIG[Prometheus] = "-DENABLE_PROMETHEUS=ON,- DENABLE_PROMETHEUS=OFF"# Additional components not build by default,
# they might have dependencies not included in oe-coremeta-oe/recipes-support/poco/poco_1.12.0.bb renamed from meta-oe/recipes-support/poco/poco_1.11.3.bb +0
-0@@ -47,6 +50,8 @@ PACKAGECONFIG[mod_poco] = "-DENABLE_APACHECONNECTOR=ON,-DENABLE_APACHECONNECTOR= PACKAGECONFIG[CppParser] = "-DENABLE_CPPPARSER=ON,- DENABLE_CPPPARSER=OFF"
PACKAGECONFIG[DataMySQL] = "-DENABLE_DATA_MYSQL=ON - DMYSQL_LIB:STRING=mysqlclient_r,-DENABLE_DATA_MYSQL=OFF,mariadb" PACKAGECONFIG[DataODBC] = "-DENABLE_DATA_ODBC=ON,- DENABLE_DATA_ODBC=OFF,libiodbc" +PACKAGECONFIG[ActiveRecord] = "-DENABLE_ACTIVERECORD=ON,- DENABLE_ACTIVERECORD=OFF" +PACKAGECONFIG[ActiveRecordCompiler] = "- DENABLE_ACTIVERECORD_COMPILER=ON,-DENABLE_ACTIVERECORD_COMPILER=OFF" PACKAGECONFIG[PageCompiler] = "-DENABLE_PAGECOMPILER=ON,- DENABLE_PAGECOMPILER=OFF" PACKAGECONFIG[PageCompilerFile2Page] = "- DENABLE_PAGECOMPILER_FILE2PAGE=ON,- DENABLE_PAGECOMPILER_FILE2PAGE=OFF" PACKAGECONFIG[SevenZip] = "-DENABLE_SEVENZIP=ON,- DENABLE_SEVENZIP=OFF"
--
2.34.3-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#97820):
https://lists.openembedded.org/g/openembedded-devel/message/97820
Mute This Topic: https://lists.openembedded.org/mt/92356100/1997914
Group Owner: [email protected] Unsubscribe:
https://lists.openembedded.org/g/openembedded-devel/unsub [
[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-