Bug 21189 - compiler binary filenames created through alternatives aren't %ghost, so cannot be found with urpmf/dnf repoquery
Summary: compiler binary filenames created through alternatives aren't %ghost, so cann...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-05 14:44 CEST by Neal Gompa
Modified: 2017-07-05 22:58 CEST (History)
2 users (show)

See Also:
Source RPM: gcc-5.4.0-5.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Neal Gompa 2017-07-05 14:44:41 CEST
Description of problem:
It doesn't seem to be possible to do "dnf repoquery -f /usr/bin/gcc" / "urpmf /usr/bin/gcc" to get back exact matches. The former returns nothing (since there's no glob to indicate inexact matches were desired) and the latter returns permutations but no exact matches.

This means that things like "dnf install /usr/bin/gcc" doesn't work.

The reason this happens is because we don't have %ghost entries for the links created by alternatives. Adding %ghost entries to the file list for gcc, g++, cc, cpp, etc. will allow for those things to be tracked and queried. 

(This bug was discovered by Igor Gnatenko while Rémi Verschelde and I were working with him on Rust things.)

Version-Release number of selected component (if applicable):
5.4.0-5.mga6

How reproducible:
Always

Steps to Reproduce:
1. repoquery with dnf or urpmf for /usr/bin/gcc
2. Watch neither of them return an exact match
3. Attempt "dnf install /usr/bin/gcc" and watch it fail to find something to install
Neal Gompa 2017-07-05 14:44:56 CEST

CC: (none) => rverschelde

Marja Van Waes 2017-07-05 22:58:50 CEST

CC: (none) => marja11
Assignee: bugsquad => tmb


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