Bug 26825 - does not recognize lzma compessed data
: does not recognize lzma compessed data
Status: REOPENED
: Sisyphus
(All bugs in Sisyphus/file)
: unstable
: all Linux
: P3 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2012-01-16 17:28 by
Modified: 2012-01-22 00:22 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2012-01-16 17:28:54
$ gzip c1; bzip c2; xz c3; lzma c4

$ file c*
c1.gz:           gzip compressed data, was "c1", from Unix, last modified: Mon
Jan 16 15:25:36 2012
c2.bz2:          bzip2 compressed data, block size = 900k
c3.xz:           xz compressed data
c4.lzma:         data
------- Comment #1 From 2012-01-16 18:02:24 -------
Это нормально. У lzma нет magic.
------- Comment #2 From 2012-01-16 18:06:44 -------
жаль :(
------- Comment #3 From 2012-01-16 18:17:36 -------
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576950 ?
------- Comment #5 From 2012-01-16 18:38:38 -------
Новый формат альтовский libmagic знает?
------- Comment #6 From 2012-01-16 18:41:35 -------
(In reply to comment #5)
> Новый формат альтовский libmagic знает?

xz поддерживается, начиная с 4.26-alt3.
------- Comment #7 From 2012-01-16 18:45:28 -------
The core of the XZ Utils compression code is based on LZMA SDK, but it has been
modified quite a lot to be suitable for XZ Utils. The primary compression
algorithm is currently LZMA2, which is used inside the .xz container format.

XZ использует LZMA2, который имеет magic и определяется file.
------- Comment #8 From 2012-01-16 18:50:11 -------
$ lzma > 1 < /dev/null
$ xz > 2 < /dev/null
$ file 1 2
1: LZMA compressed data, streamed
2: XZ compressed data

это дебиан.
------- Comment #9 From 2012-01-16 18:54:16 -------
У меня:

l /usr/bin/lzma
lrwxrwxrwx. 1 root root 2 Окт  3 09:29 /usr/bin/lzma -> xz

Воспользуйся ключём --lzma1 .
------- Comment #10 From 2012-01-16 18:56:01 -------
Наврал. lzma это синоним xz --format=lzma
------- Comment #11 From 2012-01-22 00:22:05 -------
Ещё раз повторюсь: file для чисто служебных целей сборочной системы предлагаю
собирать отдельным пакетом.