diff options
author | mat <mat@FreeBSD.org> | 2016-09-08 22:12:41 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2016-09-08 22:12:41 +0800 |
commit | 172dd5fed650faffc6f5dc3c5f7e25f888bb4381 (patch) | |
tree | 8166b7645868e5642aef534794998a6b3fcdaf8a /Mk | |
parent | 72638ebb1b07e28d3f420d3a9f5a268533f568c8 (diff) | |
download | freebsd-ports-gnome-172dd5fed650faffc6f5dc3c5f7e25f888bb4381.tar.gz freebsd-ports-gnome-172dd5fed650faffc6f5dc3c5f7e25f888bb4381.tar.zst freebsd-ports-gnome-172dd5fed650faffc6f5dc3c5f7e25f888bb4381.zip |
Disable some checks for linux ports.
- shebang check: skip scripts in LINUXBASE. Things like /bin/bash are
valid in a Linux context. Also, these scripts usually only work with
a Linux shell so it doesn't make sense to try to make them work from a
FreeBSD shell.
- prefixvar check: allow LINUXBASE/var.
- proxydeps check: only test FreeBSD ELF files because ldd(1) doesn't
work with other ELF files.
PR: 212419
Submitted by: tijl
Sponsored by: Absolight
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Scripts/qa.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Mk/Scripts/qa.sh b/Mk/Scripts/qa.sh index f6cb2fc548e3..bdcdb9c98b9d 100644 --- a/Mk/Scripts/qa.sh +++ b/Mk/Scripts/qa.sh @@ -26,9 +26,9 @@ shebangonefile() { f="$@" rc=0 - # blacklist of files which are not intended to be runnable - case "${f##*/}" in - *.pm|*.pod|*.txt) + # whitelist some files + case "${f}" in + *.pm|*.pod|*.txt|${STAGEDIR}${LINUXBASE}/*) return 0 ;; esac @@ -306,7 +306,7 @@ libperl() { } prefixvar() { - if test -d ${STAGEDIR}${PREFIX}/var; then + if [ ${PREFIX} != ${LINUXBASE} -a -d ${STAGEDIR}${PREFIX}/var ]; then warn "port uses ${PREFIX}/var instead of /var" fi } @@ -662,7 +662,7 @@ proxydeps() { done <<-EOT $(cd ${STAGEDIR} && find -s . -type f \( -perm +111 -o -name '*.so*' \) | \ file -F $'\1' -f - | \ - grep -a 'ELF.*dynamically linked' | \ + grep -a 'ELF.*FreeBSD.*dynamically linked' | \ cut -f 1 -d $'\1'| \ sed -e 's/^\.//') EOT |