Bug 1174222 - DNF does not handle uncompressed comps.xml
Summary: DNF does not handle uncompressed comps.xml
Keywords:
Status: CLOSED DUPLICATE of bug 1267298
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-15 12:28 UTC by Vít Ondruch
Modified: 2016-07-22 09:23 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-22 09:23:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Vít Ondruch 2014-12-15 12:28:22 UTC
Description of problem:

DNF does not handle uncompressed comps.xml:

# dnf --installroot /var/lib/mock/ruby22-rhel-7/root/ --releasever 7
--setopt=tsflags=nocontexts install @build
Warning: Group 'build' does not exist.
Error: No packages in any requested group available to install or
upgrade.


While it can list packages just fine:


# dnf --installroot /var/lib/mock/ruby22-rhel-7/root/ --releasever 7
--setopt=tsflags=nocontexts list all | wc -l
6824


And YUM works just fine from the same respository:

# yum --installroot /var/lib/mock/ruby22-rhel-7/root/ --releasever 7
--setopt=tsflags=nocontexts install @build

===================================================================================================================================================================================================================
 Package
Arch
Version
Repository                                  Size
===================================================================================================================================================================================================================
Installing for group install "build":
 bash
x86_64
4.2.46-10.el7
rhel7                                      1.0 M
 bzip2
x86_64
1.0.6-12.el7
rhel7                                       51 k
 coreutils
x86_64
8.22-11.el7
rhel7                                      3.2 M
....



Version-Release number of selected component (if applicable):
$ rpm -q dnf
dnf-0.6.2-1.fc21.noarch


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
DNF does not handle uncompressed comps.xml and hence groups are not available.


Expected results:
DNF handles uncompressed comps.xml and groups are supported.


Additional info:

Comment 1 Radek Holy 2014-12-15 13:06:52 UTC
FTR, the behaviour does not depend on the "--installroot" and "--releasever" switches. The root cause is that the repository contains just the uncompressed comps file while DNF expects the compressed equivalent. Thus it does not parse the groups.

Comment 2 Radek Holy 2014-12-15 13:13:35 UTC
Some solutions were suggested:

1) DNF should download just the "repomd.xml" file first and check which files are available then.
2) DNF should download both the compressed and uncompressed files.

One solution was rejected by the librepo's developer:
1) Adjust librepo.

Comment 3 Honza Silhan 2015-08-06 12:53:05 UTC
* DNF actually should download the comps.xml(.gz) that are available (seen in repomd.xml). It should prefer compressed version of course.

Comment 4 Radek Holy 2015-08-10 13:53:31 UTC
Well, it should but librepo should be the one who takes a look into repomd.xml and decides whether to download the compressed or the uncompressed version. Otherwise, every librepo client would *have to* implement this logic on its own.

Comment 5 Fedora End Of Life 2015-11-04 10:19:22 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Vít Ondruch 2015-11-04 11:44:36 UTC
Still an issue.

$ rpm -q dnf
dnf-1.1.3-1.fc24.noarch

Comment 7 Jan Kurik 2016-02-24 13:18:06 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 8 Fedora Admin XMLRPC Client 2016-07-08 09:31:45 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 9 Igor Gnatenko 2016-07-22 09:23:47 UTC

*** This bug has been marked as a duplicate of bug 1267298 ***


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