Skip to content

Commit b131fd7

Browse files
committed
cmake: add mirrors for gnu.org packages
``` -- Using src='https://ftp.gnu.org/gnu/libidn/libidn2-2.3.8.tar.gz' CMake Error at libidn2_external-stamp/download-libidn2_external.cmake:162 (message): Each download failed! error: downloading 'https://ftp.gnu.org/gnu/libidn/libidn2-2.3.8.tar.gz' failed status_code: 35 status_string: "SSL connect error" log: ``` Ref: https://github.com/curl/curl/actions/runs/17647584136/job/50149580037?pr=18522
1 parent 4a8c395 commit b131fd7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ add_dependencies(nghttp2_external ${OPENSSL_DEP} zlib_external)
157157
#
158158
# renovate: datasource=github-tags depName=libidn/libidn2
159159
set(LIBIDN2_VERSION 2.3.8)
160-
set(LIBIDN2_URL https://ftp.gnu.org/gnu/libidn/libidn2-${LIBIDN2_VERSION}.tar.gz)
160+
set(LIBIDN2_URL https://ftp.gnu.org/gnu/libidn/libidn2-${LIBIDN2_VERSION}.tar.gz
161+
https://ftpmirror.gnu.org/libidn/libidn2-${LIBIDN2_VERSION}.tar.gz)
161162
set(LIBIDN2_INSTALL_DIR ${CMAKE_BINARY_DIR}/libidn2-install)
162163
set(LIBIDN2_STATIC_LIB ${LIBIDN2_INSTALL_DIR}/lib/libidn2.a)
163164

@@ -174,7 +175,8 @@ ExternalProject_Add(
174175

175176
# Install GDB if GDBMODE is set
176177
set(GDB_VERSION 13.2)
177-
set(GDB_URL https://ftp.gnu.org/gnu/gdb/gdb-${GDB_VERSION}.tar.gz)
178+
set(GDB_URL https://ftp.gnu.org/gnu/gdb/gdb-${GDB_VERSION}.tar.gz
179+
https://ftpmirror.gnu.org/gdb/gdb-${GDB_VERSION}.tar.gz)
178180
set(GDB_INSTALL_DIR ${CMAKE_BINARY_DIR}/gdb-install)
179181

180182
option(BUILD_GDB "Build GDB as an external project" OFF)

0 commit comments

Comments
 (0)