Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252399 - LZMA support for sys-apps/file
Summary: LZMA support for sys-apps/file
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-24 15:39 UTC by Ryan Hope
Modified: 2009-12-27 17:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to add lzma magic file to sys-apps/file (file-4.26-lzma-magic.patch,776 bytes, patch)
2008-12-24 15:42 UTC, Ryan Hope
Details | Diff
Updated ebuild which applies the lzm magic file patch (file-4.26.ebuild,1.49 KB, text/plain)
2008-12-24 15:43 UTC, Ryan Hope
Details
Diff against file-4.26 which adds epatch "${FILESDIR}"/${PN}-4.26-lzma-magic.patch (include-lzma-patch.patch,344 bytes, patch)
2008-12-24 21:02 UTC, Ryan Hope
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hope 2008-12-24 15:39:00 UTC
file -i *.lzma returns application/octet-stream which is a useless mime type for lzma archives

Reproducible: Always

Steps to Reproduce:
run 'lzma -i' on a lzma archive
Comment 1 Ryan Hope 2008-12-24 15:42:09 UTC
Created attachment 176304 [details, diff]
Patch to add lzma magic file to sys-apps/file

Here is a patch which changes the mime type of lzma archives to application/x-lzma
Comment 2 Ryan Hope 2008-12-24 15:43:05 UTC
Created attachment 176305 [details]
Updated ebuild which applies the lzm magic file patch
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-12-24 19:21:52 UTC
Ryan, did you send this patch to upstream as well? If not, please do so.
While you're at it, please attach a diff showing the changes you did to the ebuild as well. That would be quite handy.

Reassigning to base-system herd.
Comment 4 Ryan Hope 2008-12-24 21:02:27 UTC
Created attachment 176318 [details, diff]
Diff against file-4.26 which adds epatch "${FILESDIR}"/${PN}-4.26-lzma-magic.patch
Comment 5 Ryan Hope 2008-12-24 21:03:57 UTC
(In reply to comment #3)
> Ryan, did you send this patch to upstream as well? If not, please do so.
> While you're at it, please attach a diff showing the changes you did to the
> ebuild as well. That would be quite handy.
> 
> Reassigning to base-system herd.
> 

No I have not sent this upstream yet. I think I should make an equivalent patch for libMagic too...
Comment 6 SpanKY gentoo-dev 2009-02-08 19:22:29 UTC
the lzma file format is being killed and one of the points of the xz format is that it has a real file signature ...
Comment 7 Ryan Hope 2009-02-23 19:44:20 UTC
(In reply to comment #6)
> the lzma file format is being killed and one of the points of the xz format is
> that it has a real file signature ...
> 

do you have a link to more info about this?
Comment 8 SpanKY gentoo-dev 2009-02-23 22:31:54 UTC
http://www.mail-archive.com/automake@gnu.org/msg14399.html

also, just go to the lzma/xz home page and you'll get the same info