Skip to content

Commit 28999d6

Browse files
authored
Merge pull request #44 from negrutiu/feature/curl-8-12-1
curl/8.12.1
2 parents bd67f01 + fb7373d commit 28999d6

File tree

4 files changed

+39
-52
lines changed

4 files changed

+39
-52
lines changed

vcpkg/overlay_ports/curl/dependencies.patch

+26-26
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/CMakeLists.txt b/CMakeLists.txt
2-
index d55cef4..cb97dd5 100644
2+
index 86add74..be7b193 100644
33
--- a/CMakeLists.txt
44
+++ b/CMakeLists.txt
55
@@ -345,7 +345,7 @@ set(LIBCURL_PC_REQUIRES_PRIVATE "")
@@ -11,7 +11,7 @@ index d55cef4..cb97dd5 100644
1111
list(APPEND CURL_LIBDIRS ${CARES_LIBRARY_DIRS})
1212
list(APPEND LIBCURL_PC_REQUIRES_PRIVATE ${CARES_PC_REQUIRES})
1313
link_directories(${CARES_LIBRARY_DIRS})
14-
@@ -787,7 +787,7 @@ if(CURL_USE_MBEDTLS)
14+
@@ -789,7 +789,7 @@ if(CURL_USE_MBEDTLS)
1515
find_package(MbedTLS REQUIRED)
1616
set(_ssl_enabled ON)
1717
set(USE_MBEDTLS ON)
@@ -20,7 +20,7 @@ index d55cef4..cb97dd5 100644
2020
list(APPEND CURL_LIBDIRS ${MBEDTLS_LIBRARY_DIRS})
2121
list(APPEND LIBCURL_PC_REQUIRES_PRIVATE ${MBEDTLS_PC_REQUIRES})
2222
include_directories(SYSTEM ${MBEDTLS_INCLUDE_DIRS})
23-
@@ -821,7 +821,7 @@ if(CURL_USE_WOLFSSL)
23+
@@ -823,7 +823,7 @@ if(CURL_USE_WOLFSSL)
2424
find_package(WolfSSL REQUIRED)
2525
set(_ssl_enabled ON)
2626
set(USE_WOLFSSL ON)
@@ -29,16 +29,16 @@ index d55cef4..cb97dd5 100644
2929
list(APPEND CURL_LIBDIRS ${WOLFSSL_LIBRARY_DIRS})
3030
list(APPEND LIBCURL_PC_REQUIRES_PRIVATE ${WOLFSSL_PC_REQUIRES})
3131
include_directories(SYSTEM ${WOLFSSL_INCLUDE_DIRS})
32-
@@ -850,7 +850,7 @@ if(CURL_USE_GNUTLS)
32+
@@ -856,7 +856,7 @@ if(CURL_USE_GNUTLS)
3333
find_package(Nettle REQUIRED)
3434
set(_ssl_enabled ON)
3535
set(USE_GNUTLS ON)
3636
- list(APPEND CURL_LIBS ${GNUTLS_LIBRARIES} ${NETTLE_LIBRARIES})
3737
+ list(APPEND CURL_LIBS ${GNUTLS_LINK_LIBRARIES} ${NETTLE_LINK_LIBRARIES})
38-
list(APPEND CURL_LIBDIRS ${NETTLE_LIBRARY_DIRS})
38+
list(APPEND CURL_LIBDIRS ${GNUTLS_LIBRARY_DIRS} ${NETTLE_LIBRARY_DIRS})
3939
list(APPEND LIBCURL_PC_REQUIRES_PRIVATE "gnutls" ${NETTLE_PC_REQUIRES})
4040
include_directories(SYSTEM ${GNUTLS_INCLUDE_DIRS} ${NETTLE_INCLUDE_DIRS})
41-
@@ -913,7 +913,7 @@ set(HAVE_BROTLI OFF)
41+
@@ -919,7 +919,7 @@ set(HAVE_BROTLI OFF)
4242
curl_dependency_option(CURL_BROTLI Brotli "brotli")
4343
if(BROTLI_FOUND)
4444
set(HAVE_BROTLI ON)
@@ -47,7 +47,7 @@ index d55cef4..cb97dd5 100644
4747
list(APPEND CURL_LIBDIRS ${BROTLI_LIBRARY_DIRS})
4848
list(APPEND LIBCURL_PC_REQUIRES_PRIVATE ${BROTLI_PC_REQUIRES})
4949
include_directories(SYSTEM ${BROTLI_INCLUDE_DIRS})
50-
@@ -928,7 +928,7 @@ curl_dependency_option(CURL_ZSTD Zstd "zstd")
50+
@@ -934,7 +934,7 @@ curl_dependency_option(CURL_ZSTD Zstd "zstd")
5151
if(ZSTD_FOUND)
5252
if(NOT ZSTD_VERSION VERSION_LESS 1.0.0)
5353
set(HAVE_ZSTD ON)
@@ -56,7 +56,7 @@ index d55cef4..cb97dd5 100644
5656
list(APPEND CURL_LIBDIRS ${ZSTD_LIBRARY_DIRS})
5757
list(APPEND LIBCURL_PC_REQUIRES_PRIVATE ${ZSTD_PC_REQUIRES})
5858
include_directories(SYSTEM ${ZSTD_INCLUDE_DIRS})
59-
@@ -1047,7 +1047,7 @@ option(USE_NGHTTP2 "Use nghttp2 library" ON)
59+
@@ -1052,7 +1052,7 @@ option(USE_NGHTTP2 "Use nghttp2 library" ON)
6060
if(USE_NGHTTP2)
6161
find_package(NGHTTP2)
6262
if(NGHTTP2_FOUND)
@@ -65,7 +65,7 @@ index d55cef4..cb97dd5 100644
6565
list(APPEND CURL_LIBDIRS ${NGHTTP2_LIBRARY_DIRS})
6666
list(APPEND LIBCURL_PC_REQUIRES_PRIVATE ${NGHTTP2_PC_REQUIRES})
6767
include_directories(SYSTEM ${NGHTTP2_INCLUDE_DIRS})
68-
@@ -1079,7 +1079,7 @@ if(USE_NGTCP2)
68+
@@ -1084,7 +1084,7 @@ if(USE_NGTCP2)
6969
else()
7070
message(FATAL_ERROR "ngtcp2 requires OpenSSL, wolfSSL or GnuTLS")
7171
endif()
@@ -74,7 +74,7 @@ index d55cef4..cb97dd5 100644
7474
list(APPEND CURL_LIBDIRS ${NGTCP2_LIBRARY_DIRS})
7575
list(APPEND LIBCURL_PC_REQUIRES_PRIVATE ${NGTCP2_PC_REQUIRES})
7676
include_directories(SYSTEM ${NGTCP2_INCLUDE_DIRS})
77-
@@ -1090,7 +1090,7 @@ if(USE_NGTCP2)
77+
@@ -1095,7 +1095,7 @@ if(USE_NGTCP2)
7878

