From 9ba22087cfa3fc62e79613b0ae42a314cd135acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20Miku=C4=8Dionis?= Date: Wed, 20 Sep 2023 10:57:06 +0200 Subject: [PATCH 1/2] Updated libxml2 to 2.11.5 and changed source to github mirror as the official gitlab is down --- cmake/libxml2.cmake | 25 ++++++++++++++----------- getlibs/sources.sh | 4 ++-- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/cmake/libxml2.cmake b/cmake/libxml2.cmake index af5b41a..5d6c294 100644 --- a/cmake/libxml2.cmake +++ b/cmake/libxml2.cmake @@ -16,17 +16,20 @@ else(LibXml2_FOUND) seT(LIBXML2_WITH_THREADS OFF CACHE BOOL "LibXml2 multithread support") set(LIBXML2_WITH_TESTS OFF CACHE BOOL "LibXml2 Tests") FetchContent_Declare(LibXml2 - GIT_REPOSITORY https://gitlab.gnome.org/GNOME/libxml2 - GIT_TAG v2.11.4 - GIT_SHALLOW ON - GIT_PROGRESS ON - UPDATE_DISCONNECTED ON - USES_TERMINAL_DOWNLOAD ON - USES_TERMINAL_CONFIGURE ON - USES_TERMINAL_BUILD ON - USES_TERMINAL_INSTALL ON - FIND_PACKAGE_ARGS NAMES LibXml2 - ) + URL https://download.gnome.org/sources/libxml2/2.11/libxml2-2.11.5.tar.xz + URL_HASH SHA256=3727b078c360ec69fa869de14bd6f75d7ee8d36987b071e6928d4720a28df3a6 + #GIT_REPOSITORY https://gitlab.gnome.org/GNOME/libxml2 # often down + #GIT_REPOSITORY https://github.com/GNOME/libxml2.git # mirror + #GIT_TAG v2.11.5 + GIT_SHALLOW ON + GIT_PROGRESS ON + UPDATE_DISCONNECTED ON + USES_TERMINAL_DOWNLOAD ON + USES_TERMINAL_CONFIGURE ON + USES_TERMINAL_BUILD ON + USES_TERMINAL_INSTALL ON + FIND_PACKAGE_ARGS NAMES LibXml2 + ) FetchContent_MakeAvailable(LibXml2) message(STATUS "Got LibXml2.") endif(LibXml2_FOUND) diff --git a/getlibs/sources.sh b/getlibs/sources.sh index 55f6569..10fd7ce 100644 --- a/getlibs/sources.sh +++ b/getlibs/sources.sh @@ -8,10 +8,10 @@ SOURCE="$LOCAL/source" BW="\e[1;97m" # bold white NC="\e[0m" # no color -LIBXML2=libxml2-2.11.4 +LIBXML2=libxml2-2.11.5 LIBXML2_Z="${LIBXML2}.tar.xz" LIBXML2_URL="https://people.cs.aau.dk/~marius/mirrors/libxml2/${LIBXML2_Z}" -LIBXML2_SHA256=737e1d7f8ab3f139729ca13a2494fd17bf30ddb4b7a427cf336252cab57f57f7 +LIBXML2_SHA256=3727b078c360ec69fa869de14bd6f75d7ee8d36987b071e6928d4720a28df3a6 DOCTEST=doctest-2.4.11 DOCTEST_Z="${DOCTEST}.tar.gz" From 510a890618e7649c44eb3889c1ddfc255865d62c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20Miku=C4=8Dionis?= Date: Thu, 21 Sep 2023 16:05:28 +0200 Subject: [PATCH 2/2] Switch to github mirror --- cmake/libxml2.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/libxml2.cmake b/cmake/libxml2.cmake index 5d6c294..df087bb 100644 --- a/cmake/libxml2.cmake +++ b/cmake/libxml2.cmake @@ -16,11 +16,11 @@ else(LibXml2_FOUND) seT(LIBXML2_WITH_THREADS OFF CACHE BOOL "LibXml2 multithread support") set(LIBXML2_WITH_TESTS OFF CACHE BOOL "LibXml2 Tests") FetchContent_Declare(LibXml2 - URL https://download.gnome.org/sources/libxml2/2.11/libxml2-2.11.5.tar.xz - URL_HASH SHA256=3727b078c360ec69fa869de14bd6f75d7ee8d36987b071e6928d4720a28df3a6 + GIT_REPOSITORY https://github.com/GNOME/libxml2.git # mirror #GIT_REPOSITORY https://gitlab.gnome.org/GNOME/libxml2 # often down - #GIT_REPOSITORY https://github.com/GNOME/libxml2.git # mirror - #GIT_TAG v2.11.5 + GIT_TAG v2.11.5 + #URL https://download.gnome.org/sources/libxml2/2.11/libxml2-2.11.5.tar.xz + #URL_HASH SHA256=3727b078c360ec69fa869de14bd6f75d7ee8d36987b071e6928d4720a28df3a6 GIT_SHALLOW ON GIT_PROGRESS ON UPDATE_DISCONNECTED ON