Bug 2186067

Summary: glances owns /etc/glances/glances.conf, but not /etc/glances (which is unowned)
Product: [Fedora] Fedora Reporter: "FeRD" (Frank Dana) <ferdnyc>
Component: glancesAssignee: Ali Erdinc Koroglu <aekoroglu>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: aekoroglu, jonathan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-07 01:47:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description "FeRD" (Frank Dana) 2023-04-12 02:31:32 UTC
Description of problem:
The current glances package in F37 owns the file /etc/glances/glances.conf, but it does not own the parent directory — which is, at least in my install, currently unowned.

Version-Release number of selected component (if applicable):
glances-3.3.1-3.fc37

How reproducible:
100%

Steps to Reproduce:
1. sudo dnf install glances
2. rpm -qf /etc/glances /etc/glances/glances.conf

Actual results:
glances-3.3.1-3.fc37.noarch
file /etc/glances is not owned by any package

Expected results:
glances-3.3.1-3.fc37.noarch
glances-3.3.1-3.fc37.noarch

Additional info:
Per the Packaging Guidelines[1], unowned directories are not permitted. To address this, the %files section of glances.spec should include this line:

%dir %{_sysconfdir}/glances


[1]: https://docs.fedoraproject.org/en-US/packaging-guidelines/#_file_and_directory_ownership

Comment 1 "FeRD" (Frank Dana) 2023-04-12 02:44:16 UTC
I've submitted https://src.fedoraproject.org/rpms/glances/pull-request/5 with the fix for this issue.

Comment 2 "FeRD" (Frank Dana) 2023-07-07 01:47:35 UTC
The PR was merged, closing this.