Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170726916
D58900.id184251.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
D58900.id184251.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
Mon, Sep 7, 6:08 AM (1 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36907703
Default Alt Text
D58900.id184251.diff (1 KB)
Attached To
Mode
D58900: Mk/Scripts/qa.sh: Filter baselibs() input to improve performance
Attached
Detach File
Event Timeline
Log In to Comment