macdoor opened a new issue, #18035:
URL: https://github.com/apache/dolphinscheduler/issues/18035
## What happened
When building the release `tar.gz` on macOS (`mvn package` with assembly),
the archive can contain:
- **AppleDouble / resource fork files**: `._*` (e.g. `._somefile.jar`)
- **macOS metadata**: `.DS_Store`
- **Extended attributes**: e.g. `LIBARCHIVE.xattr.com.apple.provenance`,
causing warnings like:
```
tar: Ignoring unknown extended header keyword
'LIBARCHIVE.xattr.com.apple.provenance'
```
Extracting such an archive on Linux then shows these warnings and leaves
extra files, which is confusing and can affect scripting or deployment.
## What you expected
The official `apache-dolphinscheduler-*-bin.tar.gz` should extract cleanly
on Linux with no macOS-specific junk or xattr warnings, even when the package
is built on macOS.
## How to reproduce
1. Build the distribution on macOS (e.g. `mvn clean package -Prelease
-DskipTests` with UI/plugins as needed).
2. Copy the generated `apache-dolphinscheduler-*-bin.tar.gz` to a Linux host.
3. Run `tar -xzf apache-dolphinscheduler-*-bin.tar.gz`.
4. Observe: `._*` files, `.DS_Store`, and/or xattr-related tar messages.
## Proposed fix
In `dolphinscheduler-dist/src/main/assembly/assembly-plugins.sh` (during the
repack step):
- Remove `._*` and `.DS_Store` under the bin directory before repacking.
- On macOS: clear extended attributes with `xattr -cr` and run `tar` with
`COPYFILE_DISABLE=1` and `--no-xattrs` so the final archive has no macOS xattr
data.
This keeps the assembly descriptor unchanged and only adjusts the packaging
script so that the produced tar.gz is Linux-friendly regardless of build host.
## Environment
- Build OS: macOS
- Extract OS: Linux
- DolphinScheduler: dev
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail:
[email protected]
For queries about this service, please contact Infrastructure at:
[email protected]