Commit 12bd360
committed
Use system tar on macOS / Linux for portable runtime archives
R's internal tar cannot parse PAX records that contain xattrs with
embedded null bytes, which is how portable R macOS archives store
Apple's com.apple.cs.CodeSignature metadata. Calling utils::untar with
tar = "internal" aborts at the first such record.
bsdtar (macOS) and GNU tar (Linux) both handle PAX/xattr cleanly, so
fall back to Sys.which("tar") on non-Windows. Windows continues to use
internal tar to dodge the long-standing Git-for-Windows GNU-tar
drive-letter bug.1 parent a238f1a commit 12bd360
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | 57 | | |
60 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| |||
0 commit comments