Bug 1305156 - [yum] bash-completion conditionals don't work as intended
Summary: [yum] bash-completion conditionals don't work as intended
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-05 21:00 UTC by Carl George
Modified: 2018-05-03 16:29 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-03 16:29:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
explicitly list the bash completions directory (1.15 KB, patch)
2016-02-05 21:00 UTC, Carl George
no flags Details | Diff

Description Carl George 2016-02-05 21:00:47 UTC
Created attachment 1121520 [details]
explicitly list the bash completions directory

Description of problem:

This bug isn't necessarily a problem for Fedora, but the spec file appears to be targeting compatibility with RHEL as well, so I'm reporting it here.

On RHEL, bash-completion isn't a build requirement, so the compdir macro is set to /etc/bash_completion.d.  The %files section has %(dirname %{compdir}), meaning that yum thus owns the entire /etc tree in the build root.  This can also be observed on a RHEL7 system by running `rpm -qf /etc`; it return that both filesystem and yum own it.

There is a comment indicating that bash-completion wasn't in RHEL 7.0, but it does appear to be in 7.2 (not sure when it was added).  I think the best fix is to just avoid the bash-completion build requirement and be explicit, listing the proper locations in %if blocks.

Version-Release number of selected component (if applicable):

3.4.3-508

Comment 1 Jan Kurik 2016-02-24 14:24:55 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 2 Fedora End Of Life 2017-02-28 09:53:42 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 3 Fedora End Of Life 2018-05-03 08:44:06 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. 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 '26'.

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 26 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 4 Carl George 2018-05-03 16:29:46 UTC
This has been fixed in RHEL.

%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
%(dirname %{compdir})
%else
%{compdir}
%endif

The problem still exists in the Fedora spec file, but preserving RHEL compatibility probably isn't a priority for that.


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