Skip to content

Commit

Permalink
curl 8.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Sep 11, 2024
1 parent 153eafd commit 7de1c98
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 41 deletions.
6 changes: 3 additions & 3 deletions _versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

export DOCKER_IMAGE='debian:testing-20240904-slim'

export CURL_VER_='8.9.1'
export CURL_HASH=f292f6cc051d5bbabf725ef85d432dfeacc8711dd717ea97612ae590643801e5
export CURL_VER_='8.10.0'
export CURL_HASH=e6b142f0e85e954759d37e26a3627e2278137595be80e3a860c4353e4335e5a0
# Create revision string
# NOTE: Set _REV to 1 after bumping CURL_VER_, then increment for each
# CI rebuild via `main` branch push (e.g. after bumping a dependency).
export _REV="${CW_REVISION:-3}"
export _REV="${CW_REVISION:-1}"

export TRURL_VER_='0.15'
export TRURL_HASH=e58d9a698c009b2b1381f5636b5334ce7704ad2cd5ae8d30da97d483518a7f25
Expand Down
48 changes: 10 additions & 38 deletions curl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,9 @@ _VER="$1"
options+=' -DCURL_DISABLE_BASIC_AUTH=ON -DCURL_DISABLE_BEARER_AUTH=ON -DCURL_DISABLE_DIGEST_AUTH=ON -DCURL_DISABLE_KERBEROS_AUTH=ON -DCURL_DISABLE_NEGOTIATE_AUTH=ON -DCURL_DISABLE_AWS=ON'
options+=' -DCURL_DISABLE_HTTP_AUTH=ON'
options+=' -DCURL_DISABLE_NTLM=ON'
if [ "${CURL_VER_}" != '8.9.1' ]; then
options+=' -DCURL_DISABLE_SHA512_256=ON'
fi
options+=' -DCURL_DISABLE_SHA512_256=ON'
options+=' -DCURL_DISABLE_DICT=ON -DCURL_DISABLE_FILE=ON -DCURL_DISABLE_GOPHER=ON -DCURL_DISABLE_MQTT=ON -DCURL_DISABLE_RTSP=ON -DCURL_DISABLE_SMB=ON -DCURL_DISABLE_TELNET=ON -DCURL_DISABLE_TFTP=ON'
if [ "${CURL_VER_}" != '8.9.1' ] && \
[ "${CURL_VER_}" != '8.10.0' ]; then
if [ "${CURL_VER_}" != '8.10.0' ]; then
options+=' -DCURL_DISABLE_IPFS=ON' # Pending: https://github.com/curl/curl/pull/14827
fi
options+=' -DCURL_DISABLE_FTP=ON'
Expand Down Expand Up @@ -175,13 +172,8 @@ _VER="$1"
fi
if [[ "${_DEPS}" = *'zstd'* ]] && [ -d "../zstd/${_PP}" ]; then
options+=' -DCURL_ZSTD=ON'
if [ "${CURL_VER_}" = '8.9.1' ]; then
options+=" -DZstd_INCLUDE_DIR=${_TOP}/zstd/${_PP}/include"
options+=" -DZstd_LIBRARY=${_TOP}/zstd/${_PP}/lib/libzstd.a"
else
options+=" -DZSTD_INCLUDE_DIR=${_TOP}/zstd/${_PP}/include"
options+=" -DZSTD_LIBRARY=${_TOP}/zstd/${_PP}/lib/libzstd.a"
fi
options+=" -DZSTD_INCLUDE_DIR=${_TOP}/zstd/${_PP}/include"
options+=" -DZSTD_LIBRARY=${_TOP}/zstd/${_PP}/lib/libzstd.a"
else
options+=' -DCURL_ZSTD=OFF'
fi
Expand Down Expand Up @@ -259,24 +251,10 @@ _VER="$1"
options+=' -DCURL_DISABLE_SRP=ON'

if [[ "${_DEPS}" = *'libssh1'* ]] && [ -d "../libssh/${_PPS}" ]; then
if [ "${CURL_VER_}" = '8.9.1' ]; then
# Detection picks OS-native copy. Only a manual configuration worked
# to defeat CMake's wisdom.
options+=' -DCURL_USE_LIBSSH=OFF'
options+=' -DCURL_USE_LIBSSH2=OFF'
options+=' -DUSE_LIBSSH=ON'
CPPFLAGS+=" -I${_TOP}/libssh/${_PPS}/include"
LDFLAGS+=" -L${_TOP}/libssh/${_PPS}/lib"
LIBS+=' -lssh'
if [ "${_OS}" = 'win' ]; then
LIBS+=' -liphlpapi' # for if_nametoindex
fi
else
options+=' -DCURL_USE_LIBSSH=ON'
options+=' -DCURL_USE_LIBSSH2=OFF'
options+=" -DLIBSSH_INCLUDE_DIR=${_TOP}/libssh/${_PPS}/include"
options+=" -DLIBSSH_LIBRARY=${_TOP}/libssh/${_PPS}/lib/libssh.a"
fi
options+=' -DCURL_USE_LIBSSH=ON'
options+=' -DCURL_USE_LIBSSH2=OFF'
options+=" -DLIBSSH_INCLUDE_DIR=${_TOP}/libssh/${_PPS}/include"
options+=" -DLIBSSH_LIBRARY=${_TOP}/libssh/${_PPS}/lib/libssh.a"
CPPFLAGS+=' -DLIBSSH_STATIC'
elif [[ "${_DEPS}" = *'libssh2'* ]] && [ -d "../libssh2/${_PPS}" ]; then
options+=' -DCURL_USE_LIBSSH2=ON'
Expand Down Expand Up @@ -376,16 +354,14 @@ _VER="$1"
options+=' -DBUILD_CURL_EXE=ON'
options+=' -DBUILD_STATIC_CURL=ON'
if [[ "${_DEPS}" = *'cacert'* ]] && \
[ "${CURL_VER_}" != '8.9.1' ]; then
if [[ "${_DEPS}" = *'cacert'* ]]; then
options+=" -DCURL_CA_EMBED=${_TOP}/cacert/${_CACERT}"
fi
# Pending: https://github.com/curl/curl/pull/14582
# Restrict to daily builds to avoid impacting the official distro.
if [ "${_OS}" = 'win' ] && \
[[ "${_CONFIG}" = *'dev'* ]] && \
[ "${CURL_VER_}" != '8.9.1' ] && \
[ "${CURL_VER_}" != '8.10.0' ]; then
options+=' -DCURL_CA_SEARCH_SAFE=ON'
fi
Expand Down Expand Up @@ -414,14 +390,10 @@ _VER="$1"
options+=' -DHAVE_WRITABLE_ARGV=1'
if [ "${_CRT}" = 'musl' ]; then
options+=' -DHAVE_POLL_FINE=1'
elif [ "${CURL_VER_}" = '8.9.1' ]; then
options+=' -DHAVE_POLL_FINE=1' # No longer needed after https://github.com/curl/curl/pull/14734
fi
fi
if [ "${CURL_VER_}" != '8.9.1' ]; then
options+=' -DCURL_USE_PKGCONFIG=OFF'
fi
options+=' -DCURL_USE_PKGCONFIG=OFF'
if [ "${CW_DEV_INCREMENTAL:-}" != '1' ] || [ ! -d "${_BLDDIR}" ]; then
# shellcheck disable=SC2086
Expand Down

0 comments on commit 7de1c98

Please sign in to comment.