From owner-svn-ports-all@freebsd.org Thu Sep 8 14:12:42 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C3E58BD0AD9; Thu, 8 Sep 2016 14:12:42 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8F4DAA63; Thu, 8 Sep 2016 14:12:42 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u88ECfMA067405; Thu, 8 Sep 2016 14:12:41 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u88ECfoH067404; Thu, 8 Sep 2016 14:12:41 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201609081412.u88ECfoH067404@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Thu, 8 Sep 2016 14:12:41 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r421553 - head/Mk/Scripts X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2016 14:12:42 -0000 Author: mat Date: Thu Sep 8 14:12:41 2016 New Revision: 421553 URL: https://svnweb.freebsd.org/changeset/ports/421553 Log: 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 Modified: head/Mk/Scripts/qa.sh (contents, props changed) Modified: head/Mk/Scripts/qa.sh ============================================================================== --- head/Mk/Scripts/qa.sh Thu Sep 8 14:08:04 2016 (r421552) +++ head/Mk/Scripts/qa.sh Thu Sep 8 14:12:41 2016 (r421553) @@ -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