Ticket #85 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 years ago

Decompress lzma files with xz

Reported by: scop Assigned to: pmatilai
Priority: trivial Milestone:
Component: rpm Version: RPM Development
Keywords: Cc:

Description

The attached (untested) patch should make rpm use xz instead of lzma for decompressing lzma files. I checked with xz upstream and he confirmed xz will continue to be able to decompress lzma files without any additional flags.

The effect of this patch is one internal executable dependency less in rpm.

Attachments

0005-Decompress-lzma-files-with-xz.patch (1.1 kB) - added by scop on 08/03/09 21:42:23.
Decompress lzma files with xz
0003-Deprecate-__lzma-use-__xz-in-it.patch (1.1 kB) - added by scop on 09/22/09 18:26:19.
Define %lzma in terms of %xz

Change History

08/03/09 21:42:23 changed by scop

  • attachment 0005-Decompress-lzma-files-with-xz.patch added.

Decompress lzma files with xz

(follow-up: ↓ 2 ) 08/10/09 12:57:37 changed by pmatilai

  • status changed from new to assigned.

No real disagreement, just pondering whether it's "proper" to force switching from lzma-utils to xz-utils when there's still no stable release. OTOH all the major distros are shipping xz-utils now so it's probably a moot point.

BTW, one way to avoid rpm-build depending on umphteen different decompressors could be turning them into BuildRequires? at spec parse time, based on the source/patch file types.

(in reply to: ↑ 1 ) 08/10/09 13:21:19 changed by scop

Replying to pmatilai:

BTW, one way to avoid rpm-build depending on umphteen different decompressors could be turning them into BuildRequires? at spec parse time, based on the source/patch file types.

That sounds like a great idea to me. Want me to file another ticket for it?

09/22/09 18:26:19 changed by scop

  • attachment 0003-Deprecate-__lzma-use-__xz-in-it.patch added.

Define %lzma in terms of %xz

09/22/09 18:28:20 changed by scop

0003-Deprecate-lzma-use-xz-in-it.patch would be a logical next step if lzma files are decompressed with xz.

10/06/09 07:48:43 changed by pmatilai

  • status changed from assigned to closed.
  • resolution set to fixed.

Both applied now, thanks for the patches and filing the build-dep thing as a separate ticket :)