Skip to content

Fix unsupported xattrs when running gen_release on mac#26903

Closed
jabraham17 wants to merge 1 commit intochapel-lang:mainfrom
jabraham17:fix-tar-xattr
Closed

Fix unsupported xattrs when running gen_release on mac#26903
jabraham17 wants to merge 1 commit intochapel-lang:mainfrom
jabraham17:fix-tar-xattr

Conversation

@jabraham17
Copy link
Copy Markdown
Member

Fixes #26794, which was caused by MacOS tar inserting extra headers unto the tar file. This is done in two ways

  • --no-xattrs is always used to prevent the vast majority of extra headers
  • preferring gtar (gnu tar) over tar when available prevents a handful of extra headers

Resolves #26794

Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
@jabraham17 jabraham17 requested a review from DanilaFe March 12, 2025 17:06
@jabraham17 jabraham17 mentioned this pull request Mar 12, 2025
5 tasks
@jabraham17
Copy link
Copy Markdown
Member Author

#26913 incorporates the fixes from this PR and improves things more, closing

@jabraham17 jabraham17 closed this Mar 12, 2025
jabraham17 added a commit that referenced this pull request Apr 3, 2025
Rewrites `gen_release`, a perl script, with Python.

This PR makes two behavior changes to the script
- fixes #26794, using the
technique described in #26903
- uses `--depth 1` when cloning when `CHPL_GEN_RELEASE_COMMIT` is not
set for faster clone times

This PR makes minimal changes to the flow of logic in the script (mostly
just transliterated perl code), but future work could make use of Python
features to improve the script. For example, using
https://docs.python.org/3/library/tarfile.html instead of spawning
sub-processes to rely on the system `tar`.


Note to reviewer: I recommend reviewing this by having the the python
code and perl code open side-by-side, as the github diff is confusing

Tested that all of the following work
- [x] `CHPL_GEN_RELEASE_SKIP_DOCS=1 CHPL_GEN_RELEASE_NO_CLONE=1
./util/buildRelease/gen_release`
- [x] `CHPL_GEN_RELEASE_SKIP_DOCS=1 CHPL_GEN_RELEASE_NO_CLONE=1
./util/buildRelease/gen_release 2.4.0`
   - [x] check that the output can be built 
- [x] `./util/buildRelease/gen_release 2.4.0`
  - [x] check that the output can be built  

[Reviewed by @DanilaFe]
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.

[Bug]: Running gen_release on a Mac results in a tar with lots of warnings

1 participant