Bug 1506660 - elfutils-default-yama-scope contains a config file under /usr
Summary: elfutils-default-yama-scope contains a config file under /usr
Alias: None
Product: Fedora
Classification: Fedora
Component: elfutils
Version: 27
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Mark Wielaard
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2017-10-26 13:57 UTC by Michal Schmidt
Modified: 2018-04-15 02:38 UTC (History)
5 users (show)

Fixed In Version: elfutils-0.170-2.fc28 elfutils-0.170-11.fc28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-04-15 02:38:21 UTC
Type: Bug

Attachments (Terms of Use)

Description Michal Schmidt 2017-10-26 13:57:35 UTC
Description of problem:
The elfutils-default-yama-scope package ships a file under /usr marked as a config file. 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):

How reproducible:

Steps to Reproduce:
1. rpm -qc elfutils-default-yama-scope

Actual results:

Expected results:
No file under /usr should be listed.

Additional info:
systemd-sysctl provides a way for the administrator to override files under /usr with files under /etc, as described in sysctl.d(5).

Comment 1 Mark Wielaard 2017-11-02 16:13:43 UTC
Thanks, I missed this. I suppose this is true for every "config" file placed under %{_sysctldir}? If so, maybe add a note about that to the above Guidelines.

Comment 2 Michal Schmidt 2017-11-02 17:03:41 UTC
Yes, it is true for _sysctldir, _tmpfilesdir, _udevrulesdir, _unitdir and maybe more.

rpmlint emits a warning about it:

  elfutils-default-yama-scope.noarch: W: non-etc-or-var-file-marked-as-conffile
  A file not in /etc or /var is marked as being a configuration file. Please put
  your conf files in /etc or /var.

Comment 3 Fedora Update System 2018-04-11 09:39:14 UTC
elfutils-0.170-11.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0be914ed2a

Comment 4 Fedora Update System 2018-04-11 22:58:53 UTC
elfutils-0.170-11.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-0be914ed2a

Comment 5 Fedora Update System 2018-04-15 02:38:21 UTC
elfutils-0.170-11.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

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