Bug 1506666 - fedora-release contains config files under /usr
Summary: fedora-release contains config files under /usr
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: fedora-release
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Stephen Gallagher
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-26 14:08 UTC by Michal Schmidt
Modified: 2018-02-02 00:13 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-02 00:13:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michal Schmidt 2017-10-26 14:08:22 UTC
Description of problem:
The fedora-release package ships files under /usr marked as config files. This is against the Fedora Packaging Guidelines[1]:
  Don't use %config or %config(noreplace) under /usr. /usr is deemed to not
  contain configuration files in Fedora. 

[1] https://fedoraproject.org/wiki/Packaging:Guidelines#Configuration_files

Version-Release number of selected component (if applicable):
fedora-release-28-0.1.noarch

How reproducible:
always

Steps to Reproduce:
1. rpm -qc fedora-release | grep '^/usr'
2.
3.

Actual results:
/usr/lib/issue.net
/usr/lib/os.release.d/issue-fedora
/usr/lib/os.release.d/os-release-fedora

Expected results:
No files should be listed.

Comment 1 Stephen Gallagher 2017-10-26 14:21:23 UTC
These files are not *really* config files. They are immutable defaults for config files in /etc.

I can drop the %config designation, I suppose. These aren't actually configs, they're data.

Comment 2 Stephen Gallagher 2017-10-26 15:09:00 UTC
PR submitted for Rawhide:
https://pagure.io/fedora-release/pull-request/117

Comment 3 Kevin Fenzi 2018-02-02 00:13:25 UTC
New fedora-release pushed to rawhide. Should show up tomorrow.


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