Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build tarball using ustar format for better compatibility #131

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

haarg
Copy link

@haarg haarg commented May 17, 2024

Summary

build tarball using ustar format for better compatibility

Motivation

ustar is the baseline format that doesn't include extra headers that will cause warnings on any other tar version. Without it, the archive will often end up with headers like
LIBARCHIVE.xattr.com.apple.quarantine, which will produce warnings when extracted with GNU tar.

Tell tar to use the ustar format when building the release tarball.
ustar is the baseline format that doesn't include extra headers that
will cause warnings on any other tar version. Without it, the archive
will often end up with headers like
`LIBARCHIVE.xattr.com.apple.quarantine`, which will produce warnings
when extracted with GNU tar.
@kraih kraih requested review from a team, marcusramberg, kraih, jhthorsen and jberger May 17, 2024 21:24
Copy link
Member

@christopherraa christopherraa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change in itself looks fine in terms of syntax. I am a bit usure if switching to the older tar format is what we'd want seeing as GNU tar is moving to posix as default tar format. For reference:

Usually, GNU tar is configured to create archives in ‘gnu’ format, however, a future version will switch to ‘posix’.

Source: https://www.gnu.org/software/tar/manual/html_section/Formats.html

I'll leave this up to some of the other maintainers to decide on.

@haarg
Copy link
Author

haarg commented May 19, 2024

'ustar' is the common denominator that is supported by all systems. The 'posix' format is an extension of 'ustar', adding additional headers that you will never need for an archive like this, and can cause compatibility issues on some systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants