Bug 515502 - lzip conflicts with xz-lzma-compat and lzma
Summary: lzip conflicts with xz-lzma-compat and lzma
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lzip
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Till Maas
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-04 15:06 UTC by Michael Schwendt
Modified: 2009-09-25 20:13 UTC (History)
4 users (show)

Fixed In Version: 1.7-2.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-08-07 10:32:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michael Schwendt 2009-08-04 15:06:03 UTC
=> xz-4.999.8-0.8.beta.fc12.src.rpm
=> xz-lzma-compat-4.999.8-0.8.beta.fc12.i686 in rawhide-development-i386
  File conflict with: lzip-1.7-1.fc12.i686
     /usr/bin/lzdiff
     /usr/bin/lzgrep
     /usr/share/man/man1/lzdiff.1.gz
     /usr/share/man/man1/lzgrep.1.gz

Comment 1 Bill Nottingham 2009-08-04 15:12:09 UTC
This was caused by a recent lzip update. CC'ing lzip maintainer.

Comment 2 Jindrich Novy 2009-08-04 17:16:57 UTC
The way how lzip upstream decided to name these utilities is very unfortunate. It conflicts with xz-compat-lzma and with the original lzma as well. Is it possible to propose to upstream to name the utilities in a different way like:
lzipdiff or lzipgrep?

It makes sense IMO because lzip ships utilities like lzip and lziprecover and not lz and lzrecover.

Comment 3 Till Maas 2009-08-04 17:52:18 UTC
I will ask upstream about renaming it, but can we make the tools from xz also support lzip, gz and bzip2, e.g. with something like the following  and a wider pattern  for the file suffix? Then it would probably easier to get upstream convinced and it should not disturb the xz tools.

#! /bin/bash

file="${1}"
if [ "$(head -c 6 "${file}")" = "$(printf "\xFD7zXZ\x00")" ]
then 
    tool="xz"
elif [ "$(head -c 4 "${file}")" = "LZIP" ]
then
    tool="lzip"
elif [ "$(head -c 3 "${file}")" = "BZh" ]
then
    tool="bzip2"
elif [ "$(head -c 3 "${file}")" = "$(printf "\x1f\x8b\x08")" ]
then
    tool="gzip"
fi

echo "Tool is: ${tool}"

Comment 4 Jindrich Novy 2009-08-05 10:37:58 UTC
I like the idea to support more compression algorithms. It sounds more like a new upstream project to me where support or wrapper for diffing/grepping of all compression utilities is implemented. The problem is that if we want to support diffing/grepping etc. for every compression utility in each compression library we need to modify each of them (zdiff, bzdiff, lzdiff, etc.) what sounds more like a maintenance nightmare and I'm even not sure upstream of all of these helpers will accept that.

Renaming the lzip diff/grep utilities seems to be the least-breakage way to me.

(The problem that comes out if you want to implement the universal utility is that baseline LZMA compression doesn't have any lead magic bytes what makes the situation even harder)

Comment 5 Till Maas 2009-08-07 10:32:39 UTC
There is now a new package with the files removed:
http://koji.fedoraproject.org/koji/taskinfo?taskID=1588719

They will be inclued in zutils:
http://www.nongnu.org/lzip/zutils.html

I asked rel-eng to consider tagging it into F12 alpha here:
https://fedorahosted.org/rel-eng/ticket/2062
Please close the rel-eng ticket, if you think it's not work it.

Comment 6 Fedora Update System 2009-09-25 20:13:33 UTC
lzip-1.7-2.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.