Bug 26825 - does not recognize lzma compessed data
Summary: does not recognize lzma compessed data
Status: REOPENED
Alias: None
Product: Sisyphus
Classification: Development
Component: file (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-16 17:28 MSK by viy
Modified: 2012-01-22 00:22 MSK (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description viy 2012-01-16 17:28:54 MSK
$ 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 Alexey Gladkov 2012-01-16 18:02:24 MSK
Это нормально. У lzma нет magic.
Comment 2 viy 2012-01-16 18:06:44 MSK
жаль :(
Comment 3 Kirill A. Shutemov 2012-01-16 18:17:36 MSK
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576950 ?
Comment 5 Kirill A. Shutemov 2012-01-16 18:38:38 MSK
Новый формат альтовский libmagic знает?
Comment 6 Dmitry V. Levin 2012-01-16 18:41:35 MSK
(In reply to comment #5)
> Новый формат альтовский libmagic знает?

xz поддерживается, начиная с 4.26-alt3.
Comment 7 Alexey Gladkov 2012-01-16 18:45:28 MSK
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 Kirill A. Shutemov 2012-01-16 18:50:11 MSK
$ lzma > 1 < /dev/null
$ xz > 2 < /dev/null
$ file 1 2
1: LZMA compressed data, streamed
2: XZ compressed data

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

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

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