Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168379315
D58899.id184216.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D58899.id184216.diff
View Options
diff --git a/Mk/Scripts/qa.sh b/Mk/Scripts/qa.sh
--- a/Mk/Scripts/qa.sh
+++ b/Mk/Scripts/qa.sh
@@ -116,6 +116,15 @@
local rc
local found_openssl
local file
+
+ # list_stagedir_elfs() enters ${STAGEDIR}, but only inside the subshell
+ # that runs find. In the pipeline below that feeds the while loop, the
+ # paths find prints are relative, so file(1) and readelf must be in
+ # ${STAGEDIR} too, hence the cd ${STAGEDIR} before the whole pipeline.
+ #
+ # readelf prints "File:" headers only when given two or more operands,
+ # hence the trailing ld-elf.so.1.
+
[ "${PKGBASE}" = "pkg" -o "${PKGBASE}" = "pkg-devel" ] && return
while read -r f; do
@@ -136,7 +145,12 @@
;;
esac
done <<-EOF
- $(list_stagedir_elfs -exec readelf -d {} \; 2>/dev/null)
+ $(cd ${STAGEDIR} && list_stagedir_elfs | \
+ file -F $'\1' -f - | \
+ grep -a 'ELF.*FreeBSD.*dynamically linked' | \
+ cut -f 1 -d $'\1' | \
+ { tr '\n' '\000'; printf '%s\000' /libexec/ld-elf.so.1; } | \
+ xargs -0 readelf -d)
EOF
if ! list_stagedir_elfs | egrep -q 'lib(crypto|ssl).so*'; then
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 28, 9:18 PM (4 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36907703
Default Alt Text
D58899.id184216.diff (1 KB)
Attached To
Mode
D58899: Mk/Scripts/qa.sh: Filter baselibs() input to improve performance
Attached
Detach File
Event Timeline
Log In to Comment