Bug 6734 - XZ doesn't work.
Summary: XZ doesn't work.
Status: RESOLVED INVALID
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.21.x
Hardware: PC Linux
: P2 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-13 19:11 UTC by Sean Walton
Modified: 2013-12-16 00:51 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Walton 2013-12-13 19:11:18 UTC
Versions 1.20.* and 1.21.1 do not implement the xz compressor correctly. Whenever used, it merely displays the usage (-h) but does nothing. My desktop allows me to type 'xz file' and get a file.xz
Comment 1 Denys Vlasenko 2013-12-16 00:51:09 UTC
Yes, it's true. We don't have XZ *compressor*, only decompressor.
Help says exactly this - that option -d is mandatory:


BusyBox v1.21.1 (2013-12-16 01:47:36 CET) multi-call binary.

Usage: xz -d [-cf] [FILE]...

Decompress FILE (or stdin)

        -d      Decompress
        -c      Write to stdout
        -f      Force


See? it is not "[-d]", it is "-d".

Config help says the same:


CONFIG_XZ:
Enable this option if you want commands like "xz -d" to work.
IOW: you'll get xz applet, but it will always require -d option.