[Drbd-dev] spatch error message is not accurate
T.J. Yang
tjyang2001 at gmail.com
Sun Mar 22 17:34:22 CET 2020
Hi
I tried to compile drbd9 master branch on centos 8 which come with spatch
1.0.7 only.
following is one-liner patch to make error message match the checks(if hash
spatch && spatch_is_recent; then) in drbd-kernel-compat/gen_compat_patch.sh
diff --git a/drbd/drbd-kernel-compat/gen_compat_patch.sh
b/drbd/drbd-kernel-compat/gen_compat_patch.sh
index 19466081..d6f34286 100644
--- a/drbd/drbd-kernel-compat/gen_compat_patch.sh
+++ b/drbd/drbd-kernel-compat/gen_compat_patch.sh
@@ -105,6 +105,6 @@ elif test ! -e ../.git && [[ $SPAAS = true ]]; then
echo " You can create a new .tgz including this pre-computed compat
patch"
echo " by calling \"echo drbd-$REL_VERSION/drbd/$compat_patch
>>.filelist ; make tgz\""
else
- echo "ERROR: spatch not found in \$PATH. Install package 'coccinelle'!"
+ echo "ERROR: spatch is older than version $MIN_SPATCH_VERSION OR spatch
not found in \$PATH. Install package 'coccinelle'!"
exit 1
fi
Regards
--
T.J. Yang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-dev/attachments/20200322/cb19ae13/attachment.htm>
More information about the drbd-dev
mailing list