Skip to content

Commit

Permalink
Add curl patch (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-stepanof committed Apr 14, 2023
1 parent 3175265 commit 15449b8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@ RUN yum install -y \
tar \
gzip \
make \
patch \
gcc \
gcc-c++ \
java-11-amazon-corretto

# Install curl dependency
COPY ./deps/curl-$CURL_VERSION.tar.gz /src/deps/
COPY ./deps/curl_001_disable_wakeup.patch /src/deps/

RUN tar xzf /src/deps/curl-$CURL_VERSION.tar.gz -C /src/deps

WORKDIR /src/deps/curl-$CURL_VERSION
RUN patch lib/multihandle.h ../curl_001_disable_wakeup.patch
RUN ./configure \
--prefix $(pwd)/../artifacts \
--disable-shared \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ RUN apk update && \
g++ \
gcc \
make \
patch \
perl

# Install curl dependency
COPY ./deps/curl-$CURL_VERSION.tar.gz /src/deps/
COPY ./deps/curl_001_disable_wakeup.patch /src/deps/

RUN tar xzf /src/deps/curl-$CURL_VERSION.tar.gz -C /src/deps

WORKDIR /src/deps/curl-$CURL_VERSION
RUN patch lib/multihandle.h ../curl_001_disable_wakeup.patch
RUN ./configure \
--prefix $(pwd)/../artifacts \
--disable-shared \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/multihandle.h b/multihandle.h
index a26fb619a..18080f1c3 100644
--- a/multihandle.h
+++ b/multihandle.h
@@ -70,10 +70,6 @@ typedef enum {

#define CURLPIPE_ANY (CURLPIPE_MULTIPLEX)

-#if !defined(CURL_DISABLE_SOCKETPAIR)
-#define ENABLE_WAKEUP
-#endif
-
/* value for MAXIMUM CONCURRENT STREAMS upper limit */
#define INITIAL_MAX_CONCURRENT_STREAMS ((1U << 31) - 1)

0 comments on commit 15449b8

Please sign in to comment.