7979
find_package(NGHTTP3 REQUIRED)
8080
set(USE_NGHTTP3 ON)
@@ -83,25 +83,25 @@ index d55cef4..cb97dd5 100644
8383
list(APPEND CURL_LIBDIRS ${NGHTTP3_LIBRARY_DIRS})
8484
list(APPEND LIBCURL_PC_REQUIRES_PRIVATE ${NGHTTP3_PC_REQUIRES})
8585
include_directories(SYSTEM ${NGHTTP3_INCLUDE_DIRS})
86-
@@ -1191,7 +1191,7 @@ if(NOT CURL_DISABLE_LDAP)
86+
@@ -1196,7 +1196,7 @@ if(NOT CURL_DISABLE_LDAP)
8787
find_package(LDAP)
8888
if(LDAP_FOUND)
8989
set(HAVE_LBER_H 1)
90-
- set(CURL_LIBS "${LDAP_LIBRARIES};${CURL_LIBS}")
91-
+ set(CURL_LIBS "${LDAP_LINK_LIBRARIES};${CURL_LIBS}")
90+
- set(CURL_LIBS ${LDAP_LIBRARIES} ${CURL_LIBS})
91+
+ list(PREPEND CURL_LIBS ${LDAP_LINK_LIBRARIES})
9292
list(APPEND CURL_LIBDIRS ${LDAP_LIBRARY_DIRS})
9393
if(LDAP_PC_REQUIRES)
94-
set(LIBCURL_PC_REQUIRES_PRIVATE "${LDAP_PC_REQUIRES};${LIBCURL_PC_REQUIRES_PRIVATE}")
95-
@@ -1269,7 +1269,7 @@ set(HAVE_LIBIDN2 OFF)
94+
set(LIBCURL_PC_REQUIRES_PRIVATE ${LDAP_PC_REQUIRES} ${LIBCURL_PC_REQUIRES_PRIVATE})
95+
@@ -1273,7 +1273,7 @@ set(HAVE_LIBIDN2 OFF)
9696
if(USE_LIBIDN2 AND NOT USE_APPLE_IDN AND NOT USE_WIN32_IDN)
9797
find_package(Libidn2)
9898
if(LIBIDN2_FOUND)
99-
- set(CURL_LIBS "${LIBIDN2_LIBRARIES};${CURL_LIBS}")
100-
+ set(CURL_LIBS "${LIBIDN2_LINK_LIBRARIES};${CURL_LIBS}")
99+
- set(CURL_LIBS ${LIBIDN2_LIBRARIES} ${CURL_LIBS})
100+
+ list(PREPEND CURL_LIBS ${LIBIDN2_LINK_LIBRARIES})
101101
list(APPEND CURL_LIBDIRS ${LIBIDN2_LIBRARY_DIRS})
102-
set(LIBCURL_PC_REQUIRES_PRIVATE "${LIBIDN2_PC_REQUIRES};${LIBCURL_PC_REQUIRES_PRIVATE}")
102+
set(LIBCURL_PC_REQUIRES_PRIVATE ${LIBIDN2_PC_REQUIRES} ${LIBCURL_PC_REQUIRES_PRIVATE})
103103
include_directories(SYSTEM ${LIBIDN2_INCLUDE_DIRS})
104-
@@ -1289,7 +1289,7 @@ set(USE_LIBPSL OFF)
104+
@@ -1293,7 +1293,7 @@ set(USE_LIBPSL OFF)
105105

