Bug 21189

Summary: compiler binary filenames created through alternatives aren't %ghost, so cannot be found with urpmf/dnf repoquery
Product: Mageia Reporter: Neal Gompa <ngompa13>
Component: RPM PackagesAssignee: Thomas Backlund <tmb>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: marja11, rverschelde
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: gcc-5.4.0-5.mga6.src.rpm CVE:
Status comment:

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