Skip to content

Commit 38bf1ef

Browse files
authored
[poco] Update version to 1.14.0 (microsoft#42751)
1 parent 14ff626 commit 38bf1ef

File tree

8 files changed

+39
-70
lines changed

8 files changed

+39
-70
lines changed

ports/poco/0001-static-pcre.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
diff --git a/Foundation/CMakeLists.txt b/Foundation/CMakeLists.txt
2-
index f504bc1..226dadb 100644
2+
index 5898d22..d8df9dc 100644
33
--- a/Foundation/CMakeLists.txt
44
+++ b/Foundation/CMakeLists.txt
5-
@@ -109,6 +109,23 @@ set_target_properties(Foundation
5+
@@ -101,6 +101,23 @@ set_target_properties(Foundation
66
if(POCO_UNBUNDLED)
7-
target_link_libraries(Foundation PUBLIC Pcre2::Pcre2 ZLIB::ZLIB)
7+
target_link_libraries(Foundation PUBLIC Pcre2::Pcre2 ZLIB::ZLIB Utf8Proc::Utf8Proc)
88
target_compile_definitions(Foundation PUBLIC POCO_UNBUNDLED)
99
+ add_definitions(
1010
+ -D_pcre2_utf8_table1=_poco_pcre2_utf8_table1
@@ -23,6 +23,6 @@ index f504bc1..226dadb 100644
2323
+ -D_pcre2_utt_names_8=_poco_pcre2_utt_names_8
2424
+ -D_pcre2_utt_size_8=_poco_pcre2_utt_size_8
2525
+ )
26+
else()
27+
target_compile_definitions(Foundation PUBLIC UTF8PROC_STATIC)
2628
endif(POCO_UNBUNDLED)
27-
28-
target_include_directories(Foundation

ports/poco/0003-fix-dependency.patch

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/CMakeLists.txt b/CMakeLists.txt
2-
index c552091..8842c76 100644
2+
index 861c27c..d2701ce 100644
33
--- a/CMakeLists.txt
44
+++ b/CMakeLists.txt
5-
@@ -90,8 +90,6 @@ option(FORCE_OPENSSL "Force usage of OpenSSL even under windows" OFF)
5+
@@ -80,8 +80,6 @@ option(ENABLE_NETSSL_WIN "Enable NetSSL Windows" OFF)
66

77
if(ENABLE_CRYPTO OR ENABLE_NETSSL OR ENABLE_JWT)
88
find_package(OpenSSL REQUIRED)
@@ -11,7 +11,7 @@ index c552091..8842c76 100644
1111
endif()
1212

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

@@ -44,7 +44,7 @@ index c552091..8842c76 100644
4444
endif()
4545

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

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

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

71-
@@ -492,15 +491,6 @@ install(
72-
Devel
73-
)
74-
75-
-if(POCO_UNBUNDLED)
76-
- install(FILES cmake/FindPCRE2.cmake
77-
- DESTINATION "${PocoConfigPackageLocation}")
78-
- install(FILES cmake/V39/FindEXPAT.cmake
79-
- DESTINATION "${PocoConfigPackageLocation}/V39")
80-
- install(FILES cmake/V313/FindSQLite3.cmake
81-
- DESTINATION "${PocoConfigPackageLocation}/V313")
82-
-endif()
83-
-
84-
message(STATUS "CMake ${CMAKE_VERSION} successfully configured ${PROJECT_NAME} using ${CMAKE_GENERATOR} generator")
85-
message(STATUS "${PROJECT_NAME} package version: ${PROJECT_VERSION}")
86-
if(BUILD_SHARED_LIBS)
8771
diff --git a/Data/CMakeLists.txt b/Data/CMakeLists.txt
88-
index 0772af6..ec82d76 100644
72+
index 95e5019..d7bd537 100644
8973
--- a/Data/CMakeLists.txt
9074
+++ b/Data/CMakeLists.txt
91-
@@ -45,7 +45,7 @@ else(ENABLE_DATA_SQLITE)
75+
@@ -73,7 +73,7 @@ else(ENABLE_DATA_SQLITE)
9276
message(STATUS "SQLite Support Disabled")
9377
endif()
9478

@@ -98,7 +82,7 @@ index 0772af6..ec82d76 100644
9882
add_subdirectory(MySQL)
9983
else()
10084
diff --git a/Data/MySQL/CMakeLists.txt b/Data/MySQL/CMakeLists.txt
101-
index ce411cf..5a30b7c 100644
85+
index 0ea8701..3c8a426 100644
10286
--- a/Data/MySQL/CMakeLists.txt
10387
+++ b/Data/MySQL/CMakeLists.txt
10488
@@ -21,7 +21,7 @@ set_target_properties(DataMySQL
@@ -124,7 +108,7 @@ index 2386590..81b2c8e 100644
124108
#endif
125109

126110
diff --git a/Data/SQLite/CMakeLists.txt b/Data/SQLite/CMakeLists.txt
127-
index 3a176d7..d8055cb 100644
111+
index 7141112..0c73beb 100644
128112
--- a/Data/SQLite/CMakeLists.txt
129113
+++ b/Data/SQLite/CMakeLists.txt
130114
@@ -7,7 +7,7 @@ file(GLOB_RECURSE HDRS_G "include/*.h")
@@ -136,7 +120,7 @@ index 3a176d7..d8055cb 100644
136120
else()
137121
# sqlite3
138122
POCO_SOURCES(SQLITE_SRCS sqlite3
139-
@@ -43,7 +43,7 @@ target_include_directories(DataSQLite
123+
@@ -39,7 +39,7 @@ target_include_directories(DataSQLite
140124
)
141125

142126
if(POCO_UNBUNDLED)
@@ -146,7 +130,7 @@ index 3a176d7..d8055cb 100644
146130
POCO_UNBUNDLED
147131
SQLITE_THREADSAFE=1
148132
diff --git a/XML/CMakeLists.txt b/XML/CMakeLists.txt
149-
index 123657a..9856c55 100644
133+
index cf66250..89e6c8f 100644
150134
--- a/XML/CMakeLists.txt
151135
+++ b/XML/CMakeLists.txt
152136
@@ -20,7 +20,7 @@ endif()

ports/poco/0005-fix-error-c3861.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
diff --git a/XML/include/Poco/XML/ParserEngine.h b/XML/include/Poco/XML/ParserEngine.h
2-
index e0c8455..363654c 100644
3-
--- a/XML/include/Poco/XML/ParserEngine.h
4-
+++ b/XML/include/Poco/XML/ParserEngine.h
1+
diff --git a/XML/src/ParserEngine.h b/XML/src/ParserEngine.h
2+
index f74b553..c638778 100644
3+
--- a/XML/src/ParserEngine.h
4+
+++ b/XML/src/ParserEngine.h
55
@@ -19,6 +19,7 @@
66

77
#include "Poco/XML/XML.h"
88
#if defined(POCO_UNBUNDLED)
99
+#include <expat_config.h>
1010
#include <expat.h>
1111
#else
12-
#include "Poco/XML/expat.h"
12+
#include "expat.h"

ports/poco/0007-find-pcre2.patch

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,28 @@
1-
diff --git a/CMakeLists.txt b/CMakeLists.txt
2-
index 8842c76..b887168 100644
3-
--- a/CMakeLists.txt
4-
+++ b/CMakeLists.txt
5-
@@ -491,6 +491,11 @@ install(
6-
Devel
7-
)
8-
9-
+if(POCO_UNBUNDLED)
10-
+ install(FILES cmake/FindPCRE2.cmake
11-
+ DESTINATION "${PocoConfigPackageLocation}")
12-
+endif()
13-
+
14-
message(STATUS "CMake ${CMAKE_VERSION} successfully configured ${PROJECT_NAME} using ${CMAKE_GENERATOR} generator")
15-
message(STATUS "${PROJECT_NAME} package version: ${PROJECT_VERSION}")
16-
if(BUILD_SHARED_LIBS)
171
diff --git a/Foundation/CMakeLists.txt b/Foundation/CMakeLists.txt
18-
index 226dadb..a3765a7 100644
2+
index d8df9dc..fe2b000 100644
193
--- a/Foundation/CMakeLists.txt
204
+++ b/Foundation/CMakeLists.txt
21-
@@ -35,8 +35,11 @@ POCO_MESSAGES(SRCS Logging src/pocomsg.mc)
5+
@@ -27,9 +27,12 @@ POCO_MESSAGES(SRCS Logging src/pocomsg.mc)
226
# If POCO_UNBUNDLED is enabled we try to find the required packages
237
# The configuration will fail if the packages are not found
248
if(POCO_UNBUNDLED)
259
- find_package(PCRE2 REQUIRED)
2610
find_package(ZLIB REQUIRED)
11+
- find_package(Utf8Proc REQUIRED)
12+
+ find_package(unofficial-utf8proc CONFIG REQUIRED)
2713
+ include(SelectLibraryConfigurations)
2814
+ find_library(PCRE2_LIBRARY_DEBUG NAMES pcre2-8d pcre2-8-staticd HINTS ${INSTALLED_LIB_PATH})
2915
+ find_library(PCRE2_LIBRARY_RELEASE NAMES pcre2-8 pcre2-8-static HINTS ${INSTALLED_LIB_PATH})
3016
+ select_library_configurations(PCRE2)
3117

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

3723
if(POCO_UNBUNDLED)
38-
- target_link_libraries(Foundation PUBLIC Pcre2::Pcre2 ZLIB::ZLIB)
39-
+ target_link_libraries(Foundation PUBLIC ${PCRE2_LIBRARY} ZLIB::ZLIB)
24+
- target_link_libraries(Foundation PUBLIC Pcre2::Pcre2 ZLIB::ZLIB Utf8Proc::Utf8Proc)
25+
+ target_link_libraries(Foundation PUBLIC ${PCRE2_LIBRARY} ZLIB::ZLIB utf8proc)
4026
target_compile_definitions(Foundation PUBLIC POCO_UNBUNDLED)
4127
add_definitions(
4228
-D_pcre2_utf8_table1=_poco_pcre2_utf8_table1

ports/poco/portfile.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ vcpkg_from_github(
22
OUT_SOURCE_PATH SOURCE_PATH
33
REPO pocoproject/poco
44
REF "poco-${VERSION}-release"
5-
SHA512 084064fb462c9e7993d069ebdf395802af900ed92c5b294465a2c246162bb86caa3505985de329e8110d3e9fb3bc39ae9536d523843729d4ed5ce00c35289d92
5+
SHA512 4475a0ede5d06e4ce9537295fec92fa39b8fd5635d1cfb38498be4f707bc62b4a8b57672d2a15b557114e4115cc45480d27d0c856b7bd982eeec7adad9ff2582
66
HEAD_REF devel
77
PATCHES
88
# Fix embedded copy of pcre in static linking mode
@@ -33,7 +33,6 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
3333
crypto ENABLE_CRYPTO
3434
netssl ENABLE_NETSSL
3535
pdf ENABLE_PDF
36-
sqlite3 ENABLE_DATA_SQLITE
3736
postgresql ENABLE_DATA_POSTGRESQL
3837
)
3938

ports/poco/vcpkg.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"name": "poco",
3-
"version": "1.13.3",
4-
"port-version": 1,
3+
"version": "1.14.0",
54
"description": "Modern, powerful open source C++ class libraries for building network and internet-based applications that run on desktop, server, mobile and embedded systems.",
65
"homepage": "https://github.com/pocoproject/poco",
76
"license": "BSL-1.0",
87
"supports": "!uwp",
98
"dependencies": [
109
"expat",
1110
"pcre2",
11+
"sqlite3",
12+
"utf8proc",
1213
{
1314
"name": "vcpkg-cmake",
1415
"host": true
@@ -64,12 +65,6 @@
6465
"dependencies": [
6566
"libpqxx"
6667
]
67-
},
68-
"sqlite3": {
69-
"description": "Sqlite3 support for POCO",
70-
"dependencies": [
71-
"sqlite3"
72-
]
7368
}
7469
}
7570
}

versions/baseline.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7121,8 +7121,8 @@
71217121
"port-version": 1
71227122
},
71237123
"poco": {
7124-
"baseline": "1.13.3",
7125-
"port-version": 1
7124+
"baseline": "1.14.0",
7125+
"port-version": 0
71267126
},
71277127
"podofo": {
71287128
"baseline": "0.10.4",

versions/p-/poco.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "a430ad2f694fb8af957b599850f63786485f98a2",
5+
"version": "1.14.0",
6+
"port-version": 0
7+
},
38
{
49
"git-tree": "431894de75b90a806a64bcb289b6ad81d5c98a4c",
510
"version": "1.13.3",

0 commit comments

Comments
 (0)