[source] curl: fix disable threaded resolver

LEDE Commits lede-commits at lists.infradead.org
Wed Sep 27 08:34:01 PDT 2017


dedeckeh pushed a commit to source.git, branch master:
https://git.lede-project.org/754659ddb55eacb87e1c4bbd7925348e55846809

commit 754659ddb55eacb87e1c4bbd7925348e55846809
Author: Hans Dedecker <dedeckeh at gmail.com>
AuthorDate: Wed Sep 27 17:22:44 2017 +0200

    curl: fix disable threaded resolver
    
    Bump to 7.55.1 broke the disable threaded resolver feature as reported
    in https://github.com/curl/curl/issues/1784.
    As a result curl is always compiled with the threaded resolver feature
    enabled which causes a dependency issue on pthread for uclibc.
    Fix this issue by backporting the upstream curl commit which fixes
    disable threaded resolver.
    
    Signed-off-by: Hans Dedecker <dedeckeh at gmail.com>
---
 ...confopts.m4-fix-disable-threaded-resolver.patch | 36 ++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/package/network/utils/curl/patches/320-curl-confopts.m4-fix-disable-threaded-resolver.patch b/package/network/utils/curl/patches/320-curl-confopts.m4-fix-disable-threaded-resolver.patch
new file mode 100644
index 0000000..b08d765
--- /dev/null
+++ b/package/network/utils/curl/patches/320-curl-confopts.m4-fix-disable-threaded-resolver.patch
@@ -0,0 +1,36 @@
+From 3cb4bb6b5fb8a936cb69e2e9ea6a4e692122abb9 Mon Sep 17 00:00:00 2001
+From: Jakub Zakrzewski <slither.jz at gmail.com>
+Date: Tue, 15 Aug 2017 13:21:33 -0400
+Subject: [PATCH] curl-confopts.m4: fix --disable-threaded-resolver
+
+Closes https://github.com/curl/curl/issues/1784
+---
+ m4/curl-confopts.m4 | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/m4/curl-confopts.m4 b/m4/curl-confopts.m4
+index d77a884..6dcd0f1 100644
+--- a/m4/curl-confopts.m4
++++ b/m4/curl-confopts.m4
+@@ -37,14 +37,14 @@ AC_HELP_STRING([--enable-threaded-resolver],[Enable threaded resolver])
+ AC_HELP_STRING([--disable-threaded-resolver],[Disable threaded resolver]),
+   OPT_THRES=$enableval)
+   case "$OPT_THRES" in
+-    *)
+-      dnl configure option not specified
+-      want_thres="yes"
+-      ;;
+     no)
+       dnl --disable-threaded-resolver option used
+       want_thres="no"
+       ;;
++    *)
++      dnl configure option not specified
++      want_thres="yes"
++      ;;
+   esac
+   AC_MSG_RESULT([$want_thres])
+ ])
+-- 
+1.9.1
+



More information about the lede-commits mailing list