From: Alexandru Ardelean Date: Wed, 5 Aug 2026 06:51:17 +0000 (+0300) Subject: imagemagick: add test-version.sh version override X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=8e89b97254ce8da89ddb89c2366578aff67ce292;p=openwrt-packages.git imagemagick: add test-version.sh version override The binaries print the version as X.Y.Z-R while PKG_VERSION is X.Y.Z.R, so the generic per-executable version probe never matches and the job fails. Add a test-version.sh override that greps for the dashed form, mirroring the conversion the runtime test.sh already does. Signed-off-by: Alexandru Ardelean --- diff --git a/multimedia/imagemagick/test-version.sh b/multimedia/imagemagick/test-version.sh new file mode 100755 index 000000000..0e433ec82 --- /dev/null +++ b/multimedia/imagemagick/test-version.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# shellcheck shell=busybox + +case "$PKG_NAME" in +imagemagick) + # PKG_VERSION is X.Y.Z.R but the binaries print X.Y.Z-R. + magick -version | grep -F "$(echo "$PKG_VERSION" | sed 's/\.\([0-9]*\)$/-\1/')" + ;; +*) + echo "Untested package: $PKG_NAME" >&2 + exit 1 + ;; +esac