Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 501912 - unpacker.eclass: add app-arch/lzip support
Summary: unpacker.eclass: add app-arch/lzip support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: Inclusion, PATCH
Depends on:
Blocks:
 
Reported: 2014-02-20 16:16 UTC by Christoph Junghans (RETIRED)
Modified: 2022-12-14 11:01 UTC (History)
5 users (show)

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


Attachments
patch against gx86 version (unpacker.eclass.patch,406 bytes, patch)
2014-02-20 16:16 UTC, Christoph Junghans (RETIRED)
Details | Diff
patch against gx86 version (unpacker.eclass.patch,1022 bytes, patch)
2014-02-25 15:37 UTC, Christoph Junghans (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Junghans (RETIRED) gentoo-dev 2014-02-20 16:16:42 UTC
Created attachment 370890 [details, diff]
patch against gx86 version

Add support for app-arch/lzip (*.lz files)
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-02-23 20:10:58 UTC
Looks good to me.

+1 for inclusion
Comment 2 Christoph Junghans (RETIRED) gentoo-dev 2014-02-24 17:22:17 UTC
@vapier: can we include this?
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-02-25 08:48:06 UTC
I've just added app-arch/pdlzip that's public-domain & plain C variant of lzip (from the same author). We may consider this since it's 50k while the normal lzip is 100k.
Comment 4 Christoph Junghans (RETIRED) gentoo-dev 2014-02-25 15:37:05 UTC
Created attachment 371226 [details, diff]
patch against gx86 version

(In reply to Michał Górny from comment #3)
> I've just added app-arch/pdlzip that's public-domain & plain C variant of
> lzip (from the same author). We may consider this since it's 50k while the
> normal lzip is 100k.
Good point.
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2014-02-25 21:04:55 UTC
Immediate users:

 $ fgrep -Rl '.tar.lz"' .
 ./app-text/ocrad/ocrad-0.18.ebuild
 ./app-text/ocrad/ocrad-0.21.ebuild
 ./sys-apps/ed/ed-1.10.ebuild
 ./sys-fs/ddrescue/ddrescue-1.17.ebuild
 ./sys-fs/ddrescue/ddrescue-1.17-r1.ebuild
Comment 6 SpanKY gentoo-dev 2014-02-26 23:55:14 UTC
Comment on attachment 371226 [details, diff]
patch against gx86 version

LGTM

should we also support *.tlz ?  or is that not a thing ?
Comment 7 Christoph Junghans (RETIRED) gentoo-dev 2014-02-27 00:24:55 UTC
(In reply to SpanKY from comment #6)
> Comment on attachment 371226 [details, diff] [details, diff]
> patch against gx86 version
> LGTM
Committed.
+  27 Feb 2014; Christoph Junghans <ottxor@gentoo.org> unpacker.eclass:
+  added lzip support (bug #501912)
+

> 
> should we also support *.tlz ?  or is that not a thing ?
With 3 packages using lzip, this is not a thing yet ;-)


@vapier: Should I move sys-apps/ed to use unpacker.eclass?

@polynomial-c: feel free to use unpacker.eclass in sys-fs/ddrescue.

@aballier: feel free to use unpacker.eclass in app-text/ocrad.
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-02-27 06:54:08 UTC
(In reply to Christoph Junghans from comment #7)
> 
> @vapier: Should I move sys-apps/ed to use unpacker.eclass?
> 
> @polynomial-c: feel free to use unpacker.eclass in sys-fs/ddrescue.

sys-apps/ed and sys-fs/ddrescue done.
Comment 9 bwcknr 2014-02-27 19:07:11 UTC
Well, on my systems nothing depends on lzip packages.

On updating sys-apps/ed-1.10 emerge fails because comp evaluates to ' -dc'
Comment 10 Thomas Deutschmann (RETIRED) gentoo-dev 2014-02-27 20:42:52 UTC
Confirmed:

2014-02-27 21:39:30 (988 KB/s) - ‘/usr/portage/distfiles/ed-1.10.tar.lz’ saved [63717/63717]

 * ed-1.10.tar.lz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                           [ ok ]
>>> Unpacking source...
>>> Unpacking ed-1.10.tar.lz to /var/tmp/portage/sys-apps/ed-1.10/work
/var/tmp/portage/sys-apps/ed-1.10/temp/environment: line 258: -dc: command not found
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
 * ERROR: sys-apps/ed-1.10::gentoo failed (unpack phase):
 *   unpacking /var/tmp/portage/sys-apps/ed-1.10/distdir/ed-1.10.tar.lz failed (comp= -dc arch=tar --no-same-owner -xof)
 *

Neither app-arch/pdlzip nor app-arch/lzip are installed on my system.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2014-02-27 21:02:49 UTC
(In reply to Thomas D. from comment #10)
> Confirmed:

Then you haven't done `emerge --sync` or the gentoo mirror you are using is out of date.

> Neither app-arch/pdlzip nor app-arch/lzip are installed on my system.

$ sudo emerge -1vp sys-apps/ed

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R    ] sys-apps/ed-1.10  0 kB
[ebuild  N     ]  app-arch/pdlzip-1.5  0 kB

Total: 2 packages (1 new, 1 reinstall), Size of downloads: 0 kB

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/ed/ed-1.10.ebuild?r1=1.3&r2=1.4 was added from bug 502990 like an hour ago.
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2014-02-27 21:15:06 UTC
ocrad converted to unpacker.eclass too, so if I read all the comments right, there is nothing left to do here, closing then
Comment 13 Thomas Deutschmann (RETIRED) gentoo-dev 2014-02-27 21:16:39 UTC
Well, I synch'ed the tree before I posted and I also grep'ed the eclass for "lzip"... but everything looked like it should work..

However, now I sync'ed again:

 Timestamp of tree: Thu, 27 Feb 2014 20:45:01 +0000

...3 minutes after I posted here, the mirror updated (well, this time I got another host from the pool) :)

It is now working for me, too.
Comment 14 Larry the Git Cow gentoo-dev 2022-12-14 10:18:12 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7713a9f0fc204a09d6b2a57a46e520f07bed72be

commit 7713a9f0fc204a09d6b2a57a46e520f07bed72be
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-13 21:02:58 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2022-12-14 10:16:17 +0000

    unpacker.eclass: support >=app-arch/xz-utils-5.4.0 for lzip decompression
    
    >=app-arch/xz-utils-5.4.0 supports lzip decompression (not compression).
    
    Add support for unpacker.eclass to handle it for .lz files.
    
    Note that xz-utils is part of @system (and PMS requires that .xz is unpackable),
    while most users do not have lzip and friends installed.
    
    (Note that xz does not (currently, but does not plan on either) implement
    parallel decompression for .lz, but most .lz distfiles are small, so this
    isn't an issue.)
    
    Historically, we've often repacked .lz distfiles for important packages
    to avoid users needing to install app-arch/lzip for a single distfile,
    so this avoids the need for that (although I've not done it out of
    principle for things like sys-apps/ed).
    
    Bug: https://bugs.gentoo.org/249059
    Bug: https://bugs.gentoo.org/485462
    Bug: https://bugs.gentoo.org/501912
    Bug: https://bugs.gentoo.org/502990
    Bug: https://bugs.gentoo.org/545344
    Signed-off-by: Sam James <sam@gentoo.org>
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 eclass/unpacker.eclass | 31 +++++++++++++++++++++++++++----
 1 file changed, 27 insertions(+), 4 deletions(-)