Bug 1270565 - dnf debuginfo-install does not enable debug repos
dnf debuginfo-install does not enable debug repos
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core (Show other bugs)
x86_64 Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: packaging-team-maint
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-10-11 05:58 EDT by Jan Kratochvil
Modified: 2015-10-12 03:45 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-10-12 03:40:44 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jan Kratochvil 2015-10-11 05:58:55 EDT
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):

How reproducible:

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.
package expat-debuginfo is not installed

Expected results:
  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   

Additional info:
Actual->Expected can be fixed by:
name=Fedora Rawhide - x86_64 - Debug

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 03:40:44 EDT
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
 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 03:45:10 EDT
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.