Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1258433 - [rfe] Enable support for xml.xz metadata
Summary: [rfe] Enable support for xml.xz metadata
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-31 11:32 UTC by Neal Gompa
Modified: 2016-09-13 10:24 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-17 08:56:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
reproducer (3.15 KB, text/plain)
2015-09-17 08:55 UTC, Radek Holy
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1253850 0 unspecified CLOSED [rfe] Add --xml-xz to createrepo_c to generate xz compressed XML metadata 2022-05-16 11:32:56 UTC

Internal Links: 1253850

Description Neal Gompa 2015-08-31 11:32:31 UTC
Description of enhancement request:
As a complement to #1253850, DNF should support xml.xz metadata, so that if tools can create rpm-md and comps data compressed with xml.xz, DNF can decompress them and parse it.

Version-Release number of selected component (if applicable):
dnf-1.1.0-2.fc22

Comment 1 Honza Silhan 2015-09-01 13:15:38 UTC
libsolv supports lzma compression in F22. `-DENABLE_LZMA_COMPRESSION=1` is set. Which libsolv version do you use?

Comment 2 Neal Gompa 2015-09-08 21:25:41 UTC
I use what's in Fedora 22. I did see the ENABLE_LZMA_COMPRESSION flag being set, however, I thought that DNF does not use libsolv's repository management code, and instead relies on librepo and libcomps. To the best of my knowledge, librepo and libcomps do not support xml.xz metadata.

Comment 3 Radek Holy 2015-09-17 08:55:49 UTC
Created attachment 1074360 [details]
reproducer

It would be nice if you would provide some details based on what you have reopened the bug. So far, in this and in the other bug, I can see just some guesses.

As you can see, Fedora already uses xz-compressed "comps", "updateinfo" and "prestodelta" and DNF just works. I've spent a significant amount of time to re-test whether DNF works with "filelists.xml.xz", "other.xml.xz" and "primary.xml.xz" as well. See the attachment.

So, if there is a particular situation where DNF doesn't seem to work with a XZ-compressed file, please share it with us including the tracebacks, coredumps and error messages. Otherwise, I'd like to spent my time with real issues.

Comment 4 Honza Silhan 2016-09-13 10:24:33 UTC
this was changed long time ago to compile libsolv with xz support. AFAIK librepo downloads any compression format.


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