From decd737cfe3ddba16aed4087a31e6252aa312663 Mon Sep 17 00:00:00 2001 From: Josef Schlehofer Date: Tue, 5 May 2026 09:17:26 +0200 Subject: [PATCH] gots_engine: fix PKG_MIRROR_HASH It was discovered by CI/CD that it is no longer valid. Fixes: ``` 2026-04-29T13:04:58.0170130Z SHELL= flock /builder/tmp/.gost_engine-3.0.3.tar.zst.flock -c ' /builder/scripts/download.pl "/builder/dl" "gost_engine-3.0.3.tar.zst" "ad88b0bc4ede265bc91757f0bb9777a381f8e271faa43992a054ddd5f435ad88" "" || ( /builder/scripts/dl_github_archive.py --dl-dir="/builder/dl" --url="https://github.com/gost-engine/engine" --version="v3.0.3" --subdir="gost_engine-3.0.3" --source="gost_engine-3.0.3.tar.zst" --hash="ad88b0bc4ede265bc91757f0bb9777a381f8e271faa43992a054ddd5f435ad88" --submodules || ( echo "Checking out files from the git repository..."; mkdir -p /builder/tmp/dl && cd /builder/tmp/dl && rm -rf gost_engine-3.0.3 && [ \! -d gost_engine-3.0.3 ] && git clone https://github.com/gost-engine/engine gost_engine-3.0.3 && (cd gost_engine-3.0.3 && git checkout v3.0.3) && export TAR_TIMESTAMP=`cd gost_engine-3.0.3 && git log -1 --no-show-signature --format='\''@%ct'\''` && echo "Generating formal git archive (apply .gitattributes rules)" && (cd gost_engine-3.0.3 && git config core.abbrev 8 && git archive --format=tar HEAD --output=../gost_engine-3.0.3.tar.git) && tar --numeric-owner --owner=0 --group=0 --ignore-failed-read -C gost_engine-3.0.3 -f gost_engine-3.0.3.tar.git -r .git .gitmodules 2>/dev/null && rm -rf gost_engine-3.0.3 && mkdir gost_engine-3.0.3 && tar -C gost_engine-3.0.3 -xf gost_engine-3.0.3.tar.git && (cd gost_engine-3.0.3 && git submodule update --init --recursive -- && rm -rf .git .gitmodules) && echo "Packing checkout..." && tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c gost_engine-3.0.3 | zstd -T0 --ultra -20 -c > /builder/tmp/dl/gost_engine-3.0.3.tar.zst && mv /builder/tmp/dl/gost_engine-3.0.3.tar.zst /builder/dl/ && rm -rf gost_engine-3.0.3; ); ) && ( file_hash="$(/builder/staging_dir/host/bin/mkhash sha256 "/builder/dl/gost_engine-3.0.3.tar.zst")"; [ "$file_hash" = "ad88b0bc4ede265bc91757f0bb9777a381f8e271faa43992a054ddd5f435ad88" ] || [ "ad88b0bc4ede265bc91757f0bb9777a381f8e271faa43992a054ddd5f435ad88" = "skip" ] || { echo "Hash mismatch for file gost_engine-3.0.3.tar.zst: expected ad88b0bc4ede265bc91757f0bb9777a381f8e271faa43992a054ddd5f435ad88, got $file_hash"; false; }; ) ' 2026-04-29T13:04:58.0559677Z + curl -f --connect-timeout 5 --retry 3 --location https://sources.cdn.openwrt.org/gost_engine-3.0.3.tar.zst 2026-04-29T13:04:58.0616240Z % Total % Received % Xferd Average Speed Time Time Time Current 2026-04-29T13:04:58.0616964Z Dload Upload Total Spent Left Speed 2026-04-29T13:04:58.0617618Z 2026-04-29T13:04:58.1364520Z 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2026-04-29T13:04:58.1365467Z 100 977k 100 977k 0 0 12.8M 0 --:--:-- --:--:-- --:--:-- 12.8M 2026-04-29T13:04:58.1453386Z Hash of the downloaded file does not match (file: b3a6701cd97e4db4f3e0f4b356c991075c6157dd3941d34851c8f36baa1d2721, requested: ad88b0bc4ede265bc91757f0bb9777a381f8e271faa43992a054ddd5f435ad88) - deleting download. ``` Signed-off-by: Josef Schlehofer (cherry picked from commit cba772d9553e5e4074a2416205ec5fdcdcd9369e) --- libs/gost_engine/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gost_engine/Makefile b/libs/gost_engine/Makefile index d70b1057fa..ef101f47ff 100644 --- a/libs/gost_engine/Makefile +++ b/libs/gost_engine/Makefile @@ -8,7 +8,7 @@ PKG_RELEASE:=12 PKG_SOURCE_PROTO:=git PKG_SOURCE_VERSION:=v$(PKG_VERSION) PKG_SOURCE_URL:=https://github.com/gost-engine/engine -PKG_MIRROR_HASH:=ad88b0bc4ede265bc91757f0bb9777a381f8e271faa43992a054ddd5f435ad88 +PKG_MIRROR_HASH:=b3a6701cd97e4db4f3e0f4b356c991075c6157dd3941d34851c8f36baa1d2721 PKG_MAINTAINER:=Artur Petrov PKG_LICENSE:=Apache-2.0