include $(TOPDIR)/rules.mk
PKG_NAME:=curl
-PKG_VERSION:=7.85.0
-PKG_RELEASE:=$(AUTORELEASE).1
+PKG_VERSION:=7.86.0
+PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/curl/curl/releases/download/curl-$(subst .,_,$(PKG_VERSION))/ \
https://dl.uxnr.de/mirror/curl/ \
https://curl.askapache.com/download/ \
https://curl.se/download/
-PKG_HASH:=88b54a6d4b9a48cb4d873c7056dcba997ddd5b7be5a2d537a4acb55c20b04be6
+PKG_HASH:=2d61116e5f485581f6d59865377df4463f2e788677ac43222b496d4e49fb627b
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=COPYING
--disable-manual \
--without-nss \
--without-librtmp \
- --without-libidn \
--without-ca-path \
--without-libpsl \
--without-zstd \
\
$(if $(CONFIG_LIBCURL_WOLFSSL),--with-wolfssl="$(STAGING_DIR)/usr",--without-wolfssl) \
$(if $(CONFIG_LIBCURL_GNUTLS),--with-gnutls="$(STAGING_DIR)/usr",--without-gnutls) \
- $(if $(CONFIG_LIBCURL_OPENSSL),--with-ssl="$(STAGING_DIR)/usr",--without-ssl) \
+ $(if $(CONFIG_LIBCURL_OPENSSL),--with-openssl="$(STAGING_DIR)/usr",--without-openssl) \
$(if $(CONFIG_LIBCURL_MBEDTLS),--with-mbedtls="$(STAGING_DIR)/usr",--without-mbedtls) \
\
$(if $(CONFIG_LIBCURL_LIBIDN2),--with-libidn2="$(STAGING_DIR)/usr",--without-libidn2) \
+++ /dev/null
-From 5c91ff8853cbe08fb30462f99d3261383de9b98e Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <ynezz@true.cz>
-Date: Mon, 10 Oct 2022 07:36:56 +0200
-Subject: [PATCH] curl-wolfssl.m4: error out if wolfSSL is not usable
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-When I explicitly declare, that I would like to have curl built with
-wolfSSL support using `--with-wolfssl` configure option, then I would
-expect, that either I endup with curl having that support, for example
-in form of https support or it wouldn't be available at all.
-
-Downstream projects like for example OpenWrt build curl wolfSSL variant
-with `--with-wolfssl` already, but in certain corner cases it does fail:
-
- configure:25299: checking for wolfSSL_Init in -lwolfssl
- configure:25321: x86_64-openwrt-linux-musl-gcc -o conftest [snip]
- In file included from target-x86_64_musl/usr/include/wolfssl/wolfcrypt/dsa.h:33,
- from target-x86_64_musl/usr/include/wolfssl/wolfcrypt/asn_public.h:35,
- from target-x86_64_musl/usr/include/wolfssl/ssl.h:35,
- from conftest.c:47:
- target-x86_64_musl/usr/include/wolfssl/wolfcrypt/integer.h:37:14: fatal error: wolfssl/wolfcrypt/sp_int.h: No such file or directory
- #include <wolfssl/wolfcrypt/sp_int.h>
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- compilation terminated.
-
-and in the end thus produces curl without https support:
-
- curl: (1) Protocol "https" not supported or disabled in libcurl
-
-So fix it, by making the working wolfSSL mandatory and error out in
-configure step when that's not the case:
-
- checking for wolfSSL_Init in -lwolfssl... no
- configure: error: --with-wolfssl but wolfSSL was not found or doesn't work
-
-References: https://github.com/openwrt/packages/issues/19005
-References: https://github.com/openwrt/packages/issues/19547
-Upstream-Status: Accepted [https://github.com/curl/curl/pull/9682]
-Signed-off-by: Petr Štetiar <ynezz@true.cz>
----
- m4/curl-wolfssl.m4 | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
---- a/m4/curl-wolfssl.m4
-+++ b/m4/curl-wolfssl.m4
-@@ -154,7 +154,8 @@ if test "x$OPT_WOLFSSL" != xno; then
- AC_MSG_NOTICE([Added $wolfssllibpath to CURL_LIBRARY_PATH])
- fi
- fi
--
-+ else
-+ AC_MSG_ERROR([--with-wolfssl but wolfSSL was not found or doesn't work])
- fi
-
- fi dnl wolfSSL not disabled