Skip to content

Commit 1d44023

Browse files
committed
Download dependencies over http, not https
libcurl bundled with cmake doesn't support https. To enable building sysdig without libcurl installed system wide, we need to replace the https URLs with http. The files still have their checksums verified.
1 parent cc3503c commit 1d44023

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ if(NOT WIN32 AND NOT APPLE)
435435
set(CARES_INCLUDE "${CARES_SRC}/target/include")
436436
set(CARES_LIB "${CARES_SRC}/target/lib/libcares.a")
437437
ExternalProject_Add(c-ares
438-
URL "https://download.sysdig.com/dependencies/c-ares-1.13.0.tar.gz"
438+
URL "http://download.sysdig.com/dependencies/c-ares-1.13.0.tar.gz"
439439
URL_MD5 "d2e010b43537794d8bedfb562ae6bba2"
440440
CONFIGURE_COMMAND ./configure --prefix=${CARES_SRC}/target
441441
BUILD_COMMAND ${CMD_MAKE}
@@ -462,7 +462,7 @@ if(NOT WIN32 AND NOT APPLE)
462462
set(PROTOBUF_LIB "${PROTOBUF_SRC}/target/lib/libprotobuf.a")
463463
ExternalProject_Add(protobuf
464464
DEPENDS openssl zlib
465-
URL "https://github.com/google/protobuf/releases/download/v3.5.0/protobuf-cpp-3.5.0.tar.gz"
465+
URL "http://github.com/google/protobuf/releases/download/v3.5.0/protobuf-cpp-3.5.0.tar.gz"
466466
URL_MD5 "e4ba8284a407712168593e79e6555eb2"
467467
# TODO what if using system zlib?
468468
CONFIGURE_COMMAND /usr/bin/env CPPFLAGS=-I${ZLIB_INCLUDE} LDFLAGS=-L${ZLIB_SRC} ./configure --with-zlib --prefix=${PROTOBUF_SRC}/target

0 commit comments

Comments
 (0)