106106
if(CURL_USE_LIBPSL)
107107
find_package(Libpsl REQUIRED)
@@ -110,16 +110,16 @@ index d55cef4..cb97dd5 100644
110110
list(APPEND CURL_LIBDIRS ${LIBPSL_LIBRARY_DIRS})
111111
list(APPEND LIBCURL_PC_REQUIRES_PRIVATE ${LIBPSL_PC_REQUIRES})
112112
include_directories(SYSTEM ${LIBPSL_INCLUDE_DIRS})
113-
@@ -1308,7 +1308,7 @@ set(USE_LIBSSH2 OFF)
113+
@@ -1312,7 +1312,7 @@ set(USE_LIBSSH2 OFF)
114114
if(CURL_USE_LIBSSH2)
115115
find_package(Libssh2)
116116
if(LIBSSH2_FOUND)
117-
- list(APPEND CURL_LIBS ${LIBSSH2_LIBRARIES})
118-
+ list(APPEND CURL_LIBS ${LIBSSH2_LINK_LIBRARIES})
117+
- set(CURL_LIBS ${LIBSSH2_LIBRARIES} ${CURL_LIBS}) # keep it before TLS-crypto, compression
118+
+ list(PREPEND CURL_LIBS ${LIBSSH2_LINK_LIBRARIES}) # keep it before TLS-crypto, compression
119119
list(APPEND CURL_LIBDIRS ${LIBSSH2_LIBRARY_DIRS})
120-
list(APPEND LIBCURL_PC_REQUIRES_PRIVATE ${LIBSSH2_PC_REQUIRES})
120+
set(LIBCURL_PC_REQUIRES_PRIVATE ${LIBSSH2_PC_REQUIRES} ${LIBCURL_PC_REQUIRES_PRIVATE})
121121
include_directories(SYSTEM ${LIBSSH2_INCLUDE_DIRS})
122-
@@ -1357,7 +1357,7 @@ option(CURL_USE_GSASL "Use libgsasl" OFF)
122+
@@ -1361,7 +1361,7 @@ option(CURL_USE_GSASL "Use libgsasl" OFF)
123123
mark_as_advanced(CURL_USE_GSASL)
124124
if(CURL_USE_GSASL)
125125
find_package(Libgsasl REQUIRED)
@@ -128,7 +128,7 @@ index d55cef4..cb97dd5 100644
128128
list(APPEND CURL_LIBDIRS ${LIBGSASL_LIBRARY_DIRS})
129129
list(APPEND LIBCURL_PC_REQUIRES_PRIVATE ${LIBGSASL_PC_REQUIRES})
130130
include_directories(SYSTEM ${LIBGSASL_INCLUDE_DIRS})
131-
@@ -1376,7 +1376,7 @@ if(CURL_USE_GSSAPI)
131+
@@ -1380,7 +1380,7 @@ if(CURL_USE_GSSAPI)
132132

