From f2425c5cbd8838a37f390a13ed209a3774bb32b4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 21 Apr 2022 01:00:14 +0200 Subject: [PATCH] Check that no symlinks are included in the distribution archives They're not handled by the current 7z version under MSW if the user doesn't have administrative rights and, instead of dealing with this, it's simpler to just never include any symlinks in the archives as we don't really need them anyhow. So add a check ensuring that no symlinks are included in the distribution archives to avoid more problems such as the one fixed in the parent commit in the future. --- build/tools/release.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build/tools/release.sh b/build/tools/release.sh index b7204489c9..f0518341de 100755 --- a/build/tools/release.sh +++ b/build/tools/release.sh @@ -47,6 +47,18 @@ tar x -C $destdir -i cd $destdir +# Check that there are no symlinks because we don't handle them correctly +# under MSW systems currently. +if ! find . -type l -exec false {} + -quit; then + set +x + echo 'There are unexpected symlinks in the source tree:' >&2 + echo '' >& 2 + find . -type l -fprint /dev/stderr + echo '' >& 2 + echo 'Please remove them or fix #22271.' >&2 + exit 2 +fi + # Compile gettext catalogs. make -C $prefix/locale -s MSGFMT=msgfmt allmo