Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 384145

Summary: app-arch/deb2targz-1-r1 extracts data.tar.lzma with .gz file extension
Product: Gentoo Linux Reporter: Mike Gilbert <floppym>
Component: [OLD] UnspecifiedAssignee: Mike Gilbert <floppym>
Status: RESOLVED FIXED    
Severity: normal CC: chainsaw
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 384147    

Description Mike Gilbert gentoo-dev 2011-09-22 22:20:26 UTC
app-arch/deb2targz-1-r1 extracts data.tar.lzma as $foo.tar.gz.

gzip -d $foo.tar.gz
gzip: google-chrome-beta_15.0.874.21-r101896_amd64.tar.gz: not in gzip format

lzma -d $foo.tar.gz
lzma: google-chrome-beta_15.0.874.21-r101896_amd64.tar.gz: Filename has an unknown suffix, skipping

Possible solutions:
1. Change the output file extension to .lzma.
2. Convert the archive from lzma to gzip format.
3. Remove broken lzma support.

My vote is for #1.
Comment 1 Rafał Mużyło 2011-09-22 23:56:21 UTC
#1 is the correct solution - the "obviously correct" patch has a copy-paste problem.
At the same time (if the wiki article is correct), similar sections could be added for data.tar.bz2 and data.tar.xz.
Comment 2 Mike Gilbert gentoo-dev 2011-09-23 01:14:56 UTC
(In reply to comment #1)
> At the same time (if the wiki article is correct), similar sections could be
> added for data.tar.bz2 and data.tar.xz.

The "wiki article"? Citation needed. :)
Comment 3 Mike Gilbert gentoo-dev 2011-09-23 06:12:25 UTC
*deb2targz-1-r2 (23 Sep 2011)

  23 Sep 2011; Mike Gilbert <floppym@gentoo.org> -deb2targz-1-r1.ebuild,
  +deb2targz-1-r2.ebuild, +files/deb2targz-any-data.patch,
  -files/deb2targz-lzma-support.patch, metadata.xml:
  Support any compression format. Keep the correct file extension. Bug 384145.