133133
set(HAVE_GSSAPI ${GSS_FOUND})
134134
if(GSS_FOUND)
@@ -137,7 +137,7 @@ index d55cef4..cb97dd5 100644
137137
list(APPEND CURL_LIBDIRS ${GSS_LIBRARY_DIRS})
138138
list(APPEND LIBCURL_PC_REQUIRES_PRIVATE ${GSS_PC_REQUIRES})
139139
include_directories(SYSTEM ${GSS_INCLUDE_DIRS})
140-
@@ -1447,7 +1447,7 @@ endif()
140+
@@ -1451,7 +1451,7 @@ endif()
141141
option(USE_LIBRTMP "Enable librtmp from rtmpdump" OFF)
142142
if(USE_LIBRTMP)
143143
find_package(Librtmp REQUIRED)

vcpkg/overlay_ports/curl/pkgconfig-curl-config.patch

+11-24
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
11
diff --git a/CMakeLists.txt b/CMakeLists.txt
2-
index b6b74c1..d01a127 100644
2+
index be7b193..a3f5918 100644
33
--- a/CMakeLists.txt
44
+++ b/CMakeLists.txt
5-
@@ -2260,6 +2260,7 @@ if(NOT CURL_DISABLE_INSTALL)
6-
endforeach()
7-
8-
foreach(_libdir IN LISTS _custom_libdirs CURL_LIBDIRS)
9-
+ cmake_path(SET _libdir NORMALIZE "${_libdir}")
10-
list(FIND _sys_libdirs "${_libdir}" _libdir_index)
11-
if(_libdir_index LESS 0)
12-
list(APPEND _ldflags "-L${_libdir}")
13-
@@ -2271,7 +2272,30 @@ if(NOT CURL_DISABLE_INSTALL)
14-
set(_implicit_libs ${CMAKE_C_IMPLICIT_LINK_LIBRARIES})
5+
@@ -2280,7 +2280,30 @@ if(NOT CURL_DISABLE_INSTALL)
6+
set(_implicit_libs "${CMAKE_C_IMPLICIT_LINK_LIBRARIES}")
157
endif()
168

179
- foreach(_lib IN LISTS _implicit_libs _custom_libs CURL_LIBS)
@@ -42,7 +34,7 @@ index b6b74c1..d01a127 100644
4234
if(TARGET "${_lib}")
4335
set(_libname "${_lib}")
4436
get_target_property(_imported "${_libname}" IMPORTED)
45-
@@ -2286,6 +2310,10 @@ if(NOT CURL_DISABLE_INSTALL)
37+
@@ -2295,6 +2318,10 @@ if(NOT CURL_DISABLE_INSTALL)
4638
continue()
4739
endif()
4840
endif()
@@ -53,13 +45,7 @@ index b6b74c1..d01a127 100644
5345
if(_lib MATCHES "^-") # '-framework <name>'
5446
list(APPEND _ldflags "${_lib}")
5547
elseif(_lib MATCHES "/")
56-
@@ -2294,17 +2322,24 @@ if(NOT CURL_DISABLE_INSTALL)
57-
get_filename_component(_libdir ${_lib} DIRECTORY)
58-
get_filename_component(_libname ${_lib} NAME_WE)
59-
if(_libname MATCHES "^lib")
60-
+ cmake_path(SET _libdir NORMALIZE "${_libdir}")
61-
list(FIND _sys_libdirs "${_libdir}" _libdir_index)
62-
if(_libdir_index LESS 0)
48+
@@ -2311,12 +2338,18 @@ if(NOT CURL_DISABLE_INSTALL)
6349
list(APPEND _ldflags "-L${_libdir}")
6450
endif()
6551
string(REGEX REPLACE "^lib" "" _libname "${_libname}")
@@ -81,7 +67,7 @@ index b6b74c1..d01a127 100644
8167
endif()
8268
endforeach()
8369

84-
@@ -2330,11 +2365,11 @@ if(NOT CURL_DISABLE_INSTALL)
70+
@@ -2342,11 +2375,11 @@ if(NOT CURL_DISABLE_INSTALL)
8571
set(LIBCURL_PC_REQUIRES "")
8672
set(LIBCURL_PC_LIBS "")
8773
set(LIBCURL_PC_CFLAGS "")
@@ -97,18 +83,19 @@ index b6b74c1..d01a127 100644
9783
if(BUILD_STATIC_LIBS)
9884
set(ENABLE_STATIC "yes")
9985
diff --git a/curl-config.in b/curl-config.in
100-
index 5518416..e418afc 100644
86+
index 5518416..c0c29da 100644
10187
--- a/curl-config.in
10288
+++ b/curl-config.in
103-
@@ -156,6 +156,7 @@ while test "$#" -gt 0; do
89+
@@ -155,7 +155,7 @@ while test "$#" -gt 0; do
90+
curllibdir=''
10491
fi
10592
if test 'X@ENABLE_SHARED@' = 'Xno'; then
106-
echo "${curllibdir}-lcurl @LIBCURL_PC_LIBS_PRIVATE@"
93+
- echo "${curllibdir}-lcurl @LIBCURL_PC_LIBS_PRIVATE@"
10794
+ echo "@libdir@/libcurl.@libext@ @LIBCURL_PC_LDFLAGS_PRIVATE@ @CURL_CONFIG_LIBS_PRIVATE@ @LIBCURL_PC_LIBS_PRIVATE@"
10895
else
10996
echo "${curllibdir}-lcurl"
11097
fi
111-
@@ -167,7 +168,7 @@ while test "$#" -gt 0; do
98+
@@ -167,7 +167,7 @@ while test "$#" -gt 0; do
11299

113100
--static-libs)
114101
if test 'X@ENABLE_STATIC@' != 'Xno'; then

vcpkg/overlay_ports/curl/portfile.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ vcpkg_from_github(
44
OUT_SOURCE_PATH SOURCE_PATH
55
REPO curl/curl
66
REF ${curl_version}
7-
SHA512 e7fabe3403096fdab7e9a817499c541a965c456ab07ffe981b58bed11bad62f9efa201d93d92e5f35503a5a30b25fc430ca7d7a5556eaffffd9bf98c163b667f
7+
SHA512 04f6160c3c63c59e80987df61959bf0079c5be1d63bc40189933cebd3046850d680f1e030e8e7cd7f04417146982c6410ba70c8441af75d43b7b24fc7fbcb1d2
88
HEAD_REF master
99
PATCHES
1010
0005_remove_imp_suffix.patch

vcpkg/overlay_ports/curl/vcpkg.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "curl",
3-
"version": "8.12.0",
3+
"version": "8.12.1",
44
"description": "A library for transferring data with URLs",
55
"homepage": "https://curl.se/",
66
"license": "curl AND ISC AND BSD-3-Clause",

0 commit comments

Comments
 (0)