packaging/standalone: Use an intermediate file to list files to archive

The problem is that xargs(1) has a limit on the number of bytes
it reads on stdin and we reach it. This leads to an archive
containing half of the expected files and xargs(1) never complains.
We apply the same fix which was previously appled in commit
b9dd874671.

[#141674113]
This commit is contained in:
Jean-Sébastien Pédron 2017-03-14 11:25:18 +01:00
parent 227921e821
commit 178fa534ea
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC
1 changed files with 6 additions and 3 deletions

View File

@ -97,8 +97,11 @@ dist:
rm -f $(RLS_DIR)/erts-$(ERTS_VSN)/bin/erl.orig
cd $(TARGET_DIR)/release && \
find $(TARGET_DIR) -print0 | LC_COLLATE=C sort -z | \
xargs -0 tar --no-recursion -cf - | \
find $(TARGET_DIR) -print0 | \
LC_COLLATE=C sort -z > $(CURDIR)/manifest
cd $(TARGET_DIR)/release && \
tar -T $(CURDIR)/manifest --no-recursion -cf - | \
xz > $(CURDIR)/$(TARGET_TARBALL).tar.xz
if test "$(PACKAGES_DIR)"; then \
@ -107,7 +110,7 @@ dist:
fi
clean:
rm -rf rabbitmq-server-* rabbitmq_server-*
rm -rf rabbitmq-server-* rabbitmq_server-* manifest
.PHONY : generate_release
generate_release: