makepkg: ensure binaries in /opt/* are stripped

The path selection for stripping binaries was slightly off, so any binaries
in subdirectories of opt/ were missed. Fixes FS#9342.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2008-01-27 21:06:28 -06:00
parent 0775c38e72
commit c028014f96

View file

@ -754,7 +754,7 @@ tidy_install() {
if [ "$(check_option strip)" = "y" ]; then if [ "$(check_option strip)" = "y" ]; then
msg2 "$(gettext "Stripping debugging symbols from binaries and libraries...")" msg2 "$(gettext "Stripping debugging symbols from binaries and libraries...")"
for file in $(find {,usr/{,local/},opt/}{bin,lib,sbin} -type f 2>/dev/null || true); do for file in $(find {,usr/{,local/},opt/*/}{bin,lib,sbin} -type f 2>/dev/null || true); do
case "$(file -biz "$file")" in case "$(file -biz "$file")" in
*application/x-sharedlib*) # Libraries *application/x-sharedlib*) # Libraries
/usr/bin/strip --strip-debug "$file";; /usr/bin/strip --strip-debug "$file";;