[libvirt PATCH] docs: compiling.html: pass -d to xz to decompress

Daniel P. Berrangé posted 1 patch 5 years, 2 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20201113162324.96372-1-berrange@redhat.com
docs/compiling.html.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[libvirt PATCH] docs: compiling.html: pass -d to xz to decompress
Posted by Daniel P. Berrangé 5 years, 2 months ago
From: Jonathan Watt <jwatt@jwatt.org>

tar on macOS recognizes XZ compression automatically, but that is
not the case for GNU tar (1.32 at least).  On Fedora 33 the current
instructions result in the following error:

  $ xz -c libvirt-6.9.0.tar.xz | tar xvf -
  tar: Archive is compressed. Use -J option
  tar: Error is not recoverable: exiting now

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Jonathan Watt <jwatt@jwatt.org>
---

Pushed as a trivial patch from gitlab

 docs/compiling.html.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/compiling.html.in b/docs/compiling.html.in
index c898d16313..c2c9d9f0ed 100644
--- a/docs/compiling.html.in
+++ b/docs/compiling.html.in
@@ -14,7 +14,7 @@
     </p>
 
     <pre>
-$ xz -c libvirt-x.x.x.tar.xz | tar xvf -
+$ xz -dc libvirt-x.x.x.tar.xz | tar xvf -
 $ cd libvirt-x.x.x
 $ meson build</pre>
 
-- 
2.28.0