Skip to content

Commit b7180c7

Browse files
Ignore failure to copy attributes in extract-debug-symbols.sh
The 32-bit linux build is built on Debian Squeeze which only has coreutils 8.5. Version >= 8.6 is required for the `--attributes-only` option on `cp`, so ignore failure of these commands.
1 parent 005d6d6 commit b7180c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/extract-debug-symbols.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ for input in $@ ; do
1818

1919
# The --preserver-dates flag for strip and objcopy only has whole
2020
# second resolution, so copy the timestamps to a separate file instead
21-
cp --attributes-only --preserve=timestamps "$input" "$input.timestamps"
21+
cp --attributes-only --preserve=timestamps "$input" "$input.timestamps" 2>&1 || true
2222

2323
# Extract a copy of the debugging information
2424
$OBJCOPY --only-keep-debug "$input" "$output"
@@ -31,8 +31,8 @@ for input in $@ ; do
3131
$OBJCOPY --remove-section=.gnu_debuglink "$input"
3232
$OBJCOPY --add-gnu-debuglink="$output" "$input"
3333

34-
cp --attributes-only --preserve=timestamps "$input.timestamps" "$input"
35-
rm "$input.timestamps"
34+
cp --attributes-only --preserve=timestamps "$input.timestamps" "$input" 2>&1 || true
35+
rm "$input.timestamps" 2>&1 || true
3636
done
3737

3838
}

0 commit comments

Comments
 (0)