Skip to content

Commit 545a1ee

Browse files
committed
packaging/generic-unix: Fix the way we path files list to tar(1)
If we use xargs(1) to call tar(1), we are limited by the number of arguments we can put on the command line. Since we switch to use directories to "package" plugins instead of .ez archives, the number of files exploded. This led to incomplete generic-unix archives (i.e. some plugins and CLI scripts were missing for instance). Now, the list of files is written to a manifest, exactly like we do it to create the source archive.
1 parent 0d42823 commit 545a1ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packaging/generic-unix/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ dist:
6666

6767
mkdir -p $(TARGET_DIR)/etc/rabbitmq
6868

69-
find $(TARGET_DIR) -print0 | LC_COLLATE=C sort -z | \
70-
xargs -0 tar --no-recursion -cf - | \
69+
find $(TARGET_DIR) | LC_COLLATE=C sort > $(TARGET_TARBALL).manifest
70+
tar --no-recursion -T $(TARGET_TARBALL).manifest -cf - | \
7171
xz > $(CURDIR)/$(TARGET_TARBALL).tar.xz
7272

7373
if test "$(PACKAGES_DIR)"; then \

0 commit comments

Comments
 (0)