aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2016-06-23 19:31:15 +0800
committermat <mat@FreeBSD.org>2016-06-23 19:31:15 +0800
commit7f1e772e1007af3c66bb4f67194cf385dcf2324b (patch)
tree3df8dad14cb181ea08ee7a61783621188827dfe3
parent6e0ac1da7142a45825314cf21af088028b0f34aa (diff)
downloadfreebsd-ports-gnome-7f1e772e1007af3c66bb4f67194cf385dcf2324b.tar.gz
freebsd-ports-gnome-7f1e772e1007af3c66bb4f67194cf385dcf2324b.tar.zst
freebsd-ports-gnome-7f1e772e1007af3c66bb4f67194cf385dcf2324b.zip
Extend the symlink checks to warn on absolute targets.
Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D6930
-rw-r--r--Mk/Scripts/qa.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/Mk/Scripts/qa.sh b/Mk/Scripts/qa.sh
index 5a46b4c261ea..3462295ee290 100644
--- a/Mk/Scripts/qa.sh
+++ b/Mk/Scripts/qa.sh
@@ -134,6 +134,9 @@ symlinks() {
err "Bad symlink '${l#${STAGEDIR}${PREFIX}/}' pointing inside the stage directory"
rc=1
;;
+ /*)
+ warn "Bad symlink '${l#${STAGEDIR}}' pointing to an absolute pathname '${link}'"
+ ;;
esac
# Use heredoc to avoid losing rc from find|while subshell.
done <<-EOF
@@ -607,7 +610,9 @@ proxydeps() {
return ${rc}
}
-checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo suidfiles libtool libperl prefixvar baselibs terminfo proxydeps"
+checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo"
+checks="$checks suidfiles libtool libperl prefixvar baselibs terminfo"
+checks="$checks proxydeps"
ret=0
cd ${STAGEDIR}