Author: brane
Date: Sat Jan 24 22:51:11 2026
New Revision: 1931525
Log:
Improve the ABI tracker install script.
* abi/src/install.sh: Replace config.guess only for the autotools builds.
The previous case pattern would catch anything newer than 1.3, too.
(patches): Construct the patch file location only once.
Modified:
serf/tools/abi/src/install.sh
Modified: serf/tools/abi/src/install.sh
==============================================================================
--- serf/tools/abi/src/install.sh Sat Jan 24 20:10:03 2026
(r1931524)
+++ serf/tools/abi/src/install.sh Sat Jan 24 22:51:11 2026
(r1931525)
@@ -10,26 +10,27 @@ if [ "x$OPENSSL" != "x" ]; then
fi
# Patch
+patches="$(dirname "$0")/../patches"
case "$version" in
1.3.9|1.3.10)
# Prepend custom OpenSSL paths so that we don't pick up a newer
# version from the system.
- patch -p0 < $(dirname "$0")/../patches/1.3.9-openssl-first.patch
+ patch -p0 < "$patches/1.3.9-openssl-first.patch"
;;
1.3.*)
# As above, but with a slightly different syntax.
- patch -p0 < $(dirname "$0")/../patches/1.3.8-openssl-first.patch
+ patch -p0 < "$patches/1.3.8-openssl-first.patch"
;;
- *)
+ 0.*|1.0.*|1.1.*|1.2.*)
if [ "$version" = "0.6.1" ]; then
# See the log message in the patch.
- patch -p0 < $(dirname "$0")/../patches/0.6.1-build-problem.patch
+ patch -p0 < "$patches/0.6.1-build-problem.patch"
fi
# Older tarballs contain antedeluvial versions of config.guess that
# can't properly detect modern platforms such as aarch64 Linux.
- cp $(dirname "$0")/../patches/config.guess build/config.guess
- cp $(dirname "$0")/../patches/config.sub build/config.sub
+ cp "$patches/config.guess" build/config.guess
+ cp "$patches/config.sub" build/config.sub
;;
esac