Skip to content

Commit

Permalink
[poco] Update version to 1.14.0 (microsoft#42751)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankXie05 authored Dec 19, 2024
1 parent 14ff626 commit 38bf1ef
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 70 deletions.
10 changes: 5 additions & 5 deletions ports/poco/0001-static-pcre.patch
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
diff --git a/Foundation/CMakeLists.txt b/Foundation/CMakeLists.txt
index f504bc1..226dadb 100644
index 5898d22..d8df9dc 100644
--- a/Foundation/CMakeLists.txt
+++ b/Foundation/CMakeLists.txt
@@ -109,6 +109,23 @@ set_target_properties(Foundation
@@ -101,6 +101,23 @@ set_target_properties(Foundation
if(POCO_UNBUNDLED)
target_link_libraries(Foundation PUBLIC Pcre2::Pcre2 ZLIB::ZLIB)
target_link_libraries(Foundation PUBLIC Pcre2::Pcre2 ZLIB::ZLIB Utf8Proc::Utf8Proc)
target_compile_definitions(Foundation PUBLIC POCO_UNBUNDLED)
+ add_definitions(
+ -D_pcre2_utf8_table1=_poco_pcre2_utf8_table1
Expand All @@ -23,6 +23,6 @@ index f504bc1..226dadb 100644
+ -D_pcre2_utt_names_8=_poco_pcre2_utt_names_8
+ -D_pcre2_utt_size_8=_poco_pcre2_utt_size_8
+ )
else()
target_compile_definitions(Foundation PUBLIC UTF8PROC_STATIC)
endif(POCO_UNBUNDLED)

target_include_directories(Foundation
38 changes: 11 additions & 27 deletions ports/poco/0003-fix-dependency.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c552091..8842c76 100644
index 861c27c..d2701ce 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -90,8 +90,6 @@ option(FORCE_OPENSSL "Force usage of OpenSSL even under windows" OFF)
@@ -80,8 +80,6 @@ option(ENABLE_NETSSL_WIN "Enable NetSSL Windows" OFF)

if(ENABLE_CRYPTO OR ENABLE_NETSSL OR ENABLE_JWT)
find_package(OpenSSL REQUIRED)
Expand All @@ -11,7 +11,7 @@ index c552091..8842c76 100644
endif()

if(OPENSSL_FOUND)
@@ -121,24 +119,19 @@ else()
@@ -111,24 +109,19 @@ else()
option(ENABLE_APACHECONNECTOR "Enable ApacheConnector" OFF)
endif()

Expand Down Expand Up @@ -44,7 +44,7 @@ index c552091..8842c76 100644
endif()

if(PostgreSQL_FOUND)
@@ -223,6 +216,9 @@ include(DefinePlatformSpecifc)
@@ -260,6 +253,9 @@ include(DefinePlatformSpecific)
# Collect the built libraries and include dirs, the will be used to create the PocoConfig.cmake file
set(Poco_COMPONENTS "")

Expand All @@ -54,7 +54,7 @@ index c552091..8842c76 100644
if(ENABLE_TESTS)
add_subdirectory(CppUnit)
set(ENABLE_XML ON CACHE BOOL "Enable XML" FORCE)
@@ -351,8 +347,11 @@ if(EXISTS ${PROJECT_SOURCE_DIR}/Prometheus AND ENABLE_PROMETHEUS)
@@ -392,8 +388,11 @@ if(EXISTS ${PROJECT_SOURCE_DIR}/Prometheus AND ENABLE_PROMETHEUS)
list(APPEND Poco_COMPONENTS "Prometheus")
endif()

Expand All @@ -68,27 +68,11 @@ index c552091..8842c76 100644
list(APPEND Poco_COMPONENTS "PDF")
endif()

@@ -492,15 +491,6 @@ install(
Devel
)

-if(POCO_UNBUNDLED)
- install(FILES cmake/FindPCRE2.cmake
- DESTINATION "${PocoConfigPackageLocation}")
- install(FILES cmake/V39/FindEXPAT.cmake
- DESTINATION "${PocoConfigPackageLocation}/V39")
- install(FILES cmake/V313/FindSQLite3.cmake
- DESTINATION "${PocoConfigPackageLocation}/V313")
-endif()
-
message(STATUS "CMake ${CMAKE_VERSION} successfully configured ${PROJECT_NAME} using ${CMAKE_GENERATOR} generator")
message(STATUS "${PROJECT_NAME} package version: ${PROJECT_VERSION}")
if(BUILD_SHARED_LIBS)
diff --git a/Data/CMakeLists.txt b/Data/CMakeLists.txt
index 0772af6..ec82d76 100644
index 95e5019..d7bd537 100644
--- a/Data/CMakeLists.txt
+++ b/Data/CMakeLists.txt
@@ -45,7 +45,7 @@ else(ENABLE_DATA_SQLITE)
@@ -73,7 +73,7 @@ else(ENABLE_DATA_SQLITE)
message(STATUS "SQLite Support Disabled")
endif()

Expand All @@ -98,7 +82,7 @@ index 0772af6..ec82d76 100644
add_subdirectory(MySQL)
else()
diff --git a/Data/MySQL/CMakeLists.txt b/Data/MySQL/CMakeLists.txt
index ce411cf..5a30b7c 100644
index 0ea8701..3c8a426 100644
--- a/Data/MySQL/CMakeLists.txt
+++ b/Data/MySQL/CMakeLists.txt
@@ -21,7 +21,7 @@ set_target_properties(DataMySQL
Expand All @@ -124,7 +108,7 @@ index 2386590..81b2c8e 100644
#endif

diff --git a/Data/SQLite/CMakeLists.txt b/Data/SQLite/CMakeLists.txt
index 3a176d7..d8055cb 100644
index 7141112..0c73beb 100644
--- a/Data/SQLite/CMakeLists.txt
+++ b/Data/SQLite/CMakeLists.txt
@@ -7,7 +7,7 @@ file(GLOB_RECURSE HDRS_G "include/*.h")
Expand All @@ -136,7 +120,7 @@ index 3a176d7..d8055cb 100644
else()
# sqlite3
POCO_SOURCES(SQLITE_SRCS sqlite3
@@ -43,7 +43,7 @@ target_include_directories(DataSQLite
@@ -39,7 +39,7 @@ target_include_directories(DataSQLite
)

if(POCO_UNBUNDLED)
Expand All @@ -146,7 +130,7 @@ index 3a176d7..d8055cb 100644
POCO_UNBUNDLED
SQLITE_THREADSAFE=1
diff --git a/XML/CMakeLists.txt b/XML/CMakeLists.txt
index 123657a..9856c55 100644
index cf66250..89e6c8f 100644
--- a/XML/CMakeLists.txt
+++ b/XML/CMakeLists.txt
@@ -20,7 +20,7 @@ endif()
Expand Down
10 changes: 5 additions & 5 deletions ports/poco/0005-fix-error-c3861.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
diff --git a/XML/include/Poco/XML/ParserEngine.h b/XML/include/Poco/XML/ParserEngine.h
index e0c8455..363654c 100644
--- a/XML/include/Poco/XML/ParserEngine.h
+++ b/XML/include/Poco/XML/ParserEngine.h
diff --git a/XML/src/ParserEngine.h b/XML/src/ParserEngine.h
index f74b553..c638778 100644
--- a/XML/src/ParserEngine.h
+++ b/XML/src/ParserEngine.h
@@ -19,6 +19,7 @@

#include "Poco/XML/XML.h"
#if defined(POCO_UNBUNDLED)
+#include <expat_config.h>
#include <expat.h>
#else
#include "Poco/XML/expat.h"
#include "expat.h"
28 changes: 7 additions & 21 deletions ports/poco/0007-find-pcre2.patch
Original file line number Diff line number Diff line change
@@ -1,42 +1,28 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8842c76..b887168 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -491,6 +491,11 @@ install(
Devel
)

+if(POCO_UNBUNDLED)
+ install(FILES cmake/FindPCRE2.cmake
+ DESTINATION "${PocoConfigPackageLocation}")
+endif()
+
message(STATUS "CMake ${CMAKE_VERSION} successfully configured ${PROJECT_NAME} using ${CMAKE_GENERATOR} generator")
message(STATUS "${PROJECT_NAME} package version: ${PROJECT_VERSION}")
if(BUILD_SHARED_LIBS)
diff --git a/Foundation/CMakeLists.txt b/Foundation/CMakeLists.txt
index 226dadb..a3765a7 100644
index d8df9dc..fe2b000 100644
--- a/Foundation/CMakeLists.txt
+++ b/Foundation/CMakeLists.txt
@@ -35,8 +35,11 @@ POCO_MESSAGES(SRCS Logging src/pocomsg.mc)
@@ -27,9 +27,12 @@ POCO_MESSAGES(SRCS Logging src/pocomsg.mc)
# If POCO_UNBUNDLED is enabled we try to find the required packages
# The configuration will fail if the packages are not found
if(POCO_UNBUNDLED)
- find_package(PCRE2 REQUIRED)
find_package(ZLIB REQUIRED)
- find_package(Utf8Proc REQUIRED)
+ find_package(unofficial-utf8proc CONFIG REQUIRED)
+ include(SelectLibraryConfigurations)
+ find_library(PCRE2_LIBRARY_DEBUG NAMES pcre2-8d pcre2-8-staticd HINTS ${INSTALLED_LIB_PATH})
+ find_library(PCRE2_LIBRARY_RELEASE NAMES pcre2-8 pcre2-8-static HINTS ${INSTALLED_LIB_PATH})
+ select_library_configurations(PCRE2)

#HACK: Unicode.cpp requires functions from these files. The can't be taken from the library
POCO_SOURCES(SRCS RegExp
@@ -107,7 +110,7 @@ set_target_properties(Foundation
@@ -99,7 +102,7 @@ set_target_properties(Foundation
)

if(POCO_UNBUNDLED)
- target_link_libraries(Foundation PUBLIC Pcre2::Pcre2 ZLIB::ZLIB)
+ target_link_libraries(Foundation PUBLIC ${PCRE2_LIBRARY} ZLIB::ZLIB)
- target_link_libraries(Foundation PUBLIC Pcre2::Pcre2 ZLIB::ZLIB Utf8Proc::Utf8Proc)
+ target_link_libraries(Foundation PUBLIC ${PCRE2_LIBRARY} ZLIB::ZLIB utf8proc)
target_compile_definitions(Foundation PUBLIC POCO_UNBUNDLED)
add_definitions(
-D_pcre2_utf8_table1=_poco_pcre2_utf8_table1
Expand Down
3 changes: 1 addition & 2 deletions ports/poco/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO pocoproject/poco
REF "poco-${VERSION}-release"
SHA512 084064fb462c9e7993d069ebdf395802af900ed92c5b294465a2c246162bb86caa3505985de329e8110d3e9fb3bc39ae9536d523843729d4ed5ce00c35289d92
SHA512 4475a0ede5d06e4ce9537295fec92fa39b8fd5635d1cfb38498be4f707bc62b4a8b57672d2a15b557114e4115cc45480d27d0c856b7bd982eeec7adad9ff2582
HEAD_REF devel
PATCHES
# Fix embedded copy of pcre in static linking mode
Expand Down Expand Up @@ -33,7 +33,6 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
crypto ENABLE_CRYPTO
netssl ENABLE_NETSSL
pdf ENABLE_PDF
sqlite3 ENABLE_DATA_SQLITE
postgresql ENABLE_DATA_POSTGRESQL
)

Expand Down
11 changes: 3 additions & 8 deletions ports/poco/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "poco",
"version": "1.13.3",
"port-version": 1,
"version": "1.14.0",
"description": "Modern, powerful open source C++ class libraries for building network and internet-based applications that run on desktop, server, mobile and embedded systems.",
"homepage": "https://github.com/pocoproject/poco",
"license": "BSL-1.0",
"supports": "!uwp",
"dependencies": [
"expat",
"pcre2",
"sqlite3",
"utf8proc",
{
"name": "vcpkg-cmake",
"host": true
Expand Down Expand Up @@ -64,12 +65,6 @@
"dependencies": [
"libpqxx"
]
},
"sqlite3": {
"description": "Sqlite3 support for POCO",
"dependencies": [
"sqlite3"
]
}
}
}
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7121,8 +7121,8 @@
"port-version": 1
},
"poco": {
"baseline": "1.13.3",
"port-version": 1
"baseline": "1.14.0",
"port-version": 0
},
"podofo": {
"baseline": "0.10.4",
Expand Down
5 changes: 5 additions & 0 deletions versions/p-/poco.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "a430ad2f694fb8af957b599850f63786485f98a2",
"version": "1.14.0",
"port-version": 0
},
{
"git-tree": "431894de75b90a806a64bcb289b6ad81d5c98a4c",
"version": "1.13.3",
Expand Down

0 comments on commit 38bf1ef

Please sign in to comment.