[ci] [R-package] use --no-xattrs when re-tarring CRAN-style package #6540
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On my M2 Mac, with R 4.3.3 installed from CRAN, I found that the following:
Fails like this:
Based on https://stackoverflow.com/a/74373784/3986677 and similar, it seems that the root cause is that BSD
tar
(the one available on my mac) copies "extra file attributes" into archives it creates. This is the opposite of what GNU tar does. From https://www.gnu.org/software/tar/manual/tar.html#Extended-File-AttributesThis proposes specifying
--no-xattrs
so we get the same behavior building the R package and macOS and Linux.output of 'tar --version' (click me)
output of 'R --version' (click me)