diff options
author | Rechi <Rechi@users.noreply.github.com> | 2018-05-28 14:00:00 +0200 |
---|---|---|
committer | Rechi <Rechi@users.noreply.github.com> | 2018-05-28 14:00:00 +0200 |
commit | e5102f6cd33262492164988746ef901eda14d95f (patch) | |
tree | 4cc45a1c70928234a79e5a2fe1e531766b5c988c /tools/depends/target/curl | |
parent | 5268515ce15fa1f9ae84a79d2b17fc78be19c9a0 (diff) |
[depends] curl: remove specific osx version
As curl is now build static, symbols from shared system curl don't affect us anymore.
Diffstat (limited to 'tools/depends/target/curl')
-rw-r--r-- | tools/depends/target/curl/0001-HTTP-reset-expected-DL-UL-sizes-on-redirects.patch | 83 | ||||
-rw-r--r-- | tools/depends/target/curl/Makefile | 9 |
2 files changed, 1 insertions, 91 deletions
diff --git a/tools/depends/target/curl/0001-HTTP-reset-expected-DL-UL-sizes-on-redirects.patch b/tools/depends/target/curl/0001-HTTP-reset-expected-DL-UL-sizes-on-redirects.patch deleted file mode 100644 index 7855f428ff..0000000000 --- a/tools/depends/target/curl/0001-HTTP-reset-expected-DL-UL-sizes-on-redirects.patch +++ /dev/null @@ -1,83 +0,0 @@ -From c44d45db86b880df5facd6b560491e03530f876e Mon Sep 17 00:00:00 2001 -From: Daniel Stenberg <daniel@haxx.se> -Date: Fri, 23 Mar 2012 23:42:37 +0100 -Subject: [PATCH] HTTP: reset expected DL/UL sizes on redirects - -With FOLLOWLOCATION enabled. When a 3xx page is downloaded and the -download size was known (like with a Content-Length header), but the -subsequent URL (transfered after the 3xx page) was chunked encoded, then -the previous "known download size" would linger and cause the progress -meter to get incorrect information, ie the former value would remain -being sent in. This could easily result in downloads that were WAY -larger than "expected" and would cause >100% outputs with the curl -command line tool. - -Test case 599 was created and it was used to repeat the bug and then -verify the fix. - -Bug: http://curl.haxx.se/bug/view.cgi?id=3510057 -Reported by: Michael Wallner ---- - lib/progress.c | 9 +++-- - lib/progress.h | 4 +-- - lib/transfer.c | 2 +- - tests/data/Makefile.am | 2 +- - tests/data/test599 | 83 +++++++++++++++++++++++++++++++++++++++++++ - tests/libtest/Makefile.inc | 4 ++- - tests/libtest/lib599.c | 88 ++++++++++++++++++++++++++++++++++++++++++++++ - 7 files changed, 184 insertions(+), 8 deletions(-) - create mode 100644 tests/data/test599 - create mode 100644 tests/libtest/lib599.c - -diff --git a/lib/progress.c b/lib/progress.c -index 1eeb780..4c9a63a 100644 ---- a/lib/progress.c -+++ b/lib/progress.c -@@ -146,13 +146,16 @@ void Curl_pgrsDone(struct connectdata *conn) - data->progress.speeder_c = 0; /* reset the progress meter display */ - } - --/* reset all times except redirect */ --void Curl_pgrsResetTimes(struct SessionHandle *data) -+/* reset all times except redirect, and reset the known transfer sizes */ -+void Curl_pgrsResetTimesSizes(struct SessionHandle *data) - { - data->progress.t_nslookup = 0.0; - data->progress.t_connect = 0.0; - data->progress.t_pretransfer = 0.0; - data->progress.t_starttransfer = 0.0; -+ -+ Curl_pgrsSetDownloadSize(data, 0); -+ Curl_pgrsSetUploadSize(data, 0); - } - - void Curl_pgrsTime(struct SessionHandle *data, timerid timer) -diff --git a/lib/progress.h b/lib/progress.h -index f5cc540..a41d5f9 100644 ---- a/lib/progress.h -+++ b/lib/progress.h -@@ -46,7 +46,7 @@ void Curl_pgrsSetUploadSize(struct SessionHandle *data, curl_off_t size); - void Curl_pgrsSetDownloadCounter(struct SessionHandle *data, curl_off_t size); - void Curl_pgrsSetUploadCounter(struct SessionHandle *data, curl_off_t size); - int Curl_pgrsUpdate(struct connectdata *); --void Curl_pgrsResetTimes(struct SessionHandle *data); -+void Curl_pgrsResetTimesSizes(struct SessionHandle *data); - void Curl_pgrsTime(struct SessionHandle *data, timerid timer); - - -diff --git a/lib/transfer.c b/lib/transfer.c -index d6061be..d872719 100644 ---- a/lib/transfer.c -+++ b/lib/transfer.c -@@ -1924,7 +1924,7 @@ CURLcode Curl_follow(struct SessionHandle *data, - break; - } - Curl_pgrsTime(data, TIMER_REDIRECT); -- Curl_pgrsResetTimes(data); -+ Curl_pgrsResetTimesSizes(data); - - return CURLE_OK; - #endif /* CURL_DISABLE_HTTP */ --- -1.8.4.3 - diff --git a/tools/depends/target/curl/Makefile b/tools/depends/target/curl/Makefile index 8854fe6171..df05d69cf3 100644 --- a/tools/depends/target/curl/Makefile +++ b/tools/depends/target/curl/Makefile @@ -1,13 +1,9 @@ include ../../Makefile.include -DEPS= ../../Makefile.include Makefile 0001-HTTP-reset-expected-DL-UL-sizes-on-redirects.patch +DEPS= ../../Makefile.include Makefile # lib name, version LIBNAME=curl -ifeq (osx, $(findstring osx, $(OS))) -VERSION=7.21.6 -else VERSION=7.56.1 -endif SOURCE=$(LIBNAME)-$(VERSION) ARCHIVE=$(SOURCE).tar.bz2 # configuration settings @@ -26,9 +22,6 @@ $(TARBALLS_LOCATION)/$(ARCHIVE): $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS) rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM) cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) -ifeq (osx, $(findstring osx, $(OS))) - cd $(PLATFORM); patch -p1 < ../0001-HTTP-reset-expected-DL-UL-sizes-on-redirects.patch -endif ifeq (darwin, $(findstring darwin, $(HOST))) cd $(PLATFORM); sed -ie "s/elif defined(HAVE_CLOCK_GETTIME_MONOTONIC)/#elif defined(HAVE_CLOCK_GETTIME_MONOTONIC_NOPE)/" lib/timeval.c endif |