From 3ac0d340f6f666199728f84ec7afd3bdced33deb Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Thu, 31 Oct 2024 14:12:32 -0400 Subject: [PATCH] download jansson from github releases previous url seems very flaky --- bin/package-version | 2 +- pre_build.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/package-version b/bin/package-version index 7c239b1..f8e839b 100755 --- a/bin/package-version +++ b/bin/package-version @@ -7,7 +7,7 @@ _ROOT = os.path.dirname(os.path.abspath(os.path.dirname(__file__))) # if 0: use the upstream version # if >0: append `.post1` / `.a1` as needed -SERIAL = 0 +SERIAL = 1 def main() -> int: diff --git a/pre_build.sh b/pre_build.sh index b93d24e..01c9bdd 100755 --- a/pre_build.sh +++ b/pre_build.sh @@ -17,7 +17,7 @@ else fi JANSSON_HASH=6e85f42dabe49a7831dbdd6d30dca8a966956b51a9a50ed534b82afc3fa5b2f4 -JANSSON_DOWNLOAD_URL=http://www.digip.org/jansson/releases +JANSSON_DOWNLOAD_URL=https://github.com/akheron/jansson/releases/download/v2.11/jansson-2.11.tar.gz JANSSON_ROOT=jansson-2.11 PCRE2_HASH=86b9cb0aa3bcb7994faa88018292bc704cdbb708e785f7c74352ff6ea7d3175b @@ -103,7 +103,7 @@ function check_sha256sum { function build_jansson { if [ -e jansson-stamp ]; then return; fi echo "building jansson from $JANSSON_DOWNLOAD_URL" - fetch_unpack "${JANSSON_DOWNLOAD_URL}/${JANSSON_ROOT}.tar.gz" + fetch_unpack "${JANSSON_DOWNLOAD_URL}" check_sha256sum "${ARCHIVE_SDIR:-archives}/${JANSSON_ROOT}.tar.gz" "${JANSSON_HASH}" (cd "${JANSSON_ROOT}" \ && ./configure --prefix="$BUILD_PREFIX" \