Date: Thu, 8 Sep 2016 14:12:59 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r421555 - head/Mk/Scripts Message-ID: <201609081412.u88ECxNN067641@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mat Date: Thu Sep 8 14:12:58 2016 New Revision: 421555 URL: https://svnweb.freebsd.org/changeset/ports/421555 Log: Provide a standard way to look up for executables and shared libraries. PR: 211146 Submitted by: yuri rawbw com 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:12:55 2016 (r421554) +++ head/Mk/Scripts/qa.sh Thu Sep 8 14:12:58 2016 (r421555) @@ -20,6 +20,10 @@ err() { echo "Error: $@" >&2 } +list_stagedir_elfs() { + cd ${STAGEDIR} && find -s . -type f \( -perm +111 -o -name '*.so*' \) "$@" +} + shebangonefile() { local f interp rc @@ -115,9 +119,7 @@ baselibs() { ;; esac done <<-EOF - $(find ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/sbin \ - ${STAGEDIR}${PREFIX}/lib ${STAGEDIR}${PREFIX}/libexec \ - -type f -exec readelf -d {} + 2>/dev/null) + $(list_stagedir_elfs -exec readelf -d {} + 2>/dev/null) EOF if [ -z "${USESSSL}" -a -n "${found_openssl}" ]; then warn "you need USES=ssl" @@ -660,7 +662,7 @@ proxydeps() { !/^\// && section<=1 && ($3 ~ "^'${PREFIX}'" || $3 ~ "^'${LOCALBASE}'") {print $3}') EOT done <<-EOT - $(cd ${STAGEDIR} && find -s . -type f \( -perm +111 -o -name '*.so*' \) | \ + $(list_stagedir_elfs | \ file -F $'\1' -f - | \ grep -a 'ELF.*FreeBSD.*dynamically linked' | \ cut -f 1 -d $'\1'| \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609081412.u88ECxNN067641>