### _Why are the changes needed?_ Add args `--no-mac-metadata --no-xattrs --no-fflags` to `tar` on macOS in `build/dist` to exclude macOS-specific extended metadata. The binary tarball created on macOS includes extended macOS-specific metadata and xattrs, which causes warnings when unarchiving it on Linux. Step to reproduce 1. create tarball on macOS (13.3.1) ``` ➜ apache-kyuubi git:(master) tar --version bsdtar 3.5.3 - libarchive 3.5.3 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.8 ``` ``` ➜ apache-kyuubi git:(master) build/dist --tgz ``` 2. unarchive the binary tarball on Linux (CentOS-7) ``` ➜ ~ tar --version tar (GNU tar) 1.26 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. ``` ``` ➜ ~ tar -xzf apache-kyuubi-1.8.0-SNAPSHOT-bin.tgz tar: Ignoring unknown extended header keyword `SCHILY.fflags' tar: Ignoring unknown extended header keyword `LIBARCHIVE.xattr.com.apple.FinderInfo' ``` ### _How was this patch tested?_ - [x] Manual tests Create binary tarball on macOS then unarchive on Linux, warnings disappear after this change. Closes #4828 from pan3793/dist. Closes #4828 7bc49d847 [Cheng Pan] [BUILD] Exclude macOS tar extended metadata in build/dist Authored-by: Cheng Pan <chengpan@apache.org> Signed-off-by: liangbowen <liangbowen@gf.com.cn> |
||
|---|---|---|
| .. | ||
| release | ||
| dependency.sh | ||
| dist | ||
| Dockerfile | ||
| kyuubi-build-info | ||
| kyuubi-build-info.cmd | ||
| mvn | ||
| util.sh | ||