Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218459 - allow app-arch/lzma and app-arch/lzma-utils to be installed simultaneously
Summary: allow app-arch/lzma and app-arch/lzma-utils to be installed simultaneously
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Radoslaw Stachowiak (RETIRED)
Depends on:
Reported: 2008-04-19 18:52 UTC by cJ
Modified: 2011-01-06 02:50 UTC (History)
6 users (show)

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

Rename binary from 'app-arch/lzma' package from "lzma" to "lzma_" (lzma_name.patch,346 bytes, patch)
2008-06-12 19:03 UTC, Andrey
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description cJ 2008-04-19 18:52:49 UTC
Some packages are blocking app-arch/lzma, and lzma and lzma-utils can't be installed at the same time.
I think something should be done not to block the use of lzma (since coreutils needs lzma-utils ATM).

The only reason it is blocked is that they have /usr/bin/lzma in common.

I propose a solution, which is renaming lzma from lzma-utils to something such as lzma_alone.
This way, people seeking to use it can have it without having to make another ebuild for it.
This way, there's no need to block it (a ewarn can be displayed after lzma installation, to tell that the binary name is modified).

I also think of the possibility to add support to app-arch/lzma's lzma in package managers' unpackers, and having virtual/unlzma, which could be provided by both lzmas and busybox with use=lzma.

This principle could also be used with other compression methods...

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2008-04-19 20:43:10 UTC
lzma-utils is not changing.  either the lzma package provides a renamed binary, or the blocker stays.

disallowing the use of .lzma archives in ebuilds to satisfy a very small # of users is ridiculous and not going to happen.
Comment 2 cJ 2008-04-19 22:19:32 UTC
I agree with the first point, lzma-utils is very practical and I never said it had to change.
So I suggested that ebuild maintainer renamed the binary, and also asked to upstream to get it renamed officially (apparently, there's no objection to that, I discussed once with lzma-utils guys and 7zip's author).

I also agree with your second point, even if that's not related to my bug.
I even answered to the guy asking for bz2 packages for libpng, and told him to go to hell, in an indirect way :p
Comment 3 Andrey 2008-06-12 19:03:21 UTC
Created attachment 156527 [details, diff]
Rename binary from 'app-arch/lzma' package from "lzma" to "lzma_"

The only change needed for 'app-arch/lzma' to let it so-exist with 'app-arch/lzma-utils'.:)
Comment 4 Andrey 2008-06-12 22:13:26 UTC
Comment on attachment 156527 [details, diff]
Rename binary from 'app-arch/lzma' package from "lzma" to "lzma_"

><?xml version="1.0"?><html><body><pre>--- lzma-4.57.ebuild	2008-06-12 22:49:00.000000000 +0400
>+++ lzma-4.57-r1.ebuild	2008-06-13 02:08:33.000000000 +0400
>@@ -13,8 +13,6 @@
> KEYWORDS="~arm ~amd64 ~ia64 ~mips ~sparc ~x86"
> IUSE="doc"
> src_compile() {
>@@ -26,7 +24,7 @@
> }
> src_install() {
>-	dobin CPP/7zip/Compress/LZMA_Alone/lzma || die
>+	newbin CPP/7zip/Compress/LZMA_Alone/lzma lzma_ || die
> 	dodoc history.txt
> 	use doc && dodoc 7zC.txt 7zFormat.txt lzma.txt Methods.txt
> }
Comment 5 2009-01-13 16:57:18 UTC
Just thought I would mention that lzma-utils is being renamed to xz utils and will use a different extension now.  When out of beta maybe that can help this bug?

From the announcement list:
"The new code base of LZMA Utils was renamed to XZ Utils. The first beta
release is now available:

The new .xz file format is probably final now, but it's not officially
frozen yet, so don't use it for anything critical yet.

The API of liblzma should be pretty much stable now. The ABI may change
still though. The major soname of liblzma will be bumped right before
the first stable release.

Note that the Subblock filter is not enabled by default; its format and
API are not stable yet. Probably it won't be included in the first
stable release of XZ Utils. It's included in the beta in disabled form
only to simplify my work.

Most of the code in XZ Utils is still licensed under LGPLv2.1+. This
will change before the first stable release: all the interesting parts
will be put into the public domain just like LZMA SDK from
already is."
Comment 6 Radoslaw Stachowiak (RETIRED) gentoo-dev 2009-01-25 19:55:47 UTC
Added version 4.63 with changed binary name to lzma_alone with removed RDEPEND block on lzma-utils in the lzma ebuild.

Vapier, could you please consider removing blocks from other places?
Comment 7 SpanKY gentoo-dev 2011-01-06 02:50:29 UTC
thanks, ive updated the xz-utils depend