]> git.99rst.org Git - openwrt-packages.git/commitdiff
giflib: add version check override
authorJosef Schlehofer <redacted>
Tue, 30 Jun 2026 13:32:58 +0000 (15:32 +0200)
committerJosef Schlehofer <redacted>
Tue, 30 Jun 2026 21:30:05 +0000 (23:30 +0200)
The giflib-utils executables (gif2rgb, gifbuild, gifclrmp, giffix,
giftext, giftool) do not report the package version when run, which
causes the generic version probe to fail.

Add a test-version.sh to skip the version check for the giflib and
giflib-utils packages.

Signed-off-by: Josef Schlehofer <redacted>
libs/giflib/test-version.sh [new file with mode: 0755]

diff --git a/libs/giflib/test-version.sh b/libs/giflib/test-version.sh
new file mode 100755 (executable)
index 0000000..0b3c938
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# shellcheck shell=busybox
+
+# None of the giflib-utils executables print the package version.
+# Skip the generic version probe.
+
+case "$PKG_NAME" in
+giflib|giflib-utils)
+       exit 0
+       ;;
+
+*)
+       echo "Untested package: $PKG_NAME" >&2
+       exit 1
+       ;;
+esac
git clone https://git.99rst.org/PROJECT