Skip to content

Commit 3d47846

Browse files
committed
packaging: Always use xzcat(1) to decompress xz archive
Do not rely on tar's behaviour. It was already done everywhere except in those three places.
1 parent 203fb23 commit 3d47846

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packaging/debs/Debian/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ all: package
3232

3333
package: clean
3434
cp -a $(SOURCE_DIST_FILE) $(DEBIAN_ORIG_TARBALL)
35-
tar -Jxf $(DEBIAN_ORIG_TARBALL)
35+
xzcat $(DEBIAN_ORIG_TARBALL) | tar -xf -
3636
cp -a debian $(UNPACKED_DIR)
3737
rsync -a \
3838
--exclude '.sw?' --exclude '.*.sw?' \

packaging/generic-unix/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ all: dist
2525
@:
2626

2727
dist:
28-
tar -Jxf $(SOURCE_DIST_FILE)
28+
xzcat $(SOURCE_DIST_FILE) | tar -xf -
2929

3030
# web-manpages are not used by generic-unix but by `make release` in the.
3131
# Umbrella. Those manpages are copied to www.rabbitmq.com

packaging/windows/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ all: dist
2525
@:
2626

2727
dist:
28-
tar -Jxf $(SOURCE_DIST_FILE)
28+
xzcat $(SOURCE_DIST_FILE) | tar -xf -
2929
$(MAKE) -C $(SOURCE_DIR) install-windows \
3030
DESTDIR=$(abspath $(TARGET_DIR)) \
3131
WINDOWS_PREFIX=

0 commit comments

Comments
 (0)