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:
parent
227921e821
commit
178fa534ea
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue