Skip to content

Commit 0f80307

Browse files
authored
Bump git 2.45.2 → 2.47.0 (#1708)
1 parent 97c8b6d commit 0f80307

File tree

4 files changed

+72
-4
lines changed

4 files changed

+72
-4
lines changed

docker/Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,14 @@ RUN manylinux-entrypoint /build_scripts/install-build-packages.sh
7272

7373

7474
FROM build_base AS build_git
75+
COPY build_scripts/build-curl.sh /build_scripts/
76+
RUN export CURL_ROOT=curl-8.11.0 && \
77+
export CURL_HASH=264537d90e58d2b09dddc50944baf3c38e7089151c8986715e2aaeaaf2b8118f && \
78+
export CURL_DOWNLOAD_URL=https://curl.haxx.se/download && \
79+
manylinux-entrypoint /build_scripts/build-curl.sh
7580
COPY build_scripts/build-git.sh /build_scripts/
76-
RUN export GIT_ROOT=git-2.45.2 && \
77-
export GIT_HASH=98b26090ed667099a3691b93698d1e213e1ded73d36a2fde7e9125fce28ba234 && \
81+
RUN export GIT_ROOT=git-2.47.0 && \
82+
export GIT_HASH=a84a7917e0ab608312834413f01fc01edc7844f9f9002ba69f3b4f4bcb8d937a && \
7883
export GIT_DOWNLOAD_URL=https://www.kernel.org/pub/software/scm/git && \
7984
manylinux-entrypoint /build_scripts/build-git.sh
8085

docker/build_scripts/build-curl.sh

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#!/bin/bash
2+
# Top-level build script called from Dockerfile
3+
4+
# Stop at any error, show all commands
5+
set -exuo pipefail
6+
7+
# Get script directory
8+
MY_DIR=$(dirname "${BASH_SOURCE[0]}")
9+
10+
# Get build utilities
11+
source $MY_DIR/build_utils.sh
12+
13+
# Install a more recent curl
14+
check_var ${CURL_ROOT}
15+
check_var ${CURL_HASH}
16+
check_var ${CURL_DOWNLOAD_URL}
17+
18+
# Only needed on manylinux2014
19+
if [ "${AUDITWHEEL_POLICY}" != "manylinux2014" ]; then
20+
echo "skipping installation of ${CURL_ROOT}"
21+
exit 0
22+
fi
23+
24+
if which yum; then
25+
yum erase -y curl-devel
26+
else
27+
apk del curl-dev
28+
fi
29+
30+
SO_COMPAT=4
31+
PREFIX=/opt/_internal/curl-${SO_COMPAT}
32+
33+
fetch_source ${CURL_ROOT}.tar.gz ${CURL_DOWNLOAD_URL}
34+
check_sha256sum ${CURL_ROOT}.tar.gz ${CURL_HASH}
35+
tar -xzf ${CURL_ROOT}.tar.gz
36+
pushd ${CURL_ROOT}
37+
./configure --prefix=${PREFIX} --disable-static --without-libpsl --with-openssl CPPFLAGS="${MANYLINUX_CPPFLAGS}" CFLAGS="${MANYLINUX_CFLAGS}" CXXFLAGS="${MANYLINUX_CXXFLAGS}" LDFLAGS="${MANYLINUX_LDFLAGS} -Wl,-rpath=\$(LIBRPATH)" > /dev/null
38+
make > /dev/null
39+
make install > /dev/null
40+
popd
41+
rm -rf ${CURL_ROOT} ${CURL_ROOT}.tar.gz ${PREFIX}/share/man
42+
43+
if [ ! -f ${PREFIX}/lib/libcurl.so.${SO_COMPAT} ]; then
44+
echo "please update SO_COMPAT"
45+
ls -al ${PREFIX}/lib
46+
exit 1
47+
fi
48+
49+
strip_ ${PREFIX}
50+
51+
${PREFIX}/bin/curl --version
52+
${PREFIX}/bin/curl-config --features
53+
54+
mkdir -p /manylinux-rootfs/${PREFIX}/lib
55+
cp -f ${PREFIX}/lib/libcurl.so.${SO_COMPAT} /manylinux-rootfs/${PREFIX}/lib/

docker/build_scripts/build-git.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ if [ "${AUDITWHEEL_POLICY}" == "manylinux2014" ]; then
1818
export NO_UNCOMPRESS2=1
1919
fi
2020

21+
if [ -d /opt/_internal ]; then
22+
CURL_PREFIX=$(find /opt/_internal -maxdepth 1 -name 'curl-*')
23+
if [ "${CURL_PREFIX}" != "" ]; then
24+
export CURLDIR=${CURL_PREFIX}
25+
export CURL_LDFLAGS="-Wl,-rpath=${CURL_PREFIX}/lib $(${CURL_PREFIX}/bin/curl-config --libs)"
26+
fi
27+
fi
28+
2129
# Install newest git
2230
check_var ${GIT_ROOT}
2331
check_var ${GIT_HASH}

tools/update_native_dependencies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ def _update_with_root(tool, dry_run):
7070
"libtool": "autotools-mirror/libtool",
7171
"git": "git/git",
7272
"openssl": "openssl/openssl",
73+
"curl": "curl/curl",
7374
}
7475
major = {
7576
"openssl": "3.0",
76-
"git": "2.45", # 2.46+ can't build on CentOS 7
7777
}
7878
only = {
7979
"autoconf": r"~v?[0-9]+\.[0-9]+(\.[0-9]+)?$",
@@ -196,7 +196,7 @@ def main():
196196
_update_cpython(args.dry_run)
197197
_update_sqlite(args.dry_run)
198198
_update_tcltk(args.dry_run)
199-
for tool in ["autoconf", "automake", "libtool", "git", "openssl"]:
199+
for tool in ["autoconf", "automake", "libtool", "git", "openssl", "curl"]:
200200
_update_with_root(tool, args.dry_run)
201201
for tool in ["libxcrypt"]:
202202
_update_with_gh(tool, args.dry_run)

0 commit comments

Comments
 (0)