svn commit: r421555 - head/Mk/Scripts
Mathieu Arnold
mat at FreeBSD.org
Thu Sep 8 14:13:00 UTC 2016
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'| \
More information about the svn-ports-all
mailing list