community/rspamd-3.6-r1 (Alpine 3.18): Cannot build from source: Wrong SHA-512 checksum for a remote distfile
The APKBUILD
file seems to have a wrong SHA-512 checksum for the remote distfile ffbab4fbf218514845b8e5209aec044621b1f460.patch
.
The appropriate SHA-512 checksum for this distfile is the following:
78c02a80f099c52f15f56c3d52f0eb6103243d7090083e60dffad0ffdc45f9318e05aa5db601ff14ae1a6b1412e11eeb556670ad2fc0d413770600378458a5e8 ffbab4fbf218514845b8e5209aec044621b1f460.patch
The commit 7aa34532 brought this patch to fix a memory leak by extracting a patch from a commit of the upstream repository.
Since the commit is identified by its SHA-1 value, I do not really understand how the package could have been built in the first place.
Maybe GitHub changed something in how the .patch
URLs are rendered...
cc @a16bitsysop
Build failure log
$ cd aports/community/rspamd && abuild -r
>>> rspamd: Building community/rspamd 3.6-r1 (using abuild 3.11.1-r0) started Fri, 01 Dec 2023 14:37:11 +0000
>>> rspamd: Checking sanity of /home/abuilder/aports/community/rspamd/APKBUILD...
>>> WARNING: rspamd: rspamd.post-upgrade: found chown
Permissions should be fixed in APKBUILD package()
>>> rspamd: Analyzing dependencies...
>>> rspamd: Installing for build: build-base icu-data-full cmake curl-dev fmt-dev glib-dev icu-dev libsodium-dev libstemmer-dev openssl-dev>3 pcre2-dev perl ragel samurai sqlite-dev xxhash-dev zlib-dev zstd-dev luajit-dev vectorscan-dev
---8<--- installation of build deps ---8<---
>>> rspamd: Cleaning up srcdir
>>> rspamd: Cleaning up pkgdir
>>> rspamd: Fetching rspamd-3.6.tar.gz::https://github.com/rspamd/rspamd/archive/3.6.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 5706k 0 5706k 0 0 4036k 0 --:--:-- 0:00:01 --:--:-- 7885k
>>> rspamd: Fetching https://github.com/rspamd/rspamd/commit/ffbab4fbf218514845b8e5209aec044621b1f460.patch
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1704 100 1704 0 0 5500 0 --:--:-- --:--:-- --:--:-- 5514
>>> rspamd: Fetching rspamd-3.6.tar.gz::https://github.com/rspamd/rspamd/archive/3.6.tar.gz
>>> rspamd: Fetching https://github.com/rspamd/rspamd/commit/ffbab4fbf218514845b8e5209aec044621b1f460.patch
>>> rspamd: Checking sha512sums...
rspamd-3.6.tar.gz: OK
rspamd.logrotated: OK
rspamd.initd: OK
rspamd.confd: OK
10-control_socket.patch: OK
20-default-configs.patch: OK
30-unbundle-snowball.patch: OK
no-avx-test.patch: OK
fix-test.patch: OK
ffbab4fbf218514845b8e5209aec044621b1f460.patch: FAILED
sha512sum: WARNING: 1 of 1 computed checksums did NOT match
Because the remote file above failed the sha512sum check it will be renamed.
Rebuilding will cause it to re-download which in some cases may fix the problem.
Renaming: ffbab4fbf218514845b8e5209aec044621b1f460.patch to ffbab4fbf218514845b8e5209aec044621b1f460.patch.3d37fbeb
>>> ERROR: rspamd: unpack failed
>>> rspamd: Uninstalling dependencies...
---8<--- uninstallation of build deps ---8<---