From 5c42d00dc27e4e90f7eddef65e493cb3e013507b Mon Sep 17 00:00:00 2001 From: Wildan M Date: Mon, 4 May 2026 21:31:48 +0700 Subject: [PATCH] Update and fix curl pkg-config --- recipes/net/download/curl/recipe.toml | 7 ++-- recipes/net/download/curl/redox.patch | 55 +++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 3 deletions(-) create mode 100644 recipes/net/download/curl/redox.patch diff --git a/recipes/net/download/curl/recipe.toml b/recipes/net/download/curl/recipe.toml index 57ea16bf..1a9c5826 100644 --- a/recipes/net/download/curl/recipe.toml +++ b/recipes/net/download/curl/recipe.toml @@ -1,7 +1,8 @@ [source] -git = "https://gitlab.redox-os.org/redox-os/curl.git" -branch = "redox-8.6" -upstream = "https://github.com/curl/curl.git" +git = "https://github.com/curl/curl.git" +rev = "curl-8_20_0" +patches = ["redox.patch"] +shallow_clone = true [build] template = "cmake" diff --git a/recipes/net/download/curl/redox.patch b/recipes/net/download/curl/redox.patch new file mode 100644 index 00000000..04028f48 --- /dev/null +++ b/recipes/net/download/curl/redox.patch @@ -0,0 +1,55 @@ +diff --git a/curl-config.in b/curl-config.in +index a1c8185875..326ea2b9d3 100644 +--- a/curl-config.in ++++ b/curl-config.in +@@ -167,7 +167,7 @@ while test "$#" -gt 0; do + + --static-libs) + if test '@ENABLE_STATIC@' != 'no'; then +- echo "@libdir@/libcurl.@libext@ @LIBCURL_PC_LDFLAGS_PRIVATE@ @LIBCURL_PC_LIBS_PRIVATE@" ++ echo "@libdir@/libcurl.@libext@ @LIBCURL_PC_LIBS_PRIVATE@" + else + echo 'curl was built with static libraries disabled' >&2 + exit 1 +diff --git a/include/curl/curl.h b/include/curl/curl.h +index 6961a6c4c1..66221b85e3 100644 +--- a/include/curl/curl.h ++++ b/include/curl/curl.h +@@ -88,7 +88,7 @@ + libc5-based Linux systems. Only include it on systems that are known to + require it! */ + #if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \ +- defined(__minix) || defined(__INTEGRITY) || \ ++ defined(__minix) || defined(__INTEGRITY) || defined(__redox__) || \ + defined(ANDROID) || defined(__ANDROID__) || defined(__OpenBSD__) || \ + defined(__CYGWIN__) || defined(AMIGA) || defined(__NuttX__) || \ + (defined(__FreeBSD_version) && (__FreeBSD_version < 800000)) || \ +@@ -975,11 +975,11 @@ typedef enum { + /* Backwards compatibility with older names */ + /* These are scheduled to disappear by 2009 */ + +-#define CURLFTPSSL_NONE CURLUSESSL_NONE +-#define CURLFTPSSL_TRY CURLUSESSL_TRY +-#define CURLFTPSSL_CONTROL CURLUSESSL_CONTROL +-#define CURLFTPSSL_ALL CURLUSESSL_ALL +-#define CURLFTPSSL_LAST CURLUSESSL_LAST ++#define CURLFTPSSL_NONE 0L ++#define CURLFTPSSL_TRY 1L ++#define CURLFTPSSL_CONTROL 2L ++#define CURLFTPSSL_ALL 3L ++#define CURLFTPSSL_LAST 4L + #define curl_ftpssl curl_usessl + #endif /* !CURL_NO_OLDIES */ + +diff --git a/libcurl.pc.in b/libcurl.pc.in +index c0ba5244a8..7898dae358 100644 +--- a/libcurl.pc.in ++++ b/libcurl.pc.in +@@ -36,6 +36,6 @@ Version: @CURLVERSION@ + Requires: @LIBCURL_PC_REQUIRES@ + Requires.private: @LIBCURL_PC_REQUIRES_PRIVATE@ + Libs: -L${libdir} -lcurl @LIBCURL_PC_LIBS@ +-Libs.private: @LIBCURL_PC_LDFLAGS_PRIVATE@ @LIBCURL_PC_LIBS_PRIVATE@ ++Libs.private: @LIBCURL_PC_LIBS_PRIVATE@ + Cflags: -I${includedir} @LIBCURL_PC_CFLAGS@ + Cflags.private: @LIBCURL_PC_CFLAGS_PRIVATE@