makepkg: only strip files that are writable
TODO: http://mailman.archlinux.org/pipermail/pacman-dev/2010-January/010390.html Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
de5473c026
commit
a4e3fd1847
1 changed files with 1 additions and 1 deletions
|
@ -849,7 +849,7 @@ tidy_install() {
|
||||||
if [[ $(check_option strip) = y && -n ${STRIP_DIRS[*]} ]]; then
|
if [[ $(check_option strip) = y && -n ${STRIP_DIRS[*]} ]]; then
|
||||||
msg2 "$(gettext "Stripping debugging symbols from binaries and libraries...")"
|
msg2 "$(gettext "Stripping debugging symbols from binaries and libraries...")"
|
||||||
local binary
|
local binary
|
||||||
find ${STRIP_DIRS[@]} -type f 2>/dev/null | while read binary ; do
|
find ${STRIP_DIRS[@]} -type f -writable 2>/dev/null | while read binary ; do
|
||||||
case "$(file -biz "$binary")" in
|
case "$(file -biz "$binary")" in
|
||||||
*compressed-encoding*) # Skip compressed binaries
|
*compressed-encoding*) # Skip compressed binaries
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue