Bug 1270565 - dnf debuginfo-install does not enable debug repos
Summary: dnf debuginfo-install does not enable debug repos
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: rawhide
Hardware: x86_64
OS: Linux
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-10-11 09:58 UTC by Jan Kratochvil
Modified: 2015-10-12 07:45 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-12 07:40:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Kratochvil 2015-10-11 09:58:55 UTC
Description of problem:
dnf debuginfo-install (as suggested by GDB) does not seem to work.
(I have tested it only in Rawhide as provided by mock chroot.)

Version-Release number of selected component (if applicable):
python3-dnf-plugins-core-0.1.12-3.fc24.noarch

How reproducible:
Always.

Steps to Reproduce:
dnf debuginfo-install expat-2.1.0-12.fc23.x86_64
rpm -q expat-debuginfo

Actual results:
Last metadata expiration check performed 0:52:22 ago on Sun Oct 11 10:54:50 2015.
Dependencies resolved.
Nothing to do.
Complete!
package expat-debuginfo is not installed

Expected results:
Installed:
  expat-debuginfo.x86_64 2.1.0-12.fc23          glibc-debuginfo.x86_64 2.22.90-8.fc24    glibc-debuginfo-common.x86_64 2.22.90-8.fc24   
  nss-softokn-debuginfo.x86_64 3.20.0-2.fc24   
Complete!
expat-debuginfo-2.1.0-12.fc23.x86_64

Additional info:
Actual->Expected can be fixed by:
/etc/dnf/dnf.conf
[debug]
name=Fedora Rawhide - x86_64 - Debug
failovermethod=priority
metalink=https://mirrors.fedoraproject.org/metalink?repo=rawhide-debug&arch=$basearch
enabled=0
->
enabled=1

Yum was enabling the debug repositories.
If you do not agree then debug repos should be enabled by default.
Or at least DNF should warn the user the debug repos are disabled.

Comment 1 Michael Mráka 2015-10-12 07:40:44 UTC
I can see your debug repository has non-default name ([debug]). Debuginfo-install plugin tries to automatically enable *-debuginfo repositoritories for all enabled repositories. If the naming is other than default it has no clue which repos can contain debuginfo packages and should be enabled.



With default repository naming plugin works as expected:

# dnf debuginfo-install expat-2.1.0-12.fc23.x86_64
enabling updates-debuginfo repository
enabling fedora-debuginfo repository
enabling updates-testing-debuginfo repository
Last metadata expiration check performed 0:01:54 ago on Mon Oct 12 11:06:49 2015.
Dependencies resolved.
==========================================================================================================
 Package                         Arch            Version                  Repository                 Size
==========================================================================================================
Installing:
 expat-debuginfo                 x86_64          2.1.0-12.fc23            fedora-debuginfo          197 k
 glibc-debuginfo                 x86_64          2.22-3.fc23              fedora-debuginfo          9.6 M
 glibc-debuginfo-common          x86_64          2.22-3.fc23              fedora-debuginfo           10 M
 nss-softokn-debuginfo           x86_64          3.20.0-1.0.fc23          fedora-debuginfo          1.8 M

Transaction Summary
==========================================================================================================
Install  4 Packages

Total download size: 22 M
Installed size: 127 M
Is this ok [y/N]:

Comment 2 Jan Kratochvil 2015-10-12 07:45:10 UTC
This repo name had to be created by an older version of dnf.  OK, if it works from fresh buildroots, thanks.


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