when SAMBA_VERSION_VENDOR_SUFFIX is defined, then mkversion.sh tests SAMBA_VENDOR_PATCH but falls over with an error from test because its arg isn't quoted if test -n ${SAMBA_VENDOR_PATCH}; then echo -n "-${SAMBA_VENDOR_PATCH}" fi
This is now a part of waf as buildtools/wafsamba/samba_version.py so this is no longer an issue in current supported versions.