mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-03 02:41:53 -05:00
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
@ -849,7 +849,7 @@ tidy_install() {
|
||||
if [[ $(check_option strip) = y && -n ${STRIP_DIRS[*]} ]]; then
|
||||
msg2 "$(gettext "Stripping debugging symbols from binaries and libraries...")"
|
||||
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
|
||||
*compressed-encoding*) # Skip compressed binaries